You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Something I have been trying to do several times lately is share type definitions and code between related projects, such as a client and server project where I have defined the types for the JSON that gets transferred between them and would like to use the same files instead of copying changes back and forth between the two projects. I normally output the js files right next to the ts files, as I have no need to do otherwise on the server. The client gets bundled using the Angular CLI, so it is unrelated.
TypeScript Version: 2.3.4
Code
import*astestfrom'./cousin';
And in tsconfig.json
"outDir": ".",
"rootDirs": [
"../uncle",
"."
],
Expected behavior:
I expect to see an output folder structure like this:
me.ts
me.js
Maybe cousin.js, or nothing. I could expect cousin.js to be built separately.
Actual behavior:
me.ts
parent/
me.js
uncle/
cousin.js
The text was updated successfully, but these errors were encountered:
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
Something I have been trying to do several times lately is share type definitions and code between related projects, such as a client and server project where I have defined the types for the JSON that gets transferred between them and would like to use the same files instead of copying changes back and forth between the two projects. I normally output the
js
files right next to thets
files, as I have no need to do otherwise on the server. The client gets bundled using the Angular CLI, so it is unrelated.TypeScript Version: 2.3.4
Code
And in tsconfig.json
Expected behavior:
I expect to see an output folder structure like this:
me.ts
me.js
cousin.js
, or nothing. I could expect cousin.js to be built separately.Actual behavior:
me.ts
parent/
me.js
uncle/
cousin.js
The text was updated successfully, but these errors were encountered: