Skip to content

Commit

Permalink
chore: upgrade to typescript 3.0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondfeng committed Aug 21, 2018
1 parent f63f97f commit 47e9369
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 19 deletions.
6 changes: 0 additions & 6 deletions packages/build/.prettierrc

This file was deleted.

16 changes: 5 additions & 11 deletions packages/build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
"@types/node": "^10.1.1",
"cross-spawn": "^6.0.5",
"debug": "^3.1.0",
"fs-extra": "^6.0.1",
"fs-extra": "^7.0.0",
"glob": "^7.1.2",
"mocha": "^5.1.1",
"nyc": "^11.7.1",
"nyc": "^12.0.2",
"prettier": "^1.14.0",
"rimraf": "^2.6.2",
"source-map-support": "^0.5.5",
"strong-docs": "^3.2.0",
"strong-docs": "^4.0.0",
"tslint": "^5.9.1",
"typescript": "~2.8.4"
"typescript": "^3.0.1"
},
"bin": {
"lb-tsc": "./bin/compile-package.js",
Expand All @@ -39,13 +39,7 @@
"lb-clean": "./bin/run-clean.js"
},
"scripts": {
"lint": "npm run prettier:check",
"lint:fix": "npm run prettier:fix",
"prettier:cli": "node bin/run-prettier \"bin/**/*.js\"",
"prettier:check": "npm run prettier:cli -- -l",
"prettier:fix": "npm run prettier:cli -- --write",
"test": "npm run mocha",
"mocha": "node bin/run-mocha --timeout 30000 \"test/integration/*.js\"",
"posttest": "npm run lint"
"mocha": "node bin/run-mocha --timeout 30000 \"test/integration/*.js\""
}
}
5 changes: 3 additions & 2 deletions packages/build/test/integration/scripts.integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,14 @@ describe('build', function() {
'api-docs should have been created',
);
var typedocDir = require.resolve('typedoc/package.json');
typedocDir = path.resolve(typedocDir, '..');
assert(
!fs.existsSync(path.join(typedocDir, '../node_modules/typescript')),
!fs.existsSync(path.join(typedocDir, './node_modules/typescript')),
'typedoc local dependency of typescript should have been renamed',
);
assert(
!fs.existsSync(
path.join(typedocDir, '../node_modules/.bin'),
path.join(typedocDir, './node_modules/.bin/tsc'),
'typedoc local scripts from typescript should have been removed',
),
);
Expand Down

0 comments on commit 47e9369

Please sign in to comment.