Skip to content

Commit

Permalink
fix: export parser meta (#185)
Browse files Browse the repository at this point in the history
* fix: export parser meta

* fix
  • Loading branch information
yeonjuan committed Apr 6, 2024
1 parent 4aa0d83 commit b608c70
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
7 changes: 7 additions & 0 deletions packages/parser/lib/index.js
@@ -1,5 +1,12 @@
const { parseForESLint } = require("./parser");
const meta = require("./meta");
const { NODE_TYPES } = require("./node-types");

module.exports.parseForESLint = parseForESLint;
module.exports.NODE_TYPES = NODE_TYPES;

module.exports = {
parseForESLint,
NODE_TYPES,
meta,
};
2 changes: 2 additions & 0 deletions packages/parser/lib/meta.js
@@ -0,0 +1,2 @@
const { name, version } = require("../package.json");
module.exports = { name, version };
2 changes: 1 addition & 1 deletion packages/parser/package.json
Expand Up @@ -6,7 +6,7 @@
"homepage": "https://github.com/yeonjuan/html-eslint#readme",
"license": "MIT",
"main": "lib/index.js",
"types": "types/index.d.ts",
"types": "types/lib/index.d.ts",
"directories": {
"lib": "lib",
"types": "types",
Expand Down
4 changes: 2 additions & 2 deletions packages/parser/tsconfig.build.json
@@ -1,11 +1,11 @@
{
"extends": "./tsconfig.json",
"include": ["lib/**/*.js"],
"include": ["lib/**/*.js", "package.json"],
"compilerOptions": {
"allowJs": true,
"composite": true,
"outDir": "./types",
"rootDir": "lib",
"rootDir": ".",
"resolveJsonModule": true,
"declaration": true,
"emitDeclarationOnly": true,
Expand Down

0 comments on commit b608c70

Please sign in to comment.