|
1 | 1 | {
|
2 |
| - "name": "@jcamp/npm-package-repo-template", |
| 2 | + "name": "@jcamp/starter-typescript", |
3 | 3 | "type": "module",
|
4 | 4 | "version": "0.1.0",
|
5 | 5 | "private": true,
|
6 |
| - "description": "Starter repo for building NPM packages", |
| 6 | + "description": "Starter repo for Typescript projects and NPM packages", |
7 | 7 | "author": "John Campion",
|
8 | 8 | "license": "MIT",
|
9 |
| - "homepage": "https://github.com/jcamp-code/npm-package-repo-template", |
| 9 | + "homepage": "https://github.com/jcamp-code/starter-typescript", |
10 | 10 | "repository": {
|
11 | 11 | "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" |
13 | 13 | },
|
14 | 14 | "bugs": {
|
15 |
| - "url": "https://github.com/jcamp-code/npm-package-repo-template/issues" |
| 15 | + "url": "https://github.com/jcamp-code/starter-typescript/issues" |
16 | 16 | },
|
17 | 17 | "keywords": [
|
18 | 18 | "npm",
|
|
22 | 22 | ],
|
23 | 23 | "exports": {
|
24 | 24 | ".": {
|
25 |
| - "types": "./types/index.d.ts", |
26 |
| - "default": "./dist/index.js" |
| 25 | + "require": "./dist/index.cjs", |
| 26 | + "import": "./dist/index.mjs" |
27 | 27 | }
|
28 | 28 | },
|
29 |
| - "main": "index.js", |
30 |
| - "types": "types/index.d.ts", |
| 29 | + "main": "./dist/index.cjs", |
| 30 | + "types": "./dist/index.d.ts", |
31 | 31 | "files": [
|
32 |
| - "dist", |
33 |
| - "types" |
| 32 | + "dist" |
34 | 33 | ],
|
35 | 34 | "scripts": {
|
36 |
| - "dev": "tsc -w", |
37 |
| - "build": "tsc", |
| 35 | + "dev:tsc": "tsc -w", |
| 36 | + "build:tsc": "tsc", |
| 37 | + "dev": "unbuild --stub", |
| 38 | + "build": "unbuild", |
38 | 39 | "lint": "eslint .",
|
39 | 40 | "lint:fix": "eslint . --fix",
|
40 | 41 | "format": "prettier --check --write .",
|
41 | 42 | "postinstall": "npx simple-git-hooks",
|
42 | 43 | "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" |
47 | 48 | },
|
48 | 49 | "devDependencies": {
|
49 | 50 | "@commitlint/cli": "^17.5.1",
|
|
55 | 56 | "prettier": "2.8.7",
|
56 | 57 | "simple-git-hooks": "^2.8.1",
|
57 | 58 | "typescript": "^5.0.3",
|
| 59 | + "unbuild": "^1.2.0", |
58 | 60 | "vite": "^4.2.1",
|
59 | 61 | "vitest": "^0.29.8"
|
60 | 62 | }
|
|
0 commit comments