Skip to content

Commit

Permalink
Fix build to actually include .ts files
Browse files Browse the repository at this point in the history
  • Loading branch information
markw65 committed Dec 7, 2023
1 parent 8bfc61f commit 0bbe8b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"examples": "node bin/peggy.js -c docs/js/options.js docs/js/examples.peggy",
"set_version": "node ./tools/set_version",
"lint": "eslint . --ext js,ts,mjs",
"ts": "tsc --build tsconfig.json",
"ts": "tsc --build tsconfig.json test/tsconfig.json",
"docs": "cd docs && npm run build",
"test": "jest",
"test:web": "cd web-test && npm test",
Expand Down
5 changes: 3 additions & 2 deletions test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
"outDir": "./build/ts/", /* Redirect output structure to the directory. */
"removeComments": true, /* Do not emit comments to output. */
"rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
"rootDirs": ["./", "../bin"], /* Specify the root directories of input files. Use to control the output directory structure with --outDir. */
"skipLibCheck": true, /* Skip type checking of declaration files. */
"sourceMap": true, /* Generates corresponding '.map' file. */
"strict": true, /* Enable all strict type-checking options. */
"target": "es5" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
// "lib": [], /* Specify library files to be included in the compilation. */
"noEmit": true

/* over time we will enable these */
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */
Expand Down

0 comments on commit 0bbe8b4

Please sign in to comment.