chore: standardize tsconfig (#9568)

This commit is contained in:
forehalo
2025-01-08 04:07:56 +00:00
parent 39f4b17315
commit c0ed74dfed
151 changed files with 1041 additions and 1566 deletions

View File

@@ -1,4 +1,3 @@
import type { BUILD_CONFIG_TYPE } from '@affine/env/global';
import type { Package } from '@affine-tools/utils/workspace';
import { PackageToDistribution } from './distribution';
@@ -37,7 +36,6 @@ export function getBuildConfig(
isAdmin: distribution === 'admin',
appBuildType: 'stable' as const,
serverUrlPrefix: 'https://app.affine.pro',
appVersion: pkg.version,
// editorVersion: pkg.dependencies['@blocksuite/affine'],
editorVersion: pkg.version,
@@ -52,7 +50,6 @@ export function getBuildConfig(
return {
...this.stable,
appBuildType: 'beta' as const,
serverUrlPrefix: 'https://insider.affine.pro',
changelogUrl: 'https://github.com/toeverything/AFFiNE/releases',
};
},
@@ -60,7 +57,6 @@ export function getBuildConfig(
return {
...this.stable,
appBuildType: 'internal' as const,
serverUrlPrefix: 'https://insider.affine.pro',
changelogUrl: 'https://github.com/toeverything/AFFiNE/releases',
};
},
@@ -69,7 +65,6 @@ export function getBuildConfig(
return {
...this.stable,
appBuildType: 'canary' as const,
serverUrlPrefix: 'https://affine.fail',
changelogUrl: 'https://github.com/toeverything/AFFiNE/releases',
};
},
@@ -87,10 +82,6 @@ export function getBuildConfig(
changelogUrl: process.env.CHANGELOG_URL ?? currentBuildPreset.changelogUrl,
};
if (buildFlags.mode === 'development') {
currentBuildPreset.serverUrlPrefix = 'http://localhost:8080';
}
return {
...currentBuildPreset,
// environment preset will overwrite current build preset