Skip to content

Commit

Permalink
fix: switch to node16 module resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
adelsz committed Sep 26, 2023
1 parent 6658671 commit 26254af
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 78 deletions.
74 changes: 2 additions & 72 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"debug": "^4.1.1",
"fp-ts": "^2.5.3",
"fs-extra": "^11.0.0",
"glob": "^10.3.7, < 10.3.7",
"glob": "^10.3.7",
"io-ts": "^2.2.20",
"io-ts-reporters": "^2.0.1",
"nunjucks": "3.2.4",
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/generator.test.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { ParameterTransform } from '@pgtyped/runtime';

import { parseSQLFile } from '@pgtyped/parser';
import { IQueryTypes } from '@pgtyped/query/lib/actions';
import { IQueryTypes } from '@pgtyped/query/lib/actions.js';
import { ParsedConfig } from './config.js';
import {
escapeComment,
generateInterface,
ProcessingMode,
queryToTypeDeclarations,
} from './generator';
} from './generator.js';
import { parseCode as parseTypeScriptFile } from './parseTypescript.js';
import { TypeAllocator, TypeMapping, TypeScope } from './types.js';

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import path from 'path';
import { ParsedConfig } from './config.js';
import { TypeAllocator, TypeMapping, TypeScope } from './types.js';
import { parseCode as parseTypescriptFile } from './parseTypescript.js';
import { IQueryTypes } from '@pgtyped/query/lib/actions';
import { IQueryTypes } from '@pgtyped/query/lib/actions.js';

export enum ProcessingMode {
SQL = 'sql-file',
Expand Down
4 changes: 3 additions & 1 deletion packages/query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
".": {
"import": "./lib/index.js",
"types": "./lib/index.d.ts"
}
},
"./lib/actions.js": "./lib/actions.js",
"./lib/type.js": "./lib/type.js"
},
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */

/* Module Resolution Options */
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
"moduleResolution": "node16", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
Expand Down

0 comments on commit 26254af

Please sign in to comment.