Skip to content

Commit 089f705

Browse files
committedApr 6, 2016
fix ignores; generate typings
1 parent 144bced commit 089f705

File tree

5 files changed

+17
-1
lines changed

5 files changed

+17
-1
lines changed
 

‎.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# artifacts
2+
*.d.ts
3+
*.js
4+
*.js.map
5+
16
# IDE
27
*.ipr
38
*.iml

‎.npmignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
*.ipr
2+
*.iml
3+
*.iws
4+
node_modules
5+
tsconfig.json
6+
uiRouterNgUpgrade.js
7+
uiRouterNgUpgrade.js.map
8+
uiRouterNgUpgrade.ts

‎package.json

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
"typescript": "^1.8.9",
2828
"typings": "^0.7.11"
2929
},
30+
"main": "ui-router-ng1-to-ng2.js",
31+
"typings": "ui-router-ng1-to-ng2.d.ts",
3032
"repository" : {
3133
"type" : "git",
3234
"url" : "https://github.com/ui-router/ng1-to-ng2.git"

‎tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"module": "system",
55
"moduleResolution": "node",
66
"sourceMap": true,
7+
"declaration": true,
78
"emitDecoratorMetadata": true,
89
"experimentalDecorators": true,
910
"removeComments": false,

‎uiRouterNgUpgrade.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export let uiRouterNgUpgrade = {
5656
/**
5757
* Predicate that returns true if an object is a NG2 Component Class
5858
*/
59-
function isNg2ComponentClass(def) {
59+
export function isNg2ComponentClass(def) {
6060
if (typeof def !== 'function') return false;
6161

6262
if (!Reflect || typeof Reflect['metadata'] !== 'function')

0 commit comments

Comments
 (0)
Please sign in to comment.