|
1 | 1 | { |
2 | 2 | "name": "vite-plugin-node-polyfills", |
3 | | - "description": "A Vite plugin to polyfill Node's Core Modules for browser environments.", |
| 3 | + "type": "module", |
4 | 4 | "version": "0.16.0", |
| 5 | + "packageManager": "[email protected]", |
| 6 | + "description": "A Vite plugin to polyfill Node's Core Modules for browser environments.", |
5 | 7 | "author": "David Myers <[email protected]>", |
| 8 | + "license": "MIT", |
6 | 9 | "funding": "https://github.com/sponsors/davidmyersdev", |
7 | 10 | "homepage": "https://github.com/davidmyersdev/vite-plugin-node-polyfills", |
8 | | - "license": "MIT", |
9 | 11 | "repository": { |
10 | 12 | "type": "git", |
11 | 13 | "url": "git+https://github.com/davidmyersdev/vite-plugin-node-polyfills.git" |
|
19 | 21 | "vite", |
20 | 22 | "vite-plugin" |
21 | 23 | ], |
22 | | - "type": "module", |
23 | | - "main": "./dist/index.cjs", |
24 | | - "module": "./dist/index.js", |
25 | | - "types": "./dist/index.d.ts", |
26 | 24 | "exports": { |
27 | 25 | ".": { |
| 26 | + "types": "./dist/index.d.ts", |
28 | 27 | "require": "./dist/index.cjs", |
29 | | - "import": "./dist/index.js", |
30 | | - "types": "./dist/index.d.ts" |
| 28 | + "import": "./dist/index.js" |
31 | 29 | }, |
32 | 30 | "./shims": { |
33 | 31 | "require": "./shims/dist/index.cjs", |
|
38 | 36 | "import": "./shims/banner/dist/index.cjs" |
39 | 37 | } |
40 | 38 | }, |
| 39 | + "main": "./dist/index.cjs", |
| 40 | + "module": "./dist/index.js", |
| 41 | + "types": "./dist/index.d.ts", |
41 | 42 | "files": [ |
42 | 43 | "dist", |
43 | 44 | "shims" |
|
48 | 49 | "build:shims": "vite build ./shims", |
49 | 50 | "build:shims:banner": "vite-node ./shims/banner/build.ts", |
50 | 51 | "build:types": "run-s typecheck", |
| 52 | + "lint": "eslint .", |
| 53 | + "lint:fix": "eslint --fix .", |
51 | 54 | "test": "run-s test:build", |
52 | 55 | "test:build": "run-p test:build:*", |
53 | 56 | "test:build:react": "pnpm -C ./examples/react run build", |
|
62 | 65 | "typecheck:vanilla": "pnpm -C ./examples/vanilla run typecheck", |
63 | 66 | "typecheck:vue": "pnpm -C ./examples/vue run typecheck" |
64 | 67 | }, |
65 | | - "packageManager": "[email protected]", |
| 68 | + "peerDependencies": { |
| 69 | + "vite": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0" |
| 70 | + }, |
| 71 | + "dependencies": { |
| 72 | + "@rollup/plugin-inject": "^5.0.5", |
| 73 | + "buffer-polyfill": "npm:buffer@^6.0.3", |
| 74 | + "node-stdlib-browser": "^1.2.0", |
| 75 | + "process": "^0.11.10" |
| 76 | + }, |
66 | 77 | "devDependencies": { |
67 | 78 | "@types/node": "^18.18.8", |
68 | 79 | "esbuild": "^0.18.20", |
| 80 | + "eslint": "^8.54.0", |
| 81 | + "eslint-config-artisan": "^0.2.1", |
69 | 82 | "npm-run-all": "^4.1.5", |
70 | 83 | "rollup": "^3.29.4", |
71 | 84 | "typescript": "4.8.3", |
|
75 | 88 | "vite-plugin-inspect": "^0.7.42", |
76 | 89 | "vite-plugin-node-polyfills": "workspace:*" |
77 | 90 | }, |
78 | | - "dependencies": { |
79 | | - "@rollup/plugin-inject": "^5.0.5", |
80 | | - "buffer-polyfill": "npm:buffer@^6.0.3", |
81 | | - "node-stdlib-browser": "^1.2.0", |
82 | | - "process": "^0.11.10" |
83 | | - }, |
84 | | - "peerDependencies": { |
85 | | - "vite": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0" |
86 | | - }, |
87 | 91 | "publishConfig": { |
88 | 92 | "access": "public" |
89 | 93 | }, |
|
0 commit comments