chore: tweak build script

This commit is contained in:
EGOIST 2021-02-23 16:18:20 +08:00
parent df78f2cebb
commit 29e5e240c8
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ This will emit `./dist/index.js` and `./dist/index.d.ts`.
If you have multiple entry files, each entry will get a corresponding `.d.ts` file. So when you only want to generate declaration file for a single entry, use `--dts <entry>` format, e.g. `--dts src/index.ts`.
Note that `--dts` does not resolve external (aka in `node_modules`) types used in the `.d.ts` file, if that's somehow a requirement, try the experimental `--dts-resolve` flag.
Note that `--dts` does not resolve external (aka in `node_modules`) types used in the `.d.ts` file, if that's somehow a requirement, try the experimental `--dts-resolve` flag instead.
### Generate sourcemap file

View File

@ -13,7 +13,7 @@
"url": "https://github.com/egoist/tsup.git"
},
"scripts": {
"build": "rm -rf dist && tsup src/cli.ts src/index.ts src/rollup.ts --dts --dts-resolve",
"build": "rm -rf dist && tsup src/cli.ts src/index.ts src/rollup.ts --dts-resolve",
"prepublishOnly": "npm run build",
"test": "npm run build:simple && jest",
"//": "Building without dts for speed",