-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade to typescript 2.0 * update tests * switch package.json to 2 spaces and update tsconfig * Change to typescript ~2.0.3 and correct intern configuration
- Loading branch information
Showing
9 changed files
with
51 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,32 @@ | ||
{ | ||
"name": "dts-generator", | ||
"description": ".d.ts generator. Generates a single d.ts bundle containing external modules from TypeScript files.", | ||
"version": "1.8.0-pre", | ||
"bugs": { | ||
"url": "https://github.com/SitePen/dts-generator/issues" | ||
}, | ||
"license": "BSD-3-Clause", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/SitePen/dts-generator.git" | ||
}, | ||
"bin": { | ||
"dts-generator": "bin/dts-generator" | ||
}, | ||
"dependencies": { | ||
"bluebird": "3.3.3", | ||
"glob": "7.0.0", | ||
"mkdirp": "0.5.1" | ||
}, | ||
"peerDependencies": { | ||
"typescript": "^1.6.0" | ||
}, | ||
"devDependencies": { | ||
"intern": "~3.0.0", | ||
"tsd": "0.6.5", | ||
"tslint": "3.5.0" | ||
}, | ||
"scripts": { | ||
"prepublish": "tsc --module commonjs --target es5 typings/tsd.d.ts index.ts bin/dts-generator.ts", | ||
"test": "tests/run.sh" | ||
} | ||
"name": "dts-generator", | ||
"description": ".d.ts generator. Generates a single d.ts bundle containing external modules from TypeScript files.", | ||
"version": "1.8.0-pre", | ||
"bugs": { | ||
"url": "https://github.com/SitePen/dts-generator/issues" | ||
}, | ||
"license": "BSD-3-Clause", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/SitePen/dts-generator.git" | ||
}, | ||
"bin": { | ||
"dts-generator": "bin/dts-generator" | ||
}, | ||
"dependencies": { | ||
"bluebird": "3.3.3", | ||
"glob": "7.0.0", | ||
"mkdirp": "0.5.1" | ||
}, | ||
"devDependencies": { | ||
"dojo-loader": ">=2.0.0-beta.5", | ||
"intern": "~3.0.0", | ||
"tsd": "0.6.5", | ||
"tslint": "3.11.0", | ||
"typescript": "~2.0.3" | ||
}, | ||
"scripts": { | ||
"prepublish": "tsc --module umd --target es5 --moduleResolution node typings/tsd.d.ts index.ts bin/dts-generator.ts", | ||
"test": "tests/run.sh" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
export let loaderOptions = { | ||
export const loaders = { | ||
'host-browser': 'node_modules/dojo-loader/loader.js', | ||
'host-node': 'dojo-loader' | ||
}; | ||
|
||
export const loaderOptions = { | ||
packages: [ | ||
{ name: 'dts-generator', location: '.' } | ||
] | ||
}; | ||
|
||
export let suites = [ 'dts-generator/tests/unit/all' ]; | ||
export const suites = [ 'dts-generator/tests/unit/all' ]; | ||
|
||
export let excludeInstrumentation = /^(?:tests|node_modules)\//; | ||
export const excludeInstrumentation = /^(?:tests|node_modules)\//; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,20 @@ | ||
{ | ||
"version": "1.8.0", | ||
"version": "2.0.2", | ||
"compilerOptions": { | ||
"target": "es5", | ||
"module": "umd", | ||
"declaration": false, | ||
"noImplicitAny": true, | ||
"noImplicitThis": true, | ||
"strictNullChecks": true, | ||
"moduleResolution": "node" | ||
}, | ||
"filesGlob": [ | ||
"include": [ | ||
"./*.ts", | ||
"./bin/**/*.ts", | ||
"./tests/**/*.ts", | ||
"./typings/tsd.d.ts", | ||
"./node_modules/typescript/lib/typescript.d.ts", | ||
"./node_modules/typescript/lib/typescript.ts" | ||
], | ||
"files": [ | ||
"./index.ts", | ||
"./bin/dts-generator.ts", | ||
"./tests/intern.ts", | ||
"./tests/support/foo/Bar.ts", | ||
"./tests/support/foo/index.ts", | ||
"./tests/typings/dts-generator/dts-generator.d.ts", | ||
"./tests/unit/all.ts", | ||
"./tests/unit/bin/dts-generator.ts", | ||
"./tests/unit/index.ts", | ||
"./typings/tsd.d.ts", | ||
"./node_modules/typescript/lib/typescript.d.ts" | ||
] | ||
} |
this change here is actually a pretty serious bug -
intern-runner
seems to do nothing and definitely doesn't run tests, so this makesnpm test
basically a recompile-and-don't-test command.took me a while to figure this out since I wasn't familiar with intern. will send a pull request soonish.