diff --git a/.changeset/healthy-numbers-sell.md b/.changeset/healthy-numbers-sell.md new file mode 100644 index 0000000..047da3d --- /dev/null +++ b/.changeset/healthy-numbers-sell.md @@ -0,0 +1,5 @@ +--- +"@opendoc/backend": patch +--- + +迁移脚本无法自动添加预设的应用编码黑名单 diff --git a/app/backend/nest-cli.json b/app/backend/nest-cli.json index b246267..5042cb7 100644 --- a/app/backend/nest-cli.json +++ b/app/backend/nest-cli.json @@ -4,6 +4,10 @@ "sourceRoot": "src", "compilerOptions": { "deleteOutDir": true, + "assets": [ + "**/*.json" + ], + "watchAssets": true, "plugins": [ { "name": "@nestjs/swagger", diff --git a/app/backend/src/migrations/Migration20240505121024.ts b/app/backend/src/migrations/Migration20240505121024.ts index 7e8d4b1..88b97bf 100644 --- a/app/backend/src/migrations/Migration20240505121024.ts +++ b/app/backend/src/migrations/Migration20240505121024.ts @@ -1,6 +1,9 @@ +/* eslint-disable @typescript-eslint/no-var-requires */ /* eslint-disable @typescript-eslint/require-await */ import { Migration } from '@mikro-orm/migrations' -import * as forbiddenCodes from './forbidden-application-codes.json' + +const forbiddenCodes = require('./forbidden-application-codes.json') + export class Migration20240505121024 extends Migration { async up(): Promise {