Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use typescript 2.7.1 and esModuleInterop #125

Merged
merged 1 commit into from
Feb 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
241 changes: 138 additions & 103 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"meow": "^4.0.0",
"pify": "^3.0.0",
"rimraf": "^2.6.1",
"tslint": "^5.8.0",
"tslint": "^5.9.1",
"update-notifier": "^2.2.0",
"write-file-atomic": "^2.1.0"
},
Expand All @@ -68,7 +68,7 @@
"nyc": "^11.2.1",
"source-map-support": "^0.5.0",
"tmp": "0.0.31",
"typescript": "~2.6.1"
"typescript": "~2.7.1"
},
"peerDependencies": {
"typescript": "^2.6.1"
Expand Down
4 changes: 2 additions & 2 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
* limitations under the License.
*/
import * as path from 'path';
import * as meow from 'meow';
import * as updateNotifier from 'update-notifier';
import meow from 'meow';
import updateNotifier from 'update-notifier';
import {init} from './init';
import {clean} from './clean';

Expand Down
2 changes: 1 addition & 1 deletion src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async function addScripts(
async function addDependencies(
packageJson: PackageJson, options: Options): Promise<boolean> {
let edits = false;
const deps: Bag<string> = {'gts': `^${pkg.version}`, 'typescript': '~2.6.1'};
const deps: Bag<string> = {'gts': `^${pkg.version}`, 'typescript': '~2.7.1'};

if (!packageJson.devDependencies) {
packageJson.devDependencies = {};
Expand Down
4 changes: 2 additions & 2 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

import * as fs from 'fs';
import * as path from 'path';
import * as pify from 'pify';
import * as rimraf from 'rimraf';
import pify from 'pify';
import rimraf from 'rimraf';

export const readFilep = pify(fs.readFile);
export const rimrafp = pify(rimraf);
Expand Down
4 changes: 2 additions & 2 deletions test/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

import {test, Test} from 'ava';
import * as fs from 'fs';
import * as makeDir from 'make-dir';
import makeDir from 'make-dir';
import * as path from 'path';
import * as pify from 'pify';
import pify from 'pify';
import * as tmp from 'tmp';

const writeFilep = pify(fs.writeFile);
Expand Down
4 changes: 2 additions & 2 deletions test/test-kitchen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import * as cp from 'child_process';
import * as fs from 'fs';
import * as ncp from 'ncp';
import * as path from 'path';
import * as pify from 'pify';
import * as rimraf from 'rimraf';
import pify from 'pify';
import rimraf from 'rimraf';
import * as tmp from 'tmp';

interface ExecResult {
Expand Down
13 changes: 7 additions & 6 deletions tsconfig-google.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
{
"compilerOptions": {
"allowSyntheticDefaultImports": false,
"allowSyntheticDefaultImports": true,
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"declaration": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"lib": ["es2015"],
"noFallthroughCasesInSwitch": true,
"module": "commonjs",
"noEmitOnError": true,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"pretty": true,
"sourceMap": true,
"strict": true,
"module": "commonjs",
"target": "es5",
"sourceMap": true
"target": "es5"
},
"exclude": [
"node_modules"
]
}
}