Skip to content

Commit

Permalink
New point release
Browse files Browse the repository at this point in the history
Type reference was not ok and a separate tsconfig.json has been added for the unit tests.

Signed-off-by: Mike Lischke <[email protected]>
  • Loading branch information
mike-lischke committed Nov 7, 2023
1 parent b8e2ce5 commit 0c3d1fa
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": [
"tsconfig.json"
"tsconfig.json",
"tests/tsconfig.json"
],
"sourceType": "module",
"implicitStrict": true,
Expand Down
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
cli/
tests/
coverage/
src/**/*.js
dist/*.map
src/

jest.config.ts
.eslintignore
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "antlr4ng",
"version": "2.0.0",
"version": "2.0.1",
"type": "module",
"description": "Alternative JavaScript/TypeScript runtime for ANTLR4",
"main": "dist/antlr4.mjs",
"types": "src/index.d.ts",
"types": "dist/index.d.ts",
"repository": "https://github.com/mike-lischke/antlr4ng",
"keywords": [
"lexer",
Expand Down Expand Up @@ -51,7 +51,7 @@
"process profile tick file": " node --prof-process isolate-0x130008000-75033-v8.log > processed.txt"
},
"exports": {
"types": "./src/index.ts",
"types": "./dist/index.d.ts",
"default": "./dist/antlr4.mjs"
}
}
2 changes: 1 addition & 1 deletion tests/benchmarks/run-benchmarks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

/* eslint-disable no-underscore-dangle */

import fs from "fs";
import * as fs from "fs";
import path from "path";
import assert from "assert";
import { fileURLToPath } from "url";
Expand Down
25 changes: 25 additions & 0 deletions tests/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"compilerOptions": {
"declaration": true,
"module": "Node16",
"target": "ESNext",
"moduleResolution": "Node16",
"noEmit": true,
"removeComments": false,
"noImplicitAny": true,
"noImplicitOverride": false,
"sourceMap": true,
"inlineSources": true,
"isolatedModules": false,
"allowSyntheticDefaultImports": true,
"strictNullChecks": true,
},
"include": [
"**/*.ts",
],
"exclude": [
"node_modules",
"dist/**/*",
"src/**/*"
]
}
10 changes: 7 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
"moduleResolution": "Node16",
"sourceMap": true,
"esModuleInterop": true,
"noEmit": true,
"noEmit": false,
"declaration": true,
"emitDeclarationOnly": true,
"outDir": "dist",
"lib": [
"ESNext",
"DOM"
Expand All @@ -21,10 +24,11 @@
},
"include": [
"src/**/*.ts",
"tests/**/*.ts"
],
"exclude": [
"node_modules"
"dist",
"node_modules",
"tests"
],
"compileOnSave": true,
"ts-node": {
Expand Down

0 comments on commit 0c3d1fa

Please sign in to comment.