There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
build: update build config (#2967)
Alex Yang467eab4ddf37
diff --git a/.github/workflows/nx.yml b/.github/workflows/nx.ymlindex 7f3326aac2..c6a7f3b44d 100644--- a/.github/workflows/nx.yml+++ b/.github/workflows/nx.yml@@ -30,17 +30,25 @@ jobs:name: Nx Cloud - Main Jobuses: nrwl/ci/.github/workflows/[email protected]with:+ runs-on: macos-latestmain-branch-name: masternumber-of-agents: 5init-commands: |yarn exec nx-cloud start-ci-run --stop-agents-after="build" --agent-count=3+ environment-variables: |+ BUILD_TYPE=canaryparallel-commands: |yarn exec nx-cloud record -- yarn exec nx format:checkparallel-commands-on-agents: |yarn exec nx affected --target=build --parallel=5+ timeout: 60agents:name: Nx Cloud - Agentsuses: nrwl/ci/.github/workflows/[email protected]with:+ runs-on: macos-latestnumber-of-agents: 5+ environment-variables: |+ BUILD_TYPE=canary+ timeout: 60diff --git a/apps/web/preset.config.mjs b/apps/web/preset.config.mjsindex 46e47685c8..546aad224a 100644--- a/apps/web/preset.config.mjs+++ b/apps/web/preset.config.mjs@@ -19,7 +19,6 @@ export const blockSuiteFeatureFlags = {*/const buildPreset = {stable: {- enableAllPageSaving: false,enablePlugin: false,enableTestProperties: false,enableBroadcastChannelProvider: true,@@ -36,7 +35,6 @@ const buildPreset = {internal: {},// canary will be aggressive and enable all featurescanary: {- enableAllPageSaving: true,enablePlugin: true,enableTestProperties: true,enableBroadcastChannelProvider: true,@@ -58,7 +56,7 @@ buildPreset.internal = buildPreset.stable;const currentBuild = process.env.BUILD_TYPE || 'stable';if (process.env.CI && !process.env.BUILD_TYPE) {- throw new Error('BUILD_ENV is required in CI');+ throw new Error('BUILD_TYPE is required in CI');}const currentBuildPreset = buildPreset[currentBuild];@@ -67,9 +65,6 @@ const environmentPreset = {enablePlugin: process.env.ENABLE_PLUGIN? process.env.ENABLE_PLUGIN === 'true': currentBuildPreset.enablePlugin,- enableAllPageSaving: process.env.ENABLE_ALL_PAGE_SAVING- ? process.env.ENABLE_ALL_PAGE_FILTER === 'true'- : currentBuildPreset.enableAllPageSaving,enableTestProperties: process.env.ENABLE_TEST_PROPERTIES? process.env.ENABLE_TEST_PROPERTIES === 'true': currentBuildPreset.enableTestProperties,diff --git a/nx.json b/nx.jsonindex 2257ec396f..cdd6b69220 100644--- a/nx.json+++ b/nx.json@@ -40,7 +40,7 @@"runtime": "node -v"},{- "env": "BUILD_ENV"+ "env": "BUILD_TYPE"},{"env": "ENABLE_BOOKMARK_OPERATION"diff --git a/packages/env/src/global.ts b/packages/env/src/global.tsindex 225a37a325..248da8c26d 100644--- a/packages/env/src/global.ts+++ b/packages/env/src/global.ts@@ -52,7 +52,6 @@ declare global {}export const buildFlagsSchema = z.object({- enableAllPageSaving: z.boolean(),enablePlugin: z.boolean(),enableTestProperties: z.boolean(),enableBroadcastChannelProvider: z.boolean(),diff --git a/tests/fixtures/tsconfig.json b/tests/fixtures/tsconfig.jsonindex 3e3c325947..ae68bb7122 100644--- a/tests/fixtures/tsconfig.json+++ b/tests/fixtures/tsconfig.json@@ -4,7 +4,8 @@"composite": true,"noEmit": false,"outDir": "lib",- "moduleResolution": "nodenext",+ "moduleResolution": "NodeNext",+ "module": "NodeNext","resolveJsonModule": true},"include": [".", "./*.json"]