Skip to content

Commit b48ac38

Browse files
authored
Merge pull request #26 from hildjj/meta
Add meta info to parser, which is now required with flat.
2 parents 2b7fd4f + 649812e commit b48ac38

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
import type * as ESlint from "eslint";
22
import * as visitor from "./visitor";
33
import { SyntaxError as PeggySyntaxError, parse } from "./parser.js";
4-
54
export { visitor };
5+
import { name, version } from "../package.json";
6+
7+
export const meta = {
8+
name,
9+
version,
10+
};
611

712
const RESERVED_WORDS = [
813
// Reserved keywords as of ECMAScript 2015

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"compilerOptions": {
3-
"noErrorTruncation": true,
43
"allowJs": true,
54
"declaration": true,
65
"declarationMap": false,
@@ -10,9 +9,11 @@
109
"module": "nodeNext",
1110
"moduleResolution": "nodeNext",
1211
"noEmitOnError": true,
12+
"noErrorTruncation": true,
1313
"noImplicitReturns": true,
1414
"outDir": "./lib/",
1515
"removeComments": false,
16+
"resolveJsonModule": true,
1617
"rootDir": "./src",
1718
"skipLibCheck": true,
1819
"sourceMap": false,

0 commit comments

Comments
 (0)