library build scripts cleanup

This commit is contained in:
Conner Gallagher 2022-05-25 15:14:48 -06:00
parent 691344eeb7
commit ded6473e8c
5 changed files with 5 additions and 2 deletions

View File

@ -0,0 +1 @@
*.tsbuildinfo

View File

@ -0,0 +1 @@
*.tsbuildinfo

View File

@ -27,7 +27,7 @@
"test": "echo \"No test script for @switchboard-xyz/sbv2-utils\" && exit 0",
"build:cjs": "shx rm -rf lib/cjs && tsc -p tsconfig.cjs.json && shx echo '{\"type\": \"commonjs\"}' > lib/cjs/package.json",
"build:esm": "shx rm -rf lib/esm && tsc -p tsconfig.esm.json && shx echo '{\"type\": \"module\"}' > lib/esm/package.json",
"build": "shx rm -rf lib && yarn build:cjs && yarn build:esm",
"build": "shx rm -rf lib && yarn build:cjs && yarn build:esm && shx rm lib/*.tsbuildinfo",
"prepublishOnly": "yarn build"
},
"dependencies": {

1
libraries/ts/.npmignore Normal file
View File

@ -0,0 +1 @@
*.tsbuildinfo

View File

@ -31,7 +31,7 @@
"docgen": "yarn build && npx typedoc",
"build:cjs": "shx rm -rf lib/cjs && tsc -p tsconfig.cjs.json && shx echo '{\"type\": \"commonjs\"}' > lib/cjs/package.json",
"build:esm": "shx rm -rf lib/esm && tsc -p tsconfig.esm.json && shx echo '{\"type\": \"module\"}' > lib/esm/package.json",
"build": "shx rm -rf lib && yarn build:cjs && yarn build:esm",
"build": "shx rm -rf lib && yarn build:cjs && yarn build:esm && shx rm lib/*.tsbuildinfo",
"test": "mocha --extension ts --require ts-node/register -t 1000000 tests/",
"prepublishOnly": "yarn build"
},