Skip to content

Commit 62806d1

Browse files
committed
ES6 imports
1 parent 7217af9 commit 62806d1

19 files changed

+48
-53
lines changed

lib/commands/list-platforms.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
///<reference path="../.d.ts"/>
22
"use strict";
33

4-
import helpers = require("./../common/helpers");
4+
import * as helpers from "../common/helpers";
55

66
export class ListPlatformsCommand implements ICommand {
77
constructor(private $platformService: IPlatformService,

lib/lockfile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"use strict";
33

44
import Future = require("fibers/future");
5-
import lockfile = require("lockfile");
5+
import * as lockfile from "lockfile";
66
import * as path from "path";
77

88
export class LockFile implements ILockFile {

lib/nativescript-cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
require("./common/verify-node-version").verifyNodeVersion(require("../package.json").engines.node);
66

77
require("./bootstrap");
8-
import fiber = require("fibers");
8+
import * as fiber from "fibers";
99
import Future = require("fibers/future");
1010
import {installUncaughtExceptionListener} from "./common/errors";
1111
installUncaughtExceptionListener(process.exit);

lib/npm-installation-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"use strict";
33

44
import * as path from "path";
5-
import semver = require("semver");
5+
import * as semver from "semver";
66
import * as npm from "npm";
77
import * as constants from "./constants";
88

lib/services/init-service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
///<reference path="../.d.ts"/>
22
"use strict";
33

4-
import constants = require("../constants");
4+
import * as constants from "../constants";
55
import * as helpers from "../common/helpers";
66
import * as path from "path";
7-
import semver = require("semver");
7+
import * as semver from "semver";
88

99
export class InitService implements IInitService {
1010
private static MIN_SUPPORTED_FRAMEWORK_VERSIONS: IStringDictionary = {

lib/services/ios-debug-service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
import * as iOSProxyServices from "../common/mobile/ios/ios-proxy-services";
55
import * as iOSDevice from "../common/mobile/ios/ios-device";
66
import * as net from "net";
7-
import ws = require("ws");
7+
import * as ws from "ws";
88
import * as stream from "stream";
99
import * as path from "path";
1010
import Future = require("fibers/future");
11-
import semver = require("semver");
11+
import * as semver from "semver";
1212
import temp = require("temp");
1313
import byline = require("byline");
1414

lib/services/project-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
///<reference path="../.d.ts"/>
22
"use strict";
33

4-
import constants = require("../constants");
4+
import * as constants from "../constants";
55
import * as osenv from "osenv";
66
import * as path from "path";
77
import * as shell from "shelljs";

lib/services/user-settings-service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
///<reference path="../.d.ts"/>
22
"use strict";
33

4-
import path = require("path");
5-
import userSettingsServiceBaseLib = require("../common/services/user-settings-service");
4+
import * as path from "path";
5+
import * as userSettingsServiceBaseLib from "../common/services/user-settings-service";
66

77
class UserSettingsService extends userSettingsServiceBaseLib.UserSettingsServiceBase {
88
constructor($fs: IFileSystem,

lib/tools/broccoli/broccoli-plugin-wrapper-factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
///<reference path="../../.d.ts"/>
22
"use strict";
33

4-
import broccoliPluginWrapperLib = require("./broccoli-plugin-wrapper");
4+
import * as broccoliPluginWrapperLib from "./broccoli-plugin-wrapper";
55

66
/**
77
* Makes writing plugins easy.

0 commit comments

Comments
 (0)