/
package.json
110 lines (110 loc) · 3.92 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{
"name": "vite-open",
"author": "stagas",
"short": "stagas/vite-open",
"description": "Open any file directly in a Vite dev server.",
"version": "3.1.0",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://git@github.com:stagas/vite-open.git"
},
"keywords": [
"vite",
"open",
"file"
],
"types": "./dist/types/index.d.ts",
"module": "dist/esm/index.js",
"main": "dist/cjs/index.js",
"bin": {
"vite-open": "dist/cjs/cli.js"
},
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
}
},
"files": [
"dist",
"!**/*.tsbuildinfo"
],
"scripts": {
"start:web": "vite-open example/web --https",
"start:web:debugging": "vite-open example/web --https --debugging-this",
"start:node": "onchange -i src example -- swcno example/node.ts",
"build:watch": "fastpm autolink && tsc -p tsconfig.dist.json --outDir dist/types --watch & swc -w -C module.type=commonjs ./src -d dist/cjs -w & swc -w -C module.type=es6 ./src -d dist/esm",
"build:dist": "npm run build:bundle && npm run build:min",
"cov:watch": "utr --coverage --watch",
"clean": "rimraf dist",
"docs": "dokio -o README.md && dprint fmt README.md",
"test": "echo ok",
"test:node": "if find test -type f -iregex '.*\\.spec\\.\\(js\\|jsx\\|ts\\|tsx\\)$' | grep -q .; then utr 'test/*.spec.{js,jsx,ts,tsx}'; else echo no node tests; fi",
"test:web": "if find test -type f -iregex '.*\\.spec\\.web\\.\\(js\\|jsx\\|ts\\|tsx\\)$' | grep -q .; then utr --browser 'test/*.spec.web.{js,jsx,ts,tsx}'; else echo no web tests; fi",
"cov": "utr --coverage",
"build": "npm run build:cjs & npm run build:esm & npm run build:types && echo done.",
"build:cjs": "swc -C module.type=commonjs ./src -d dist/cjs",
"build:esm": "swc -C module.type=es6 ./src -d dist/esm && echo '{\"type\":\"module\"}' >dist/esm/package.json",
"build:types": "tsc -p tsconfig.dist.json --outDir dist/types",
"build:bundle": "echo ok",
"build:min": "echo ok",
"lint": "eslint src && dprint check",
"lint:fix": "eslint --fix src && dprint fmt",
"prepack": "npm run clean && npm run build && (npm run build:dist || echo unable to bundle)",
"prepack:dry": "npm pack --dry-run",
"prepush": "npm run lint && npm run test",
"prepare": "husky install"
},
"devDependencies": {
"@n1kk/intspector": "1.0.2",
"@swc/cli": "0.1.57",
"@swc/core": "1.2.218",
"@tsconfig/node16": "1.0.3",
"@types/audioworklet": "0.0.29",
"@types/jest": "27.5.2",
"@types/node": "17.0.45",
"@types/qrcode-terminal": "0.12.0",
"@types/webmidi": "2.0.6",
"@typescript-eslint/eslint-plugin": "5.30.7",
"@typescript-eslint/parser": "5.30.7",
"bunzee": "^1.0.0",
"dokio": "^1.0.1",
"dprint": "0.30.3",
"eslint": "8.20.0",
"eslint-config-html-jsx": "^1.0.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-react": "7.30.0",
"husky": "7.0.4",
"onchange": "7.1.0",
"pull-configs": "^0.2.0",
"rimraf": "3.0.2",
"stdout-stderr": "0.1.13",
"swcno": "0.1.1",
"typescript": "4.7.3",
"utr": "^1.2.1",
"vite-open": "^2.4.0"
},
"dependencies": {
"@babel/core": "7.18.9",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/plugin-proposal-decorators": "7.18.9",
"@babel/plugin-proposal-private-methods": "7.18.6",
"@babel/plugin-transform-react-jsx": "7.18.6",
"@babel/plugin-transform-typescript": "7.18.8",
"@stagas/chalk": "5.0.0",
"@vitejs/plugin-basic-ssl": "0.1.1",
"decarg": "^1.2.1",
"everyday-node": "^1.2.1",
"everyday-utils": "^1.1.0",
"github-markdown-css": "5.1.0",
"open-in-editor-connect": "1.0.0",
"qrcode-terminal": "0.12.0",
"rollup-plugin-debug": "^0.2.0",
"running-at": "0.3.22",
"vite": "^3.0.4",
"vite-plugin-babel": "^1.1.0",
"vite-plugin-markdown": "^2.0.2",
"vite-plugin-virtual": "^0.1.1"
}
}