Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 01 19:20
    dependabot[bot] labeled #1521
  • Nov 01 19:20
    dependabot[bot] opened #1521
  • Oct 26 23:07
    lierdakil closed #1512
  • Oct 26 23:07
    lierdakil labeled #1512
  • Oct 26 23:07
    lierdakil labeled #1512
  • Oct 24 22:12
    micazoyolli opened #1520
  • Oct 23 23:07
    lierdakil closed #1514
  • Oct 23 23:06
    lierdakil labeled #1514
  • Oct 23 22:53
    lierdakil closed #1518
  • Oct 23 22:53
    lierdakil closed #1517
  • Oct 23 22:52
    lierdakil closed #1516
  • Oct 23 22:51
    lierdakil opened #1519
  • Oct 19 14:49
    betheymc opened #1518
  • Oct 19 14:43
    betheymc opened #1517
  • Oct 19 14:36
    betheymc opened #1516
  • Oct 19 14:30
    betheymc opened #1515
  • Oct 15 09:28
    pasinduperera synchronize #1514
  • Oct 15 09:20
    pasinduperera synchronize #1514
  • Oct 15 09:11
    pasinduperera opened #1514
  • Oct 02 22:01
    kaiyoma opened #1513
If no "files" property is present in a tsconfig.json, the compiler defaults to including
all files in the containing directory and subdirectories. When a "files" property is
specified, only those files are included.
De Lille Felix
@flieks
yes, but the typings folder is one folder up in the chain
Nelo Mitranim
@Mitranim
Yeah that's why I suggested you move it inside the project
Most painless setup ever
no ///reference, no extra paths for the compiler, no files, nothing
De Lille Felix
@flieks
so 1 up
Nelo Mitranim
@Mitranim
./═╦═ dist
   ╚═ src
      ╚═ app
         ╠═ typings
         ╠═ stuff
         ╚═ utils
De Lille Felix
@flieks
ok what other folder are there in the app folder ?
Nelo Mitranim
@Mitranim
echo "src/app/typings" >> .gitignore
De Lille Felix
@flieks
i only had app.ts in there
and the navbar
Nelo Mitranim
@Mitranim
tsd.json:
  "path": "src/app/typings",
  "bundle": "src/app/typings/tsd.d.ts",
De Lille Felix
@flieks
i don't have a tsd.json
Nelo Mitranim
@Mitranim
Then you're downloading typings by hand?
De Lille Felix
@flieks
yes
Nelo Mitranim
@Mitranim
npm i -g tsd
tsd init, then make the change I suggested
and run
tsd install <your dependencies> -r -s
except I'm not sure your dependencies actually exist on tsd, but you should set this up anyway
also run npm i tsd --save-dev so that it's always included with the project
also makes sense to add tsd update to postinstall in package.json -> scripts
Jonathan Park
@park9140
tsd query <dependecy> --action install —save << pre 0.6 in case anyone reads this without the line below
Nelo Mitranim
@Mitranim
@park9140 that's pre-0.6
Jonathan Park
@park9140
wait
0.6 came out
!
De Lille Felix
@flieks
tsd.json also put in /src folder ?
Nelo Mitranim
@Mitranim
yep so you can use the new syntax I listed
Nah tsd.json can live in root
You run most CLI commands from the root so tsd.json needs to be there
De Lille Felix
@flieks
ok this is my tsd at the root:
{
  "version": "v4",
  "repo": "borisyankov/DefinitelyTyped",
  "ref": "master",
  "path": "src/app/typings",
  "bundle": "src/app/typings/tsd.d.ts",
  "installed": {}
}
This message was deleted
Nelo Mitranim
@Mitranim
yesh looks good
De Lille Felix
@flieks
i did
tsd install aurelia-framework -r-s
Nelo Mitranim
@Mitranim
if you run tsd install lodash -s, it'll install its typings into src/app/typings and save to tsd.json
De Lille Felix
@flieks
it said zero result
Nelo Mitranim
@Mitranim
yeah that's because aurelia is not on tsd, as I just discovered
unfortunate
Nevertheless this will help you with other definitions
De Lille Felix
@flieks
true
what else i have to do to delete all references to definition files ?
Nelo Mitranim
@Mitranim
with this setup you don't need them
De Lille Felix
@flieks
blob
it complains : cannot find external module
Nelo Mitranim
@Mitranim
check if you have declare module 'aurelia-framework' in those definition files
note the quotes
De Lille Felix
@flieks
yes
declare module 'aurelia-framework' {
    export * from 'aurelia-framework/index';
}
inside the typings folder i have a tsd.d.ts file which is empty