Skip to content

Commit

Permalink
Merge pull request #152 from Yqnn/npm-lib2
Browse files Browse the repository at this point in the history
fix: cjs lib
  • Loading branch information
Yqnn authored Nov 19, 2024
2 parents f0f2334 + 1e0f487 commit feb0782
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"author": "Yann Armelin",
"name": "svg-path-editor-lib",
"description": "The library powering Yqnn SvgPathEditor.",
"version": "1.0.0",
"version": "1.0.1",
"homepage": "https://github.com/Yqnn/svg-path-editor/tree/master/src/lib",
"repository": {
"type": "git",
"url": "git://github.com/Yqnn/svg-path-editor.git"
},
"main": "./dist/cjs/index.cjs.js",
"main": "./dist/cjs/index.js",
"files": [
"dist/**",
"index.ts",
Expand All @@ -26,11 +26,11 @@
"types": "./dist/esm/index.d.ts"
},
"require": {
"default": "./dist/cjs/index.cjs.js",
"types": "./dist/cjs/index.cjs.d.ts"
"default": "./dist/cjs/index.js",
"types": "./dist/cjs/index.d.ts"
}
},
"types": "./dist/cjs/index.cjs.d.ts",
"types": "./dist/cjs/index.d.ts",
"keywords": [
"svg",
"path",
Expand Down
3 changes: 2 additions & 1 deletion src/lib/tsconfig.cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"module": "commonjs",
"declarationDir": "dist/cjs",
"outDir": "dist/cjs",
"declaration": true
"declaration": true,
"importHelpers": false
},
"files": ["index.ts"],
"exclude": ["node_modules", "*.spec.ts"]
Expand Down

0 comments on commit feb0782

Please sign in to comment.