diff --git a/docs/README.md b/docs/README.md index 6c2f3a9..ad0b585 100644 --- a/docs/README.md +++ b/docs/README.md @@ -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 ` 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 diff --git a/package.json b/package.json index 78a6d80..7a04e7c 100644 --- a/package.json +++ b/package.json @@ -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",