Skip to content

Commit f443546

Browse files
committed
use --ESModuleInterop microsoft/TypeScript#19675
1 parent a3be208 commit f443546

17 files changed

+196
-74
lines changed

.vscode/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
22
"tslint.autoFixOnSave": true,
3+
"editor.formatOnPaste": true,
4+
"editor.formatOnType": true,
35
"editor.formatOnSave": true
46
}

package-lock.json

Lines changed: 70 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"license": "MIT",
2828
"dependencies": {
29-
"@types/bluebird": "^3.5.18",
29+
"@types/bluebird": "^3.5.19",
3030
"@types/chalk": "^2.2.0",
3131
"@types/deep-equal": "^1.0.1",
3232
"@types/minimist": "1.2.0",
@@ -41,17 +41,17 @@
4141
"mz": "^2.7.0",
4242
"request": "^2.83.0",
4343
"request-promise": "^4.2.2",
44-
"tslib": "^1.8.0"
44+
"tslib": "^1.9.0"
4545
},
4646
"devDependencies": {
4747
"@types/tape": "^4.2.31",
4848
"jspm": "^0.17.0-beta.47",
4949
"rimraf": "2.6.2",
50-
"source-map-support": "^0.5.0",
50+
"source-map-support": "^0.5.2",
5151
"tape": "^4.8.0",
5252
"ts-node": "^3.3.0",
53-
"tslint": "^5.8.0",
54-
"typescript": "next"
53+
"tslint": "^5.9.1",
54+
"typescript": "^2.7.0-dev.20180119"
5555
},
5656
"keywords": [
5757
"aurelia",

src/aquire-declaration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import mz = require('mz');
2-
import requestPromise = require('request-promise');
1+
import mz from 'mz';
2+
import requestPromise from 'request-promise';
33

44
import ensureDir from './ensure-dir';
55

src/ensure-dir.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import mz = require('mz');
1+
import mz from 'mz';
22
const {fs} = mz;
33

44
export default async function ensureDir(path: string) {

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import chalk from 'chalk';
22

3-
import thisPackage = require('../package.json');
3+
import thisPackage from '../package.json';
44

55
import './polyfills/enhance';
66

src/install-options.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default interface InstallOptions {
2+
projectDir: string;
3+
framework: string;
4+
dest: string;
5+
explicitIndex: boolean;
6+
}

src/install.ts

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
1-
import deepEqual = require('deep-equal');
2-
import mz = require('mz');
3-
import path = require('path');
1+
import deepEqual from 'deep-equal';
2+
import mz from 'mz';
3+
import path from 'path';
44

55
import downloadDeclaration from './aquire-declaration';
66
import ensureDir from './ensure-dir';
77
import loadJspmConfiguration from './load-jspm-configuration';
8+
import InstallOptions from './install-options';
89

910
const {fs} = mz;
1011

11-
export interface InstallOptions {
12-
projectDir: string;
13-
framework: string;
14-
dest: string;
15-
explicitIndex: boolean;
16-
}
17-
1812
export default async function install({projectDir, framework, dest, explicitIndex}: InstallOptions) {
1913
const baseUrl = await fs.realpath(projectDir);
2014
let successSummary = '';

src/load-jspm-configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import mz = require('mz');
2-
import path = require('path');
1+
import mz from 'mz';
2+
import path from 'path';
33

44
import extractJspmConfig from './extract-jspm-config';
55

src/parse-args.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import minimist = require('minimist');
1+
import minimist from 'minimist';
22

3-
import {InstallOptions} from './install';
3+
import InstallOptions from './install-options';
44

55
export default function parseArgs() {
66
const {_: [command], projectDir, framework, dest, explicitIndex, version, help} = minimist(process.argv.slice(2), {

0 commit comments

Comments
 (0)