Skip to content

Commit

Permalink
fix: use unbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
spaenleh committed Jun 20, 2024
1 parent 53aa297 commit 8497f21
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@
"engines": {
"node": ">=20.0.0"
},
"main": "./cjs/index.cjs",
"module": "./esm/index.js",
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"exports": {
".": {
"import": {
"types": "./esm/index.d.ts",
"default": "./esm/index.js"
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./cjs/index.d.ts",
"default": "./cjs/index.cjs"
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"files": [
"dist"
],
"description": "Graasp Translations",
"repository": {
"type": "git",
Expand All @@ -40,9 +40,7 @@
"scripts": {
"prepack": "yarn build",
"prepare": "yarn build && yarn hooks:install",
"build": "yarn build:esm && yarn build:cjs",
"build:cjs": "vite build && echo '{\"type\": \"commonjs\"}' > cjs/package.json",
"build:esm": "tsc -p tsconfig.esm.json && tsc-alias -p tsconfig.esm.json && echo '{\"type\": \"module\"}' > esm/package.json",
"build": "npx unbuild",
"prettier:check": "prettier --check {src,test}/**/*.{js,ts,tsx,json}",
"prettier:write": "prettier --write {src,test}/**/*.{js,ts,tsx,json}",
"hooks:uninstall": "husky uninstall",
Expand Down

0 comments on commit 8497f21

Please sign in to comment.