|
33 | 33 | }, |
34 | 34 | "./shims/banner": { |
35 | 35 | "require": "./shims/banner/dist/index.cjs", |
36 | | - "import": "./shims/banner/dist/index.cjs" |
| 36 | + "import": "./shims/banner/dist/index.js" |
| 37 | + }, |
| 38 | + "./shims/buffer": { |
| 39 | + "require": "./shims/buffer/dist/index.cjs", |
| 40 | + "import": "./shims/buffer/dist/index.js" |
| 41 | + }, |
| 42 | + "./shims/global": { |
| 43 | + "require": "./shims/global/dist/index.cjs", |
| 44 | + "import": "./shims/global/dist/index.js" |
| 45 | + }, |
| 46 | + "./shims/process": { |
| 47 | + "require": "./shims/process/dist/index.cjs", |
| 48 | + "import": "./shims/process/dist/index.js" |
37 | 49 | } |
38 | 50 | }, |
39 | 51 | "main": "./dist/index.cjs", |
|
44 | 56 | "shims" |
45 | 57 | ], |
46 | 58 | "scripts": { |
47 | | - "build": "run-s build:core build:shims build:shims:banner build:types", |
| 59 | + "build": "run-s build:core build:shims build:banner build:types", |
| 60 | + "build:banner": "vite-node ./shims/banner/build.ts", |
48 | 61 | "build:core": "vite build", |
49 | | - "build:shims": "vite build ./shims", |
50 | | - "build:shims:banner": "vite-node ./shims/banner/build.ts", |
| 62 | + "build:shims": "run-p build:shims:*", |
| 63 | + "build:shims:buffer": "vite build -c ./shims/vite.config.ts ./shims/buffer", |
| 64 | + "build:shims:global": "vite build -c ./shims/vite.config.ts ./shims/global", |
| 65 | + "build:shims:process": "vite build -c ./shims/vite.config.ts ./shims/process", |
51 | 66 | "build:types": "run-s typecheck", |
52 | 67 | "lint": "eslint .", |
53 | 68 | "lint:fix": "eslint --fix .", |
|
70 | 85 | }, |
71 | 86 | "dependencies": { |
72 | 87 | "@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" |
| 88 | + "node-stdlib-browser": "^1.2.0" |
76 | 89 | }, |
77 | 90 | "devDependencies": { |
78 | 91 | "@types/node": "^18.18.8", |
| 92 | + "buffer": "6.0.3", |
79 | 93 | "esbuild": "^0.19.8", |
80 | 94 | "eslint": "^8.54.0", |
81 | 95 | "eslint-config-artisan": "^0.2.1", |
82 | 96 | "npm-run-all": "^4.1.5", |
| 97 | + "process": "^0.11.10", |
83 | 98 | "rollup": "^4.6.0", |
84 | 99 | "typescript": "4.8.3", |
85 | 100 | "vite": "^5.0.2", |
|
92 | 107 | "access": "public" |
93 | 108 | }, |
94 | 109 | "pnpm": { |
| 110 | + "overrides": { |
| 111 | + "buffer": "6.0.3" |
| 112 | + }, |
95 | 113 | "patchedDependencies": { |
96 | 114 | |
97 | 115 | } |
|
0 commit comments