-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
package.json
130 lines (130 loc) · 4.17 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
"name": "vite-plugin-node-polyfills",
"type": "module",
"version": "0.22.0",
"packageManager": "[email protected]+sha256.22e36fba7f4880ecf749a5ca128b8435da085ecd49575e7fb9e64d6bf4fad394",
"description": "A Vite plugin to polyfill Node's Core Modules for browser environments.",
"author": "David Myers <[email protected]>",
"license": "MIT",
"funding": "https://github.com/sponsors/davidmyersdev",
"homepage": "https://github.com/davidmyersdev/vite-plugin-node-polyfills",
"repository": {
"type": "git",
"url": "git+https://github.com/davidmyersdev/vite-plugin-node-polyfills.git"
},
"keywords": [
"node",
"node-core-modules",
"node-polyfills",
"node-stdlib",
"polyfills",
"vite",
"vite-plugin"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.js"
},
"./shims": {
"require": "./shims/dist/index.cjs",
"import": "./shims/dist/index.js"
},
"./shims/buffer": {
"require": "./shims/buffer/dist/index.cjs",
"import": "./shims/buffer/dist/index.js"
},
"./shims/buffer/": {
"require": "./shims/buffer/dist/index.cjs",
"import": "./shims/buffer/dist/index.js"
},
"./shims/global": {
"require": "./shims/global/dist/index.cjs",
"import": "./shims/global/dist/index.js"
},
"./shims/global/": {
"require": "./shims/global/dist/index.cjs",
"import": "./shims/global/dist/index.js"
},
"./shims/process": {
"require": "./shims/process/dist/index.cjs",
"import": "./shims/process/dist/index.js"
},
"./shims/process/": {
"require": "./shims/process/dist/index.cjs",
"import": "./shims/process/dist/index.js"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist",
"shims"
],
"scripts": {
"build": "run-s build:core build:shims build:types",
"build:core": "vite build",
"build:shims": "run-p build:shims:*",
"build:shims:buffer": "vite build -c ./shims/vite.config.ts ./shims/buffer",
"build:shims:global": "vite build -c ./shims/vite.config.ts ./shims/global",
"build:shims:process": "vite build -c ./shims/vite.config.ts ./shims/process",
"build:types": "run-s typecheck",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"test": "run-p test:build test:error-repros test:unit",
"test:build": "run-p test:build:*",
"test:build:react": "pnpm -C ./examples/react run build",
"test:build:vanilla": "pnpm -C ./examples/vanilla run build",
"test:build:vue": "pnpm -C ./examples/vue run build",
"test:dev:react": "pnpm -C ./examples/react run dev",
"test:dev:vanilla": "pnpm -C ./examples/vanilla run dev",
"test:dev:vue": "pnpm -C ./examples/vue run dev",
"test:error-repros": "run-p test:error-repros:*",
"test:error-repros:vite-scan-buffer-import-error": "pnpm --filter vite-scan-buffer-import-error test",
"test:unit": "vitest run --dir ./test",
"typecheck": "run-p typecheck:*",
"typecheck:core": "tsc",
"typecheck:react": "pnpm -C ./examples/react run typecheck",
"typecheck:vanilla": "pnpm -C ./examples/vanilla run typecheck",
"typecheck:vue": "pnpm -C ./examples/vue run typecheck"
},
"peerDependencies": {
"vite": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0"
},
"dependencies": {
"@rollup/plugin-inject": "^5.0.5",
"node-stdlib-browser": "^1.2.0"
},
"devDependencies": {
"@playwright/test": "^1.40.1",
"@types/node": "^18.18.8",
"buffer": "6.0.3",
"esbuild": "^0.19.8",
"eslint": "^8.54.0",
"eslint-config-artisan": "^0.2.1",
"npm-run-all": "^4.1.5",
"process": "^0.11.10",
"rollup": "^4.6.0",
"typescript": "4.8.3",
"vite": "^5.0.2",
"vite-node": "^0.34.6",
"vite-plugin-externalize-deps": "^0.1.5",
"vite-plugin-inspect": "^0.7.42",
"vite-plugin-node-polyfills": "workspace:*",
"vitest": "^1.2.2"
},
"publishConfig": {
"access": "public"
},
"pnpm": {
"overrides": {
"buffer": "6.0.3",
"vite": "^5.0.2"
},
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
}
}
}