Skip to content

Commit

Permalink
update: build pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
hygorzorak committed Oct 23, 2024
1 parent 5c615f2 commit be30e7d
Show file tree
Hide file tree
Showing 5 changed files with 529 additions and 12 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,15 @@
"exports": {
".": {
"require": "./dist/index.cjs.js",
"import": "./dist/index.js",
"default": "./dist/index.js"
"import": "./dist/index.js"
},
"./utils": {
"require": "./dist/utils.cjs.js",
"import": "./dist/utils.js",
"default": "./dist/utils.js"
"import": "./dist/utils.js"
},
"./demo": {
"require": "./dist/features/demo.cjs.js",
"import": "./dist/features/demo.js",
"default": "./dist/features/demo.js"
"import": "./dist/features/demo.js"
}
},
"homepage": "https://github.com/hygorzorak/npm-package-template",
Expand Down Expand Up @@ -52,16 +49,18 @@
"@vitejs/plugin-react": "^4.3.2",
"@vitest/coverage-v8": "^2.1.3",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"semantic-release": "^24.1.2",
"simple-git-hooks": "^2.11.1",
"size-limit": "^11.1.6",
"tsup": "^8.3.0",
"typescript": "^5.5.4",
"vitest": "^2.0.5"
},
"scripts": {
"prepare": "simple-git-hooks",
"build": "tsc",
"watch": "tsc -w",
"build": "rimraf dist && tsup",
"watch": "tsup --watch",
"ci": "npm run build && npm run check-exports && npm run lint && npm run test",
"test": "vitest run",
"test:watch": "vitest",
Expand Down
Loading

0 comments on commit be30e7d

Please sign in to comment.