Skip to content

Commit

Permalink
simplify creation of dist/env.d.cts (#143)
Browse files Browse the repository at this point in the history
* chore: skip generating lockfiles for test fixtures

* chore: simplify creation of dist/env.d.cts

This changes how `dist/env.d.cts` gets generated. Instead of re-running `tsc` with a unique config, we can just copy `dist/env.d.ts`.

We could pull in something like `ncp` or whatever else to do the copy, if we hate the one-liner here.
  • Loading branch information
boneskull committed May 6, 2024
1 parent 2bc202b commit b7863bf
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 19,132 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -35,7 +35,7 @@
"url": "https://github.com/sponsors/nzakas"
},
"scripts": {
"build": "rollup -c && tsc && tsc -p tsconfig.cjs.json",
"build": "rollup -c && tsc && node -e \"fs.copyFileSync('./dist/env.d.ts', './dist/env.d.cts')\"",
"prepare": "npm run build",
"lint": "eslint src/ tests/",
"pretest": "npm run build",
Expand Down

0 comments on commit b7863bf

Please sign in to comment.