Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9d2ec7c

Browse files
committed
chore: cleanup package.json, and mark fsevents as optional
1 parent b0a926b commit 9d2ec7c

File tree

2 files changed

+22
-13
lines changed

2 files changed

+22
-13
lines changed

‎.prettierrc.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
{
2-
"useTabs": true
2+
"useTabs": true,
3+
"overrides": [
4+
{
5+
"files": "*.json",
6+
"options": {
7+
"useTabs": false
8+
}
9+
}
10+
]
311
}

‎package.json

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript",
3-
"preferGlobal": true,
3+
"main": "./lib/nativescript-cli-lib.js",
44
"version": "8.7.1",
55
"author": "NativeScript <support@nativescript.org>",
66
"description": "Command-line interface for building NativeScript projects",
@@ -10,7 +10,6 @@
1010
"nsc": "./bin/tns",
1111
"ns": "./bin/tns"
1212
},
13-
"main": "./lib/nativescript-cli-lib.js",
1413
"files": [
1514
"bin/*",
1615
"config",
@@ -117,7 +116,6 @@
117116
"xml2js": "0.6.2",
118117
"yargs": "17.7.1"
119118
},
120-
"analyze": true,
121119
"devDependencies": {
122120
"@types/archiver": "^5.3.2",
123121
"@types/byline": "^4.2.33",
@@ -171,27 +169,30 @@
171169
"sinon": "15.0.3",
172170
"source-map-support": "0.5.21"
173171
},
174-
"license": "Apache-2.0",
175-
"engines": {
176-
"node": ">=10.0.0"
177-
},
178-
"lint-staged": {
179-
"*.ts": "prettier --write"
180-
},
181172
"bundleDependencies_comment1": "These dependencies are bundled in the CLI and are not installed from npm to avoid deprecation warnings.",
182173
"bundleDependencies_comment2": "Eventually we'll remove them as we replaced their functionality.",
183174
"bundleDependencies_comment3": "note: @npmcli/move-file is a transient dep of pacote - we dont use it directly.",
184175
"bundleDependencies": [
185176
"@npmcli/move-file",
186-
"stringify-package",
187-
"fsevents"
177+
"stringify-package"
188178
],
179+
"optionalDependencies": {
180+
"fsevents": "*"
181+
},
189182
"overrides": {
190183
"jimp": {
191184
"xml2js": "0.6.2"
192185
},
193186
"npm-watch": {
194187
"nodemon": "3.0.3"
195188
}
189+
},
190+
"analyze": true,
191+
"license": "Apache-2.0",
192+
"engines": {
193+
"node": ">=14.0.0"
194+
},
195+
"lint-staged": {
196+
"*.ts": "prettier --write"
196197
}
197198
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /