Skip to content

Commit

Permalink
Fix build (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitayutanov authored Aug 19, 2024
1 parent 67f3bdf commit 01dbb99
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 56 deletions.
2 changes: 1 addition & 1 deletion frontend/apps/battleship-zk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"typescript": "4.9.5",
"vite": "4.3.9",
"vite-plugin-checker": "0.6.4",
"vite-plugin-node-polyfills": "0.22.0",
"vite-plugin-node-polyfills": "0.17.0",
"vite-plugin-svgr": "3.2.0",
"vite-plugin-top-level-await": "1.3.1",
"vite-plugin-wasm": "3.2.2"
Expand Down
5 changes: 1 addition & 4 deletions frontend/apps/battleship-zk/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ export default defineConfig({
plugins: [
svgr(),
react(),
// disabling modules used in packages
nodePolyfills({
globals: { process: false, global: false },
}),
nodePolyfills(),
checker({
typescript: true,
eslint: { lintCommand: 'eslint "./src/**/*.{ts,tsx}"', dev: { logLevel: ['error'] } },
Expand Down
2 changes: 1 addition & 1 deletion frontend/apps/battleship/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"typescript": "4.9.5",
"vite": "4.3.9",
"vite-plugin-checker": "0.6.4",
"vite-plugin-node-polyfills": "0.22.0",
"vite-plugin-node-polyfills": "0.17.0",
"vite-plugin-svgr": "3.2.0",
"vite-plugin-top-level-await": "1.3.1",
"vite-plugin-wasm": "3.2.2"
Expand Down
5 changes: 1 addition & 4 deletions frontend/apps/battleship/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ export default defineConfig({
plugins: [
svgr(),
react(),
// disabling modules used in packages
nodePolyfills({
globals: { process: false, global: false },
}),
nodePolyfills(),
checker({
typescript: true,
eslint: { lintCommand: 'eslint "./src/**/*.{ts,tsx}"', dev: { logLevel: ['error'] } },
Expand Down
2 changes: 1 addition & 1 deletion frontend/apps/tamagotchi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"vite": "4.4.8",
"vite-plugin-checker": "^0.6.2",
"vite-plugin-eslint": "1.8.1",
"vite-plugin-node-polyfills": "0.22.0",
"vite-plugin-node-polyfills": "0.17.0",
"vite-plugin-top-level-await": "1.3.1",
"vite-plugin-wasm": "3.2.2"
}
Expand Down
10 changes: 1 addition & 9 deletions frontend/apps/tamagotchi/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,7 @@ export default defineConfig({
preview: {
port: 3000,
},
plugins: [
react(),
// disabling modules used in packages
nodePolyfills({
globals: { process: false, global: false },
}),
eslint(),
checker({ typescript: true }),
],
plugins: [react(), nodePolyfills(), eslint(), checker({ typescript: true })],
assetsInclude: ['**/*.wasm?inline'],
define: {
'process.env': {},
Expand Down
2 changes: 1 addition & 1 deletion frontend/apps/tic-tac-toe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"typescript": "4.9.5",
"vite": "4.4.9",
"vite-plugin-eslint": "1.8.1",
"vite-plugin-node-polyfills": "0.22.0",
"vite-plugin-node-polyfills": "0.17.0",
"vite-plugin-svgr": "3.2.0"
},
"browserslist": {
Expand Down
10 changes: 1 addition & 9 deletions frontend/apps/tic-tac-toe/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,7 @@ export default defineConfig(({ mode }) => {
outDir: 'build',
sourcemap: true,
},
plugins: [
svgr(),
react(),
// disabling modules used in packages
nodePolyfills({
globals: { process: false, global: false },
}),
eslint(),
],
plugins: [svgr(), react(), nodePolyfills(), eslint()],
assetsInclude: ['**/*.wasm?inline', '**/*.txt?inline'],
};
});
2 changes: 1 addition & 1 deletion frontend/apps/vara-man/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"tailwindcss-radix": "2.8.0",
"vite": "4.4.8",
"vite-plugin-eslint": "1.8.1",
"vite-plugin-node-polyfills": "0.22.0",
"vite-plugin-node-polyfills": "0.17.0",
"vite-plugin-top-level-await": "1.3.1",
"vite-plugin-wasm": "3.2.2"
}
Expand Down
9 changes: 1 addition & 8 deletions frontend/apps/vara-man/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,7 @@ export default defineConfig({
port: 3000,
},
base: './',
plugins: [
react(),
// disabling modules used in packages
nodePolyfills({
globals: { process: false, global: false },
}),
eslint(),
],
plugins: [react(), nodePolyfills(), eslint()],
assetsInclude: ['**/*.wasm?inline'],
build: { outDir: 'build' },
});
36 changes: 19 additions & 17 deletions frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9698,7 +9698,7 @@ __metadata:
typescript: "npm:4.9.5"
vite: "npm:4.3.9"
vite-plugin-checker: "npm:0.6.4"
vite-plugin-node-polyfills: "npm:0.22.0"
vite-plugin-node-polyfills: "npm:0.17.0"
vite-plugin-svgr: "npm:3.2.0"
vite-plugin-top-level-await: "npm:1.3.1"
vite-plugin-wasm: "npm:3.2.2"
Expand Down Expand Up @@ -9754,7 +9754,7 @@ __metadata:
typescript: "npm:4.9.5"
vite: "npm:4.3.9"
vite-plugin-checker: "npm:0.6.4"
vite-plugin-node-polyfills: "npm:0.22.0"
vite-plugin-node-polyfills: "npm:0.17.0"
vite-plugin-svgr: "npm:3.2.0"
vite-plugin-top-level-await: "npm:1.3.1"
vite-plugin-wasm: "npm:3.2.2"
Expand Down Expand Up @@ -10040,14 +10040,7 @@ __metadata:
languageName: node
linkType: hard

"buffer-xor@npm:^1.0.3":
version: 1.0.3
resolution: "buffer-xor@npm:1.0.3"
checksum: 10c0/fd269d0e0bf71ecac3146187cfc79edc9dbb054e2ee69b4d97dfb857c6d997c33de391696d04bdd669272751fa48e7872a22f3a6c7b07d6c0bc31dbe02a4075c
languageName: node
linkType: hard

"buffer@npm:6.0.3, buffer@npm:^6.0.1, buffer@npm:^6.0.3":
"buffer-polyfill@npm:buffer@^6.0.3, buffer@npm:6.0.3, buffer@npm:^6.0.1, buffer@npm:^6.0.3":
version: 6.0.3
resolution: "buffer@npm:6.0.3"
dependencies:
Expand All @@ -10057,6 +10050,13 @@ __metadata:
languageName: node
linkType: hard

"buffer-xor@npm:^1.0.3":
version: 1.0.3
resolution: "buffer-xor@npm:1.0.3"
checksum: 10c0/fd269d0e0bf71ecac3146187cfc79edc9dbb054e2ee69b4d97dfb857c6d997c33de391696d04bdd669272751fa48e7872a22f3a6c7b07d6c0bc31dbe02a4075c
languageName: node
linkType: hard

"buffer@npm:^5.7.1":
version: 5.7.1
resolution: "buffer@npm:5.7.1"
Expand Down Expand Up @@ -22937,7 +22937,7 @@ __metadata:
vite: "npm:4.4.8"
vite-plugin-checker: "npm:^0.6.2"
vite-plugin-eslint: "npm:1.8.1"
vite-plugin-node-polyfills: "npm:0.22.0"
vite-plugin-node-polyfills: "npm:0.17.0"
vite-plugin-top-level-await: "npm:1.3.1"
vite-plugin-wasm: "npm:3.2.2"
languageName: unknown
Expand Down Expand Up @@ -23188,7 +23188,7 @@ __metadata:
typescript: "npm:4.9.5"
vite: "npm:4.4.9"
vite-plugin-eslint: "npm:1.8.1"
vite-plugin-node-polyfills: "npm:0.22.0"
vite-plugin-node-polyfills: "npm:0.17.0"
vite-plugin-svgr: "npm:3.2.0"
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -24067,7 +24067,7 @@ __metadata:
typescript: "npm:5.0.2"
vite: "npm:4.4.8"
vite-plugin-eslint: "npm:1.8.1"
vite-plugin-node-polyfills: "npm:0.22.0"
vite-plugin-node-polyfills: "npm:0.17.0"
vite-plugin-top-level-await: "npm:1.3.1"
vite-plugin-wasm: "npm:3.2.2"
web-vitals: "npm:3.3.1"
Expand Down Expand Up @@ -24321,15 +24321,17 @@ __metadata:
languageName: node
linkType: hard

"vite-plugin-node-polyfills@npm:0.22.0":
version: 0.22.0
resolution: "vite-plugin-node-polyfills@npm:0.22.0"
"vite-plugin-node-polyfills@npm:0.17.0":
version: 0.17.0
resolution: "vite-plugin-node-polyfills@npm:0.17.0"
dependencies:
"@rollup/plugin-inject": "npm:^5.0.5"
buffer-polyfill: "npm:buffer@^6.0.3"
node-stdlib-browser: "npm:^1.2.0"
process: "npm:^0.11.10"
peerDependencies:
vite: ^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0
checksum: 10c0/f8ddc452eb6fba280977d037f8a6406aa522e69590641ce72ce5bb31c3498856a9f63ab3671bc6a822dcd1ff9ba5cac02cacef4a0e170fd8500cdeeb38c81675
checksum: 10c0/6c9c5c4753d5488d365386ee214f4d15e22a6d62c7f8083b73194161fe371b5ec4fc7ba5b0c762cf514441172713feb5ab3e4fb1d52ee3fcf2ef50cc2fb41ea2
languageName: node
linkType: hard

Expand Down

0 comments on commit 01dbb99

Please sign in to comment.