How to install custom typing .d.ts files to a separate folder rather than node_modules/@types?
up vote
-2
down vote
favorite
In order to add typings files we use npm/yarn with @types/[plugin]
which install to npm_modules/@types folder.
How to change this and redirect default location to a separate folder.
For Example: I am trying to Create a Project in Aurelia. When I setup the project it default added a CUSTOM_TYPINGS folder
Now in future i want to install typings files to this folder then how to do that?
typescript aurelia npm-install typescript-typings yarnpkg
add a comment |
up vote
-2
down vote
favorite
In order to add typings files we use npm/yarn with @types/[plugin]
which install to npm_modules/@types folder.
How to change this and redirect default location to a separate folder.
For Example: I am trying to Create a Project in Aurelia. When I setup the project it default added a CUSTOM_TYPINGS folder
Now in future i want to install typings files to this folder then how to do that?
typescript aurelia npm-install typescript-typings yarnpkg
2
Why would you do that? This is for custom typings. Not for the standard typings that every TypeScript developer and tool expects to find in the standard folder.
– JB Nizet
Nov 11 at 7:54
I have seen some projects where they install custom typings to a separate folder which has sub folders like global and local and they reference all that to a single index.d.ts file at the end.
– avimatta
Nov 11 at 8:00
add a comment |
up vote
-2
down vote
favorite
up vote
-2
down vote
favorite
In order to add typings files we use npm/yarn with @types/[plugin]
which install to npm_modules/@types folder.
How to change this and redirect default location to a separate folder.
For Example: I am trying to Create a Project in Aurelia. When I setup the project it default added a CUSTOM_TYPINGS folder
Now in future i want to install typings files to this folder then how to do that?
typescript aurelia npm-install typescript-typings yarnpkg
In order to add typings files we use npm/yarn with @types/[plugin]
which install to npm_modules/@types folder.
How to change this and redirect default location to a separate folder.
For Example: I am trying to Create a Project in Aurelia. When I setup the project it default added a CUSTOM_TYPINGS folder
Now in future i want to install typings files to this folder then how to do that?
typescript aurelia npm-install typescript-typings yarnpkg
typescript aurelia npm-install typescript-typings yarnpkg
edited Nov 12 at 17:30
tk421
3,32231426
3,32231426
asked Nov 11 at 7:49
avimatta
356
356
2
Why would you do that? This is for custom typings. Not for the standard typings that every TypeScript developer and tool expects to find in the standard folder.
– JB Nizet
Nov 11 at 7:54
I have seen some projects where they install custom typings to a separate folder which has sub folders like global and local and they reference all that to a single index.d.ts file at the end.
– avimatta
Nov 11 at 8:00
add a comment |
2
Why would you do that? This is for custom typings. Not for the standard typings that every TypeScript developer and tool expects to find in the standard folder.
– JB Nizet
Nov 11 at 7:54
I have seen some projects where they install custom typings to a separate folder which has sub folders like global and local and they reference all that to a single index.d.ts file at the end.
– avimatta
Nov 11 at 8:00
2
2
Why would you do that? This is for custom typings. Not for the standard typings that every TypeScript developer and tool expects to find in the standard folder.
– JB Nizet
Nov 11 at 7:54
Why would you do that? This is for custom typings. Not for the standard typings that every TypeScript developer and tool expects to find in the standard folder.
– JB Nizet
Nov 11 at 7:54
I have seen some projects where they install custom typings to a separate folder which has sub folders like global and local and they reference all that to a single index.d.ts file at the end.
– avimatta
Nov 11 at 8:00
I have seen some projects where they install custom typings to a separate folder which has sub folders like global and local and they reference all that to a single index.d.ts file at the end.
– avimatta
Nov 11 at 8:00
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53246807%2fhow-to-install-custom-typing-d-ts-files-to-a-separate-folder-rather-than-node-m%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
Why would you do that? This is for custom typings. Not for the standard typings that every TypeScript developer and tool expects to find in the standard folder.
– JB Nizet
Nov 11 at 7:54
I have seen some projects where they install custom typings to a separate folder which has sub folders like global and local and they reference all that to a single index.d.ts file at the end.
– avimatta
Nov 11 at 8:00