Skip to content

Commit

Permalink
chore: update build process
Browse files Browse the repository at this point in the history
  • Loading branch information
susisu committed May 25, 2024
1 parent 0cd7f2f commit 06c009a
Show file tree
Hide file tree
Showing 6 changed files with 518 additions and 2,014 deletions.
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"files": [
"lib",
"src",
"!src/**/*.spec.ts",
"!src/**/*.{test,spec}.{ts,tsx}",
"!src/**/__tests__"
],
"main": "./lib/index.js",
Expand All @@ -19,6 +19,10 @@
"import": {
"default": "./lib/index.js",
"types": "./lib/index.d.ts"
},
"require": {
"default": "./lib/index.cjs",
"types": "./lib/index.d.cts"
}
}
},
Expand All @@ -30,11 +34,8 @@
"typecheck": "tsc -p tsconfig.json --noEmit",
"test": "vitest run --coverage",
"test:dev": "vitest dev --coverage.enabled --coverage.reporter=text",
"build": "tsc --build tsconfig.build.json",
"clean": "run-s clean:build clean:rm",
"clean:build": "tsc --build tsconfig.build.json --clean",
"clean:rm": "rimraf lib",
"prepublishOnly": "run-s clean format:check lint:check typecheck test build"
"build": "tsup",
"prepublishOnly": "run-s format:check lint:check typecheck test build"
},
"devDependencies": {
"@susisu/eslint-config": "^0.0.82",
Expand All @@ -45,7 +46,7 @@
"globals": "^15.3.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.2.5",
"rimraf": "^5.0.7",
"tsup": "^8.0.2",
"typescript": "~5.4.5",
"vitest": "^1.6.0"
}
Expand Down
Loading

0 comments on commit 06c009a

Please sign in to comment.