Skip to content

Commit c8c2d94

Browse files
NathanWalkerrigor789
authored andcommitted
feat: add 'nsc' alias
1 parent c8cd933 commit c8c2d94

File tree

6 files changed

+13
-5
lines changed

6 files changed

+13
-5
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*.js
44
!/*.js
55
!bin/nativescript.js
6+
!bin/nsc.js
67
!vendor/*.js
78
!resources/**
89
!lib/common/test/resources/**/*

bin/nsc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env node
2+
3+
require("./tns");

bin/nsc.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env node
2+
3+
require("./tns");

lib/options.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ export class Options {
88
private optionsWhiteList = ["ui", "recursive", "reporter", "require", "timeout", "_", "$0"]; // These options shouldn't be validated
99
private globalOptions: IDictionary<IDashedOption> = {
1010
log: { type: OptionType.String, hasSensitiveValue: false },
11-
verbose: { type: OptionType.Boolean, alias: "v", hasSensitiveValue: false },
12-
version: { type: OptionType.Boolean, hasSensitiveValue: false },
11+
verbose: { type: OptionType.Boolean, hasSensitiveValue: false },
12+
version: { type: OptionType.Boolean, alias: "v", hasSensitiveValue: false },
1313
help: { type: OptionType.Boolean, alias: "h", hasSensitiveValue: false },
1414
profileDir: { type: OptionType.String, hasSensitiveValue: true },
1515
analyticsClient: { type: OptionType.String, hasSensitiveValue: false },

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
"name": "nativescript",
33
"preferGlobal": true,
4-
"version": "6.8.0-alpha.0",
4+
"version": "6.8.0-rc.2",
55
"author": "NativeScript <[email protected]>",
66
"description": "Command-line interface for building NativeScript projects",
77
"bin": {
88
"tns": "./bin/tns",
9-
"nativescript": "./bin/tns"
9+
"nativescript": "./bin/tns",
10+
"nsc": "./bin/tns"
1011
},
1112
"main": "./lib/nativescript-cli-lib.js",
1213
"scripts": {

test/options.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ describe("options", () => {
123123
options.validateOptions();
124124
process.argv.pop();
125125
assert.isFalse(isExecutionStopped);
126-
assert.isTrue(options.verbose);
126+
assert.isTrue(options.version);
127127
});
128128

129129
// all numbers are changed to strings before calling validateOptions

0 commit comments

Comments
 (0)