generated from nichoth/template-ts-browser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
71 lines (71 loc) · 2.32 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"name": "@bicycle-codes/routes",
"description": "Route matcher devised for shared rendering JavaScript applications",
"type": "module",
"version": "4.0.7",
"main": "dist/index.js",
"files": [
"./dist/*"
],
"scripts": {
"lint": "eslint \"./**/*.{ts,js}\"",
"build-tests": "esbuild test/index.ts --format=esm --target=es2020 --bundle --keep-names > test/test-bundle.js",
"test": "npm run test-main && npm run test-next",
"test-main": "esbuild ./test/index.ts --format=esm --platform=node --bundle --keep-names | node --input-type=module",
"test-next": "esbuild ./test/next.ts --format=esm --platform=node --bundle --keep-names | node --input-type=module",
"build-cjs": "esbuild src/*.ts --format=cjs --tsconfig=tsconfig.build.json --keep-names --outdir=./dist --out-extension:.js=.cjs",
"build-esm": "esbuild src/*.ts --format=esm --tsconfig=tsconfig.json --keep-names --outdir=./dist",
"build": "mkdir -p ./dist && rm -rf ./dist/* && npm run build-cjs && npm run build-esm",
"preversion": "npm run lint",
"version": "auto-changelog -p --template keepachangelog --breaking-pattern 'BREAKING CHANGE:' && git add CHANGELOG.md",
"postversion": "git push --follow-tags && npm publish",
"prepublishOnly": "npm run build"
},
"devDependencies": {
"@preact/preset-vite": "^2.8.1",
"@types/node": "^22.0.0",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"auto-changelog": "^2.4.0",
"esbuild": "^0.24.1",
"eslint": "^8.57.0",
"eslint-config-standard": "^17.1.0",
"typescript": "^5.3.3"
},
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./*": {
"import": [
"./dist/*.js",
"./dist/*"
],
"require": [
"./dist/*.cjs",
"./dist/*"
]
}
},
"author": "nichoth <nichoth@gmail.com> (https://nichoth.com)",
"directories": {
"test": "test"
},
"dependencies": {},
"repository": {
"type": "git",
"url": "git+https://github.com/bicycle-codes/routes.git"
},
"keywords": [
"router",
"routes",
"client-side",
"browser"
],
"bugs": {
"url": "https://github.com/bicycle-codes/routes/issues"
},
"homepage": "https://github.com/bicycle-codes/routes#readme",
"license": "MIT"
}