diff --git a/beet-bbachain/package.json b/beet-bbachain/package.json index e4e69a9..4c233e8 100644 --- a/beet-bbachain/package.json +++ b/beet-bbachain/package.json @@ -11,7 +11,7 @@ "postversion": "git add package.json && git commit -m \"chore: update $npm_package_name to v$npm_package_version\" && git tag $npm_package_name@$npm_package_version", "prepublishOnly": "yarn check:publish-ready", "postpublish": "git push origin && git push origin --tags", - "build": "rimraf dist && tsc -p tsconfig.json --declaration", + "build": "rimraf dist && tsc -p tsconfig.build.json", "pretest": "yarn build", "test": "tape dist/cjs/test/*.js", "lint": "prettier -c ./src/", diff --git a/beet-bbachain/tsconfig.build.json b/beet-bbachain/tsconfig.build.json new file mode 100644 index 0000000..3865a85 --- /dev/null +++ b/beet-bbachain/tsconfig.build.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "declaration": true, + "declarationDir": "./dist/types" + } +} diff --git a/beet-bbachain/tsconfig.json b/beet-bbachain/tsconfig.json index 7c51627..e6cee08 100644 --- a/beet-bbachain/tsconfig.json +++ b/beet-bbachain/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "baseUrl": "./", "outDir": "./dist/cjs", - "module": "commonjs", - "declarationDir": "./dist/types", - "declaration": false + "module": "commonjs" }, "include": ["src", "test"] } diff --git a/beet/package.json b/beet/package.json index 629df59..4103398 100644 --- a/beet/package.json +++ b/beet/package.json @@ -11,7 +11,7 @@ "postversion": "git add package.json && git commit -m \"chore: update $npm_package_name to v$npm_package_version\" && git tag $npm_package_name@$npm_package_version", "prepublishOnly": "yarn check:publish-ready", "postpublish": "git push origin && git push origin --tags", - "build": "rimraf dist && tsc -p tsconfig.json --declaration", + "build": "rimraf dist && tsc -p tsconfig.build.json", "pretest": "yarn build", "test": "tape dist/cjs/test/{unit,compat}/*.js", "test:browser": "airtap ./test/{unit,compat}/*.ts", diff --git a/beet/tsconfig.build.json b/beet/tsconfig.build.json new file mode 100644 index 0000000..3865a85 --- /dev/null +++ b/beet/tsconfig.build.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "declaration": true, + "declarationDir": "./dist/types" + } +} diff --git a/beet/tsconfig.json b/beet/tsconfig.json index 7c51627..e6cee08 100644 --- a/beet/tsconfig.json +++ b/beet/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "baseUrl": "./", "outDir": "./dist/cjs", - "module": "commonjs", - "declarationDir": "./dist/types", - "declaration": false + "module": "commonjs" }, "include": ["src", "test"] }