This repository was archived by the owner on Dec 12, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 15
15
"test-spec" : " ts-node node_modules/blue-tape/bin/blue-tape.js \" src/**/*.spec.ts\" | tap-diff" ,
16
16
"test-cov" : " ts-node node_modules/istanbul/lib/cli.js cover -e .ts --print none -x \" *.d.ts\" -x \" *.spec.ts\" node_modules/blue-tape/bin/blue-tape.js -- \" src/**/*.spec.ts\" | tap-diff" ,
17
17
"test" : " npm run build && npm run dependency-check && npm run test-cov && npm run lint" ,
18
- "test-spec+lint" : " npm run test-spec && npm run lint" ,
19
- "watch" : " onchange -w -i \" src/**/*.ts\" -e \" **/__test__/**\" -- npm run test-spec+lint" ,
20
18
"bootstrap" : " npm install shelljs && node scripts/bootstrap.js" ,
21
19
"prepublish" : " node scripts/prepublish.js"
22
20
},
74
72
"thenify" : " ^3.1.0" ,
75
73
"throat" : " ^3.0.0" ,
76
74
"touch" : " ^1.0.0" ,
77
- "typescript" : " ^2.0.3 " ,
75
+ "typescript" : " ^2.1.4 " ,
78
76
"xtend" : " ^4.0.0" ,
79
77
"zip-object" : " ^0.1.0"
80
78
},
84
82
"dependency-check" : " ^2.5.1" ,
85
83
"istanbul" : " 1.0.0-alpha.2" ,
86
84
"nock" : " ^9.0.0" ,
87
- "onchange" : " 3.0.2" ,
88
85
"shelljs" : " ^0.7.0" ,
89
86
"tap-diff" : " ^0.1.1" ,
90
87
"ts-node" : " ^1.1.0" ,
Original file line number Diff line number Diff line change @@ -517,8 +517,10 @@ function stringifySourceFile (
517
517
hasDefaultExport = hasDefaultExport || ( node as ts . ExportSpecifier ) . name . getText ( ) === 'default'
518
518
}
519
519
520
- hasExports = hasExports || ! ! ( node . flags & ts . NodeFlags . Export )
521
- hasDefaultExport = hasDefaultExport || ! ! ( node . flags & ts . NodeFlags . Default )
520
+ const flags = ts . getCombinedModifierFlags ( node )
521
+
522
+ hasExports = hasExports || ! ! ( flags & ts . ModifierFlags . Export )
523
+ hasDefaultExport = hasDefaultExport || ! ! ( flags & ts . ModifierFlags . Default )
522
524
523
525
if (
524
526
node . kind === ts . SyntaxKind . StringLiteral &&
You can’t perform that action at this time.
0 commit comments