Skip to content

Commit f04a0d4

Browse files
committed
change ts target to es5, module system to commonjs. add a script to
clean the build on windows.
1 parent 3182c44 commit f04a0d4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
"url": "https://github.com/hyperhyperspace/hyperhyperspace-core.git"
1313
},
1414
"scripts": {
15-
"build": "ttsc",
15+
"build": "npx ttsc",
1616
"clean": "rm -rf ./dist/*",
17+
"winclean": "if exist dist (rmdir dist /s /q) && mkdir dist",
1718
"test": "npx jest"
1819
},
1920
"devDependencies": {

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
/* Basic Options */
66
"incremental": true, /* Enable incremental compilation */
7-
"target": "es2015", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
8-
"module": "ESNext", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
7+
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
8+
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
99
"lib": ["dom", "esnext"], /* Specify library files to be included in the compilation. */
1010
// "allowJs": true, /* Allow javascript files to be compiled. */
1111
// "checkJs": true, /* Report errors in .js files. */

0 commit comments

Comments
 (0)