generated from stagas/ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
93 lines (93 loc) · 3.33 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"name": "define-accessors",
"author": "stagas",
"short": "stagas/define-accessors",
"description": "define accessors for an object on another object",
"version": "1.1.1",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://[email protected]:stagas/define-accessors.git"
},
"keywords": [
"accessors",
"getters",
"setters"
],
"module": "dist/esm/index.js",
"main": "dist/cjs/index.js",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
}
},
"targets": {
"main": {
"context": "node",
"engines": {
"node": ">=16.0"
}
}
},
"files": [
"dist"
],
"scripts": {
"build": "npm run build:cjs && npm run build:esm && echo done.",
"docs": "documentation readme src --resolve=node --pe ts --re ts --re d.ts --github --section=API --markdown-toc-max-depth=3",
"test": "npm run test:node && npm run test:web",
"test:web": "web-test-runner",
"cov": "jest --coverage",
"lint": "eslint src && prettier --check src",
"build:watch": "tsc -p tsconfig.dist.json --outDir dist/esm --module esnext --watch & tsc -p tsconfig.dist.json --outDir dist/cjs --watch",
"docs:watch": "onchange -i src --await-write-finish 400 -- npm run docs",
"test:watch": "jest --watchAll",
"cov:watch": "jest --coverage --watchAll",
"build:cjs": "tsc -p tsconfig.dist.json --outDir dist/cjs",
"build:esm": "tsc -p tsconfig.dist.json --outDir dist/esm --module esnext && echo '{\"type\":\"module\"}' >dist/esm/package.json",
"build:min": "esbuild dist/esm/index.js --bundle --format=esm | terser --compress --module --mangle -o \"$(cat package.json | jq -r '.name').min.js\" && wc -c \"$(cat package.json | jq -r '.name').min.js\"",
"lint:fix": "eslint --fix src && prettier --write src",
"clean": "rimraf dist",
"prepack": "npm run clean && npm run build",
"prepack:dry": "npm pack --dry-run",
"prepare": "husky install && node .pull-configs.js",
"start": "vite-open example/web.ts",
"start:https": "vite-open --https example/web.ts",
"test:node": "jest",
"build:bundle": "esbuild dist/esm/index.js --bundle --format=esm --outfile=\"$(cat package.json | jq -r '.name').js\" && wc -c \"$(cat package.json | jq -r '.name').js\"",
"prepush": "npm run lint && npm run test"
},
"devDependencies": {
"@n1kk/intspector": "^1.0.2",
"@rollup/plugin-commonjs": "^21.0.2",
"@stagas/documentation-fork": "^13.2.5",
"@stagas/sucrase-jest-plugin": "^2.2.0-fork",
"@swc-node/jest": "^1.4.3",
"@tsconfig/node16": "^1.0.2",
"@types/jest": "^27.4.1",
"@types/node": "^17.0.21",
"@typescript-eslint/eslint-plugin": "^5.14.0",
"@typescript-eslint/parser": "^5.14.0",
"@web/dev-server-rollup": "^0.3.15",
"@web/test-runner": "^0.13.27",
"esbuild": "^0.14.25",
"eslint": "^8.11.0",
"eslint-config-html-jsx": "^1.0.0",
"eslint-plugin-import": "^2.25.4",
"husky": "^7.0.4",
"jest": "^27.5.1",
"jest-browser-globals": "^25.1.0-beta",
"onchange": "^7.1.0",
"prettier": "^2.5.1",
"pull-configs": "^0.2.0",
"rimraf": "^3.0.2",
"swcno": "^0.1.1",
"terser": "^5.12.0",
"ts-jest": "^27.1.3",
"ts-node": "^10.7.0",
"typescript": "^4.6.2",
"vite-open": "^1.2.0",
"vite-web-test-runner-plugin": "^0.1.0"
}
}