Skip to content

Commit e290883

Browse files
committed
feat: added unbuild
1 parent 5e1410b commit e290883

File tree

4 files changed

+593
-22
lines changed

4 files changed

+593
-22
lines changed

package.json

+19-17
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
2-
"name": "@jcamp/npm-package-repo-template",
2+
"name": "@jcamp/starter-typescript",
33
"type": "module",
44
"version": "0.1.0",
55
"private": true,
6-
"description": "Starter repo for building NPM packages",
6+
"description": "Starter repo for Typescript projects and NPM packages",
77
"author": "John Campion",
88
"license": "MIT",
9-
"homepage": "https://github.com/jcamp-code/npm-package-repo-template",
9+
"homepage": "https://github.com/jcamp-code/starter-typescript",
1010
"repository": {
1111
"type": "git",
12-
"url": "git+https://github.com/jcamp-code/npm-package-repo-template.git"
12+
"url": "git+https://github.com/jcamp-code/starter-typescript.git"
1313
},
1414
"bugs": {
15-
"url": "https://github.com/jcamp-code/npm-package-repo-template/issues"
15+
"url": "https://github.com/jcamp-code/starter-typescript/issues"
1616
},
1717
"keywords": [
1818
"npm",
@@ -22,28 +22,29 @@
2222
],
2323
"exports": {
2424
".": {
25-
"types": "./types/index.d.ts",
26-
"default": "./dist/index.js"
25+
"require": "./dist/index.cjs",
26+
"import": "./dist/index.mjs"
2727
}
2828
},
29-
"main": "index.js",
30-
"types": "types/index.d.ts",
29+
"main": "./dist/index.cjs",
30+
"types": "./dist/index.d.ts",
3131
"files": [
32-
"dist",
33-
"types"
32+
"dist"
3433
],
3534
"scripts": {
36-
"dev": "tsc -w",
37-
"build": "tsc",
35+
"dev:tsc": "tsc -w",
36+
"build:tsc": "tsc",
37+
"dev": "unbuild --stub",
38+
"build": "unbuild",
3839
"lint": "eslint .",
3940
"lint:fix": "eslint . --fix",
4041
"format": "prettier --check --write .",
4142
"postinstall": "npx simple-git-hooks",
4243
"test": "vitest run",
43-
"release": "pnpm changelogen --release --push && pnpm publish",
44-
"release:minor": "pnpm changelogen --release --minor --push && pnpm publish",
45-
"release:major": "pnpm changelogen --release --major --push && pnpm publish",
46-
"release:patch": "pnpm changelogen --release --patch --push && pnpm publish"
44+
"release": "changelogen --release --push && pnpm publish",
45+
"release:minor": "changelogen --release --minor --push && pnpm publish",
46+
"release:major": "changelogen --release --major --push && pnpm publish",
47+
"release:patch": "changelogen --release --patch --push && pnpm publish"
4748
},
4849
"devDependencies": {
4950
"@commitlint/cli": "^17.5.1",
@@ -55,6 +56,7 @@
5556
"prettier": "2.8.7",
5657
"simple-git-hooks": "^2.8.1",
5758
"typescript": "^5.0.3",
59+
"unbuild": "^1.2.0",
5860
"vite": "^4.2.1",
5961
"vitest": "^0.29.8"
6062
}

0 commit comments

Comments
 (0)