Skip to content

Commit 8008494

Browse files
committed
fix(json-api-nestjs-microorm): Remove @mikro-orm/postgresql dependencies in package.json
1 parent 7c12004 commit 8008494

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tools/scripts/prepare-package-json.mjs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { execSync } from 'child_process';
2-
import { readFileSync, writeFileSync, existsSync, unlinkSync } from 'fs';
1+
import { readFileSync, writeFileSync } from 'fs';
32
import { join } from 'path';
43

54
import devkit from '@nx/devkit';
@@ -30,6 +29,10 @@ try {
3029
if (!mainJson[props] || json[props]) continue;
3130
json[props] = mainJson[props];
3231
}
32+
if (json.dependencies['@mikro-orm/postgresql']) {
33+
delete json.dependencies['@mikro-orm/postgresql'];
34+
}
35+
3336
removeDepFromOtherLib(graph, name, json);
3437
writeFileSync(`package.json`, JSON.stringify(json, null, 2));
3538
} catch (e) {

0 commit comments

Comments
 (0)