Skip to content

Commit

Permalink
📦 fix export error
Browse files Browse the repository at this point in the history
  • Loading branch information
higuaifan committed Jan 15, 2024
1 parent 63eae2b commit 179e8e5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
21 changes: 17 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
{
"name": "@shuimo-design/lunar",
"type": "module",
"version": "0.0.1",
"version": "0.0.2",
"description": "javascript solar to chinese lunar tool",
"author": "higuaifan",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"browser": "dist/index.umd.js",
"types": "./dist/es/types/index.d.mts",
"main": "./dist/umd/index.umd.js",
"module": "./dist/es/index.mjs",
"exports": {
".": {
"import": {
"types": "./dist/es/types/index.d.mts",
"default": "./dist/es/index.mjs"
},
"require": {
"types": "./dist/cjs/types/index.d.cts",
"default": "./dist/cjs/index.cjs"
}
},
"./*": "./*"
},
"files": [
"dist",
"lib",
"types"
],
"types": "dist/types/index.d.ts",
"scripts": {
"build": "rollup --config rollup.config.ts --bundleConfigAsCjs --configPlugin @rollup/plugin-typescript",
"test": "vitest",
Expand Down
8 changes: 4 additions & 4 deletions rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,24 @@ export default ({
],
output: [
{
file: 'dist/index.js',
file: 'dist/cjs/index.cjs',
format: 'cjs',
sourcemap: true
},
{
file: 'dist/index.min.js',
file: 'dist/cjs/index.min.cjs',
format: 'cjs',
plugins: [terser()],
sourcemap: true
},
{
file: 'dist/index.umd.js',
file: 'dist/umd/index.umd.js',
format: 'umd',
name: 'shuimo-design-lunar',
sourcemap: true
},
{
file: 'dist/index.esm.js',
file: 'dist/es/index.mjs',
format: 'esm',
sourcemap: true
}
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"esModuleInterop": true,
"allowJs": true,
"experimentalDecorators": true,
"useDefineForClassFields": false,
"useDefineForClassFields": false
},
"exclude": [
"node_modules",
Expand Down

0 comments on commit 179e8e5

Please sign in to comment.