Skip to content

Commit

Permalink
fix: add cjs entry
Browse files Browse the repository at this point in the history
  • Loading branch information
wwsun committed Jan 18, 2022
1 parent 1e99ad0 commit 4f68c5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "coral-system",
"version": "0.5.4",
"description": "a lightweight style system with react ui primitives",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"files": [
Expand All @@ -12,8 +13,9 @@
"prepublishOnly": "yarn clean && yarn build",
"up": "yarn upgrade-interactive --latest",
"start": "start-storybook -p 8008",
"build": "yarn build:esm",
"build": "yarn build:esm && yarn build:cjs",
"build:esm": "tsc --project tsconfig.prod.json --outDir dist/esm/ --module ES2015",
"build:cjs": "tsc --project tsconfig.prod.json --outDir dist/cjs/ --module CommonJS",
"clean": "rimraf dist/",
"release": "np",
"story:build": "build-storybook --docs",
Expand Down

0 comments on commit 4f68c5b

Please sign in to comment.