Skip to content
This repository was archived by the owner on Dec 12, 2023. It is now read-only.

Commit

Permalink
Update to TypeScript 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Dec 7, 2016
1 parent 4a5de1b commit 2a460a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
"test-spec": "ts-node node_modules/blue-tape/bin/blue-tape.js \"src/**/*.spec.ts\" | tap-diff",
"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",
"test": "npm run build && npm run dependency-check && npm run test-cov && npm run lint",
"test-spec+lint": "npm run test-spec && npm run lint",
"watch": "onchange -w -i \"src/**/*.ts\" -e \"**/__test__/**\" -- npm run test-spec+lint",
"bootstrap": "npm install shelljs && node scripts/bootstrap.js",
"prepublish": "node scripts/prepublish.js"
},
Expand Down Expand Up @@ -74,7 +72,7 @@
"thenify": "^3.1.0",
"throat": "^3.0.0",
"touch": "^1.0.0",
"typescript": "^2.0.3",
"typescript": "^2.1.4",
"xtend": "^4.0.0",
"zip-object": "^0.1.0"
},
Expand All @@ -84,7 +82,6 @@
"dependency-check": "^2.5.1",
"istanbul": "1.0.0-alpha.2",
"nock": "^9.0.0",
"onchange": "3.0.2",
"shelljs": "^0.7.0",
"tap-diff": "^0.1.1",
"ts-node": "^1.1.0",
Expand Down
6 changes: 4 additions & 2 deletions src/lib/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -517,8 +517,10 @@ function stringifySourceFile (
hasDefaultExport = hasDefaultExport || (node as ts.ExportSpecifier).name.getText() === 'default'
}

hasExports = hasExports || !!(node.flags & ts.NodeFlags.Export)
hasDefaultExport = hasDefaultExport || !!(node.flags & ts.NodeFlags.Default)
const flags = ts.getCombinedModifierFlags(node)

hasExports = hasExports || !!(flags & ts.ModifierFlags.Export)
hasDefaultExport = hasDefaultExport || !!(flags & ts.ModifierFlags.Default)

if (
node.kind === ts.SyntaxKind.StringLiteral &&
Expand Down

0 comments on commit 2a460a7

Please sign in to comment.