Skip to content

Commit

Permalink
Add custom transpiler to fix 'failed to load package' issue
Browse files Browse the repository at this point in the history
This patch adds atom-ts-transpiler and TypeScript as dependenies,
circumventing the issues that have been occuring in recent versions
of Atom where TypeScript source files would fail to be loaded.

Closes jakesankey#45, jakesankey#46.
  • Loading branch information
smhxx committed Mar 20, 2018
1 parent 4e4fff3 commit c637efa
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
20 changes: 20 additions & 0 deletions lib/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"compilerOptions": {
"target": "es2016",
"lib": [
"es2016",
"dom"
],
"module": "commonjs",
"moduleResolution": "node",
"baseUrl": "../",
"strict": true,
"newLine": "lf",
"removeComments": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"forceConsistentCasingInFileNames": true,
"types": [ "node" ]
}
}
19 changes: 17 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,24 @@
"atom": ">=0.174.0 <2.0.0"
},
"dependencies": {
"atom-space-pen-views": "^2.0.3"
"@types/node": "^9.4.7",
"atom-ts-transpiler": "^1.4.3",
"atom-space-pen-views": "^2.0.3",
"typescript": "^2.7.2"
},
"devDependencies": {
"coffeelint": "1.16.0"
}
},
"atomTranspilers": [
{
"transpiler": "atom-ts-transpiler",
"glob": "{!(node_modules)/**/,}*.ts?(x)",
"options": {
"cacheKeyFiles": [
"lib/tsconfig.json"
],
"verbose": false
}
}
]
}

0 comments on commit c637efa

Please sign in to comment.