Skip to content

Commit

Permalink
build: introduce TS project references
Browse files Browse the repository at this point in the history
  • Loading branch information
reosablo committed Feb 6, 2022
1 parent 2b35edb commit 64f2390
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules/
*.tsbuildinfo
3 changes: 2 additions & 1 deletion packages/mgrcd-io-fsa/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"lib": ["DOM", "DOM.Iterable", "ES2021"],
"rootDir": "./src",
"outDir": "./dist",
"declaration": true
"declaration": true,
"composite": true
}
}
3 changes: 2 additions & 1 deletion packages/mgrcd-live2dviewerex/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"lib": ["ES2021"],
"rootDir": "./src",
"outDir": "./dist",
"declaration": true
"declaration": true,
"composite": true
}
}
2 changes: 1 addition & 1 deletion packages/mgrcd-ui-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MPL-2.0",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"build": "tsc --build && vite build",
"preview": "vite preview"
},
"dependencies": {
Expand Down
7 changes: 6 additions & 1 deletion packages/mgrcd-ui-web/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,10 @@
"noEmit": true,
"jsx": "react-jsx"
},
"include": ["./src"]
"include": ["./src"],
"references": [
{ "path": "../mgrcd-io-fsa" },
{ "path": "../mgrcd-live2dviewerex" },
{ "path": "../react-use-cache" }
]
}
3 changes: 2 additions & 1 deletion packages/react-use-cache/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"jsx": "react-jsx",
"rootDir": "./src",
"outDir": "./dist",
"declaration": true
"declaration": true,
"composite": true
}
}

0 comments on commit 64f2390

Please sign in to comment.