mirror of
https://github.com/egoist/tsup.git
synced 2025-12-08 20:35:58 +00:00
chore: tweak build script
This commit is contained in:
parent
df78f2cebb
commit
29e5e240c8
@ -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
|
||||
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user