Skip to content

Commit

Permalink
fix: expose .d.ts as cjs version (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxiangmoe committed Jul 4, 2023
1 parent 2d1fc91 commit 262e113
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions package.json
Expand Up @@ -15,11 +15,10 @@
"main": "./dist/magic-string.cjs.js",
"module": "./dist/magic-string.es.mjs",
"jsnext:main": "./dist/magic-string.es.mjs",
"types": "./index.d.ts",
"types": "./dist/magic-string.cjs.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/magic-string.es.mjs",
"require": "./dist/magic-string.cjs.js"
}
Expand All @@ -30,7 +29,7 @@
"README.md"
],
"scripts": {
"build": "rollup -c",
"build": "rollup -c && cp ./src/index.d.ts ./dist/magic-string.es.d.mts && cp ./src/index.d.ts ./dist/magic-string.cjs.d.ts",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
"format": "prettier --single-quote --print-width 100 --use-tabs --write src/*.js src/**/*.js",
"lint": "eslint src test && publint",
Expand Down
File renamed without changes.

0 comments on commit 262e113

Please sign in to comment.