Skip to content

Commit

Permalink
chore: Fix issues with build configs
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Mar 14, 2024
1 parent b63c6d9 commit d184e4d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions packages/cli/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"moduleResolution": "node",
"module": "CommonJS",
"declaration": true,
"removeComments": true,
"strictPropertyInitialization": false,
Expand Down
2 changes: 2 additions & 0 deletions packages/create/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"moduleResolution": "node",
"declaration": true,
"removeComments": false,
"noLib": false,
Expand Down
2 changes: 1 addition & 1 deletion packages/harden-plugin/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ComplexityEstimator } from 'graphql-query-complexity/dist/cjs/QueryComplexity';
import { ComplexityEstimator } from 'graphql-query-complexity';

/**
* @description
Expand Down
2 changes: 1 addition & 1 deletion packages/testing/src/test-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export class TestServer {
): Promise<INestApplication> {
const config = await preBootstrapConfig(userConfig);
Logger.useLogger(config.logger);
const appModule = await import('@vendure/core/dist/app.module');
const appModule = await import('@vendure/core/dist/app.module.js');
try {
DefaultLogger.hideNestBoostrapLogs();
const app = await NestFactory.create(appModule.AppModule, {
Expand Down
4 changes: 2 additions & 2 deletions scripts/check-angular-versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import path from 'path';
* See https://github.com/vendure-ecommerce/vendure/issues/758 for more on this issue.
*/
async function checkAngularVersions() {
const adminUiPackageJson = await import('../packages/admin-ui/package.json');
const uiDevkitPackageJson = await import('../packages/ui-devkit/package.json');
const adminUiPackageJson = require('../packages/admin-ui/package.json');
const uiDevkitPackageJson = require('../packages/ui-devkit/package.json');

const angularCompilerPackages = ['@angular/cli', '@angular/compiler-cli', '@angular/compiler'];
const illegalSemverPrefixes = /^[~^]/;
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"module": "commonjs",
"moduleResolution": "Node",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"noLib": false,
"skipLibCheck": true,
"lib": ["es2019", "esnext.asynciterable"],
Expand Down

0 comments on commit d184e4d

Please sign in to comment.