mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-03 02:20:19 +08:00
chore(tools): add package selector to dev command (#9328)
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
"test:coverage": "c8 ava --concurrency 1 --serial",
|
||||
"test:copilot:coverage": "c8 ava --timeout=5m \"tests/**/copilot-*.spec.ts\"",
|
||||
"data-migration": "cross-env NODE_ENV=script node ./src/data/index.ts",
|
||||
"predeploy": "yarn prisma migrate deploy && node --import ./scripts/register.js ./dist/data/index.js run",
|
||||
"predeploy": "yarn prisma migrate deploy && NODE_ENV=script node --import ./scripts/register.js ./dist/data/index.js run",
|
||||
"postinstall": "prisma generate"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
@@ -206,13 +206,6 @@ export default {
|
||||
|
||||
cp.spawnSync('yarn', ['generate-assets'], {
|
||||
stdio: 'inherit',
|
||||
env: {
|
||||
...process.env,
|
||||
NODE_OPTIONS: (process.env.NODE_OPTIONS ?? '').replace(
|
||||
'--loader ts-node/esm',
|
||||
''
|
||||
),
|
||||
},
|
||||
cwd: __dirname,
|
||||
});
|
||||
},
|
||||
|
||||
@@ -42,20 +42,18 @@ if (releaseVersionEnv && electronPackageJson.version !== releaseVersionEnv) {
|
||||
}
|
||||
// copy web dist files to electron dist
|
||||
|
||||
process.env.DISTRIBUTION = 'desktop';
|
||||
|
||||
const cwd = repoRootDir;
|
||||
|
||||
// step 1: build web dist
|
||||
if (!process.env.SKIP_WEB_BUILD) {
|
||||
spawnSync('yarn', ['build'], {
|
||||
spawnSync('yarn', ['affine', '@affine/electron', 'bundle'], {
|
||||
stdio: 'inherit',
|
||||
env: process.env,
|
||||
cwd,
|
||||
shell: true,
|
||||
});
|
||||
|
||||
spawnSync('yarn', ['workspace', '@affine/electron', 'build'], {
|
||||
spawnSync('yarn', ['affine', '@affine/electron', 'build'], {
|
||||
stdio: 'inherit',
|
||||
env: process.env,
|
||||
cwd,
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
"scripts": {
|
||||
"build": "affine bundle",
|
||||
"dev": "affine bundle --dev",
|
||||
"sync": "yarn cap sync",
|
||||
"sync:dev": "CAP_SERVER_URL=http://localhost:8080 yarn cap sync"
|
||||
"sync": "cap sync",
|
||||
"sync:dev": "CAP_SERVER_URL=http://localhost:8080 cap sync"
|
||||
},
|
||||
"dependencies": {
|
||||
"@affine/component": "workspace:*",
|
||||
|
||||
@@ -6302,7 +6302,7 @@ export function useAFFiNEI18N(): {
|
||||
/**
|
||||
* `Loading...`
|
||||
*/
|
||||
["com.affine.editor.at-menu.recent-docs.loading"](): string;
|
||||
["com.affine.editor.at-menu.loading"](): string;
|
||||
/**
|
||||
* `New`
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user