Skip to content

Commit

Permalink
Generate types for /syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas committed Feb 13, 2025
1 parent bd8184f commit 1c86f9f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
"scripts": {
"build:dedupe-types": "node tools/dedupe-types.js dist/cjs/index.cjs dist/esm/index.js",
"build:cts": "node -e \"fs.copyFileSync('dist/esm/index.d.ts', 'dist/cjs/index.d.cts')\"",
"build": "rollup -c && npm run build:dedupe-types && tsc -p tsconfig.esm.json && npm run build:cts",
"build:syntax-cts": "node -e \"fs.copyFileSync('dist/esm/syntax/index.d.ts', 'dist/cjs/syntax/index.d.cts')\"",
"build": "rollup -c && npm run build:dedupe-types && tsc -p tsconfig.esm.json && npm run build:cts && tsc -p tsconfig.syntax.json && npm run build:syntax-cts",
"build:readme": "node tools/update-readme.js",
"build:update-rules-docs": "node tools/update-rules-docs.js",
"test:jsr": "npx jsr@latest publish --dry-run",
Expand Down
7 changes: 7 additions & 0 deletions tsconfig.syntax.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"files": ["dist/esm/syntax/index.js"],
"compilerOptions": {
"outDir": "./dist/esm/syntax"
}
}

0 comments on commit 1c86f9f

Please sign in to comment.