mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-12 23:56:36 +08:00
ci: speedup ci by reduce installation packages in certain job (#4457)
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
const semver = await import('../apps/server/node_modules/semver/index.js');
|
||||
const semver = await import('semver').catch(() =>
|
||||
import('../apps/server/node_modules/semver/index.js')
|
||||
);
|
||||
|
||||
import packageJson from '../package.json' assert { type: 'json' };
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { join } from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
import { runCli } from '@magic-works/i18n-codegen';
|
||||
@@ -7,9 +8,7 @@ beforeAll(async () => {
|
||||
await runCli(
|
||||
{
|
||||
watch: false,
|
||||
cwd: fileURLToPath(
|
||||
new URL('../../../.i18n-codegen.json', import.meta.url)
|
||||
),
|
||||
cwd: join(fileURLToPath(import.meta.url), '../../../.i18n-codegen.json'),
|
||||
},
|
||||
error => {
|
||||
console.error(error);
|
||||
|
||||
Reference in New Issue
Block a user