diff --git a/packages/swingset-liveslots/package.json b/packages/swingset-liveslots/package.json index 9e2d067b2d2..bb601b85b34 100644 --- a/packages/swingset-liveslots/package.json +++ b/packages/swingset-liveslots/package.json @@ -14,7 +14,9 @@ "lint-fix": "yarn lint:eslint --fix", "lint": "run-s --continue-on-error lint:*", "lint:types": "tsc", - "lint:eslint": "eslint ." + "lint:eslint": "eslint .", + "prepack": "tsc --build tsconfig.build.json", + "postpack": "git clean -f ':!src/types-index.d.ts' '*.d.ts*' '*.tsbuildinfo'" }, "dependencies": { "@endo/errors": "^1.2.8", @@ -36,9 +38,8 @@ "@agoric/kmarshal": "^0.1.0" }, "files": [ - "src/**/*.js", - "src/**/*.d.ts", - "test/**/*.js", + "src", + "test", "tools", "exported.js" ], diff --git a/packages/swingset-liveslots/tsconfig.build.json b/packages/swingset-liveslots/tsconfig.build.json new file mode 100644 index 00000000000..fe5ea57d603 --- /dev/null +++ b/packages/swingset-liveslots/tsconfig.build.json @@ -0,0 +1,6 @@ +{ + "extends": [ + "./tsconfig.json", + "../../tsconfig-build-options.json" + ] +} diff --git a/packages/swingset-liveslots/tsconfig.json b/packages/swingset-liveslots/tsconfig.json index e5bc0d46912..b827ae3a6d8 100644 --- a/packages/swingset-liveslots/tsconfig.json +++ b/packages/swingset-liveslots/tsconfig.json @@ -2,10 +2,9 @@ "extends": "../../tsconfig.json", "compilerOptions": {}, "include": [ - "*.js", - "scripts/**/*.js", - "src/**/*.js", - "test/**/*.js", - "tools/**/*.js", + "scripts", + "src", + "test", + "tools", ], }