Skip to content

Commit

Permalink
fix: amend entry points
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-bell committed Apr 2, 2023
1 parent 3814dc8 commit ff0d374
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
11 changes: 7 additions & 4 deletions packages/class-variance-authority/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,22 @@
"funding": "https://joebell.co.uk",
"author": "Joe Bell (https://joebell.co.uk)",
"exports": {
"import": "./dist/index.esm.js",
"require": "./dist/index.cjs.js"
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist/*.mjs",
"dist/*.js",
"dist/*.js.map",
"dist/*.d.ts"
],
"scripts": {
"build": "run-p build:**",
"build:cjs": "swc ./src/index.ts --config-file ./.config/.swcrc -o dist/index.cjs.js -C module.type=commonjs",
"build:esm": "swc ./src/index.ts --config-file ./.config/.swcrc -o dist/index.esm.js -C module.type=es6 ",
"build:cjs": "swc ./src/index.ts --config-file ./.config/.swcrc -o dist/index.js -C module.type=commonjs",
"build:esm": "swc ./src/index.ts --config-file ./.config/.swcrc -o dist/index.mjs -C module.type=es6 ",
"build:tsc": "tsc --project .config/tsconfig.build.json",
"check": "tsc --project tsconfig.json --noEmit",
"dev": "jest --config .config/jest.config.ts --watch",
Expand Down
11 changes: 7 additions & 4 deletions packages/cva/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,22 @@
"funding": "https://joebell.co.uk",
"author": "Joe Bell (https://joebell.co.uk)",
"exports": {
"import": "./dist/index.esm.js",
"require": "./dist/index.cjs.js"
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist/*.mjs",
"dist/*.js",
"dist/*.js.map",
"dist/*.d.ts"
],
"scripts": {
"build": "run-p build:**",
"build:cjs": "swc ./src/index.ts --config-file ./.config/.swcrc -o dist/index.cjs.js -C module.type=commonjs",
"build:esm": "swc ./src/index.ts --config-file ./.config/.swcrc -o dist/index.esm.js -C module.type=es6 ",
"build:cjs": "swc ./src/index.ts --config-file ./.config/.swcrc -o dist/index.js -C module.type=commonjs",
"build:esm": "swc ./src/index.ts --config-file ./.config/.swcrc -o dist/index.mjs -C module.type=es6 ",
"build:tsc": "tsc --project .config/tsconfig.build.json",
"check": "tsc --project tsconfig.json --noEmit",
"dev": "jest --config .config/jest.config.ts --watch",
Expand Down

0 comments on commit ff0d374

Please sign in to comment.