Skip to content

Commit

Permalink
Switched to NodeNext module type
Browse files Browse the repository at this point in the history
  • Loading branch information
rmraya committed Dec 26, 2023
1 parent 8cc57c5 commit ab3b42d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ts/Catalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
* Maxprograms - initial API and implementation
*******************************************************************************/

import path = require("path");
import { existsSync } from "fs";
import * as path from "node:path";
import { ContentHandler } from "./ContentHandler";
import { DOMBuilder } from "./DOMBuilder";
import { SAXParser } from "./SAXParser";
Expand Down
3 changes: 1 addition & 2 deletions ts/dtd/DTDParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
*******************************************************************************/

import { Stats, closeSync, openSync, readSync, statSync } from "fs";
import * as path from "node:path";
import { Catalog } from "../Catalog";
import { XMLUtils } from "../XMLUtils";
import { Grammar } from "../grammar/Grammar";
Expand All @@ -19,8 +20,6 @@ import { ElementDecl } from "./ElementDecl";
import { EntityDecl } from "./EntityDecl";
import { NotationDecl } from "./NotationDecl";

import path = require("path");

export class DTDParser {

private grammar: Grammar;
Expand Down
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES6",
"moduleResolution": "node",
"module": "CommonJS",
"target": "esnext",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"noImplicitAny": true,
"allowUnreachableCode": false,
"noImplicitThis": true,
Expand Down

0 comments on commit ab3b42d

Please sign in to comment.