Skip to content

Commit b139413

Browse files
committed
update module 2 ts playground
1 parent 3a93b6a commit b139413

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

02-languages/04-playgrounds/02-playground-typescript/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
},
2727
"scripts": {
2828
"prestart": "npm run transpile && npm run copy",
29-
"start": "concurrently \"npm:transpile -- -w\" npm:devserver",
29+
"start": "concurrently \"npm:transpile -- --watch\" npm:devserver",
3030
"copy": "copyfiles --flat src/**/*.{html,css} transpiled",
31-
"transpile": "tsc",
31+
"transpile": "tsc --pretty",
3232
"devserver": "browser-sync start -c bs-config.json"
3333
},
3434
"dependencies": {

02-languages/04-playgrounds/02-playground-typescript/tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"compilerOptions": {
33
"lib": ["DOM", "DOM.Iterable", "ESNext"],
4-
"target": "es5",
5-
"module": "esnext",
4+
"target": "ES5",
5+
"module": "ESNext",
6+
// "moduleResolution": "node", // Use node resolution for "undici types" issue
67
"allowJs": true,
78
"outDir": "transpiled"
89
},

0 commit comments

Comments
 (0)