Skip to content

Commit

Permalink
fix: exports esm and cjs package
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinWeb committed Oct 19, 2023
1 parent 9b1c738 commit 9c904b0
Show file tree
Hide file tree
Showing 42 changed files with 252 additions and 9 deletions.
6 changes: 6 additions & 0 deletions packages/Form/Input/card/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"private": false,
"scripts": {
"build": "rimraf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
Expand Down
6 changes: 6 additions & 0 deletions packages/Form/Input/checkbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"private": false,
"scripts": {
"build": "rimraf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
Expand Down
6 changes: 6 additions & 0 deletions packages/Form/Input/choice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"private": false,
"scripts": {
"build": "rimraf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
Expand Down
6 changes: 6 additions & 0 deletions packages/Form/Input/date/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"private": false,
"scripts": {
"build": "rimraf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
Expand Down
6 changes: 6 additions & 0 deletions packages/Form/Input/file/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"private": false,
"scripts": {
"build": "rimraf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
Expand Down
6 changes: 6 additions & 0 deletions packages/Form/Input/number/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"private": false,
"scripts": {
"build": "rimraf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
Expand Down
6 changes: 6 additions & 0 deletions packages/Form/Input/pass/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"private": false,
"scripts": {
"build": "rimraf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
Expand Down
6 changes: 6 additions & 0 deletions packages/Form/Input/radio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"private": false,
"scripts": {
"build": "rimraf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
Expand Down
6 changes: 6 additions & 0 deletions packages/Form/Input/select-multi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"private": false,
"scripts": {
"build": "rimraf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
Expand Down
6 changes: 6 additions & 0 deletions packages/Form/Input/select/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"private": false,
"scripts": {
"build": "rimraf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
Expand Down
6 changes: 6 additions & 0 deletions packages/Form/Input/slider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"private": false,
"scripts": {
"build": "rimraf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
Expand Down
6 changes: 6 additions & 0 deletions packages/Form/Input/switch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"private": false,
"scripts": {
"build": "rimraf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
Expand Down
6 changes: 6 additions & 0 deletions packages/Form/Input/text/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"private": false,
"scripts": {
"build": "rimraf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
Expand Down
6 changes: 6 additions & 0 deletions packages/Form/Input/textarea/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"private": false,
"scripts": {
"build": "rimraf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
Expand Down
6 changes: 6 additions & 0 deletions packages/Form/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"private": false,
"scripts": {
"build": "rimraf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
Expand Down
6 changes: 6 additions & 0 deletions packages/Form/filter-inline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"private": false,
"scripts": {
"build": "rimraf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
Expand Down
6 changes: 6 additions & 0 deletions packages/Form/filter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"private": false,
"scripts": {
"build": "rimraf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
Expand Down
6 changes: 6 additions & 0 deletions packages/Form/steps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"private": false,
"scripts": {
"build": "rimraf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
Expand Down
7 changes: 6 additions & 1 deletion packages/Form/summary/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
"version": "2.1.0-alpha.1",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"jsnext:main": "src/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"private": false,
"scripts": {
"build": "rimraf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
Expand Down
6 changes: 6 additions & 0 deletions packages/Layout/footer-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"private": false,
"scripts": {
"build": "rimraf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
Expand Down
7 changes: 6 additions & 1 deletion packages/Layout/footer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
"version": "2.1.0-alpha.1",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"jsnext:main": "src/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"private": false,
"scripts": {
"build": "rimraf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
Expand Down
6 changes: 6 additions & 0 deletions packages/Layout/header/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"private": false,
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
Expand Down
7 changes: 6 additions & 1 deletion packages/Modal/boolean/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
"version": "2.1.0-alpha.1",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"jsnext:main": "src/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"private": false,
"scripts": {
"build": "rimraf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
Expand Down
7 changes: 6 additions & 1 deletion packages/Modal/default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
"version": "2.1.0-alpha.1",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"jsnext:main": "src/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"private": false,
"scripts": {
"build": "rimraf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
Expand Down
6 changes: 6 additions & 0 deletions packages/action/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"private": false,
"scripts": {
"build": "rimraf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
Expand Down
6 changes: 6 additions & 0 deletions packages/alert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"private": false,
"scripts": {
"build": "rimraf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
Expand Down
6 changes: 6 additions & 0 deletions packages/all/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"main": "component/index.js",
"module": "esm/index.js",
"types": "esm/index.d.ts",
"exports": {
".": {
"require": "./component/index.js",
"import": "./esm/index.js"
}
},
"private": false,
"scripts": {
"prebuild": "rimraf ./component & rimraf ./esm",
Expand Down
6 changes: 6 additions & 0 deletions packages/badge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"private": false,
"scripts": {
"build": "rimraf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
Expand Down
6 changes: 6 additions & 0 deletions packages/button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"private": false,
"scripts": {
"build": "rimraf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
Expand Down
6 changes: 6 additions & 0 deletions packages/collapse/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"private": false,
"scripts": {
"build": "rimraf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
Expand Down
Loading

0 comments on commit 9c904b0

Please sign in to comment.