Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update build #301

Merged
merged 2 commits into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@eslint/js": "^9.14.0",
"@intlify/eslint-plugin-vue-i18n": "^3.0.0",
"@types/eslint__js": "^8.42.3",
"@vitejs/plugin-vue": "^5.1.4",
"@vitejs/plugin-vue": "^5.1.5",
"@vitest/browser": "^2.1.4",
"@vitest/ui": "^2.1.4",
"eslint": "^9.14.0",
Expand All @@ -47,7 +47,7 @@
"prettier-plugin-tailwindcss": "^0.6.8",
"typescript": "^5.6.3",
"typescript-eslint": "^8.14.0",
"vite": "^5.4.10",
"vite": "^5.4.11",
"vite-plugin-hot-glob": "^1.0.0",
"vitest": "^2.1.4",
"vue": "^3.5.12"
Expand Down
4 changes: 2 additions & 2 deletions packages/darkroom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@
"playwright": "^1.48.2",
"rimraf": "^6.0.1",
"typescript": "^5.6.3",
"vite": "^5.4.10",
"vite": "^5.4.11",
"vite-plugin-dts": "^4.3.0",
"vitest": "^2.1.4"
},
"optionalDependencies": {
"@codemirror/lang-javascript": "^6.2.2",
"@types/node": "^22.9.0",
"@vitejs/plugin-vue": "^5.1.4",
"@vitejs/plugin-vue": "^5.1.5",
"@vue/tsconfig": "^0.6.0",
"@vueuse/core": "^11.2.0",
"@vueuse/rxjs": "^11.2.0",
Expand Down
8 changes: 7 additions & 1 deletion packages/safelight/buildscripts/vite-plugin-generate-i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ interface Options {
async function compileTypes({ localesDir: dir, outputFile: output }: Options) {
const files = await glob(dir + '/*.json', {
signal: AbortSignal.timeout(1000)
}).catch((err) => {
console.error('Could not find i18n files:', err);
return [] as string[];
});
if (!files.length) return;

// Combine all files into 1 object
const allFiles: Record<string, any> = {};
Expand Down Expand Up @@ -94,7 +98,9 @@ declare module 'vue-i18n' {
outputFile = outputFile.replace(/((?<!\r)\n|\r(?!\n))/g, '\r\n');

// No need to wait for finishing writing, if it does take long, skip it
writeFile(output, outputFile, { signal: AbortSignal.timeout(100) });
writeFile(output, outputFile, { signal: AbortSignal.timeout(100) }).catch((err) =>
console.error('Error writing i18n definitions:', err)
);
}

// Source: https://stackoverflow.com/a/34749873
Expand Down
4 changes: 2 additions & 2 deletions packages/safelight/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"@types/luxon": "^3.4.2",
"@types/node": "^22.9.0",
"@types/uuid": "^10.0.0",
"@vitejs/plugin-vue": "^5.1.4",
"@vitejs/plugin-vue": "^5.1.5",
"@vue/tsconfig": "^0.6.0",
"autoprefixer": "^10.4.20",
"browserslist": "^4.24.2",
Expand All @@ -69,7 +69,7 @@
"tsx": "^4.19.2",
"typescript": "^5.6.3",
"unplugin-vue-router": "^0.10.8",
"vite": "^5.4.10",
"vite": "^5.4.11",
"vite-plugin-mkcert": "^1.17.6",
"vue-tsc": "^2.1.10"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/tswebm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"rimraf": "^6.0.1",
"tsx": "^4.19.2",
"typescript": "^5.6.3",
"vite": "^5.4.10",
"vite": "^5.4.11",
"vite-plugin-dts": "^4.3.0",
"vitest": "^2.1.4"
}
Expand Down
96 changes: 43 additions & 53 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.