Skip to content

Commit d664d63

Browse files
committed
chore: align sorting of package.json
We already did this on the main branch and should also do it in the stable8 branch as it is still the supported branch. - Consistent sorting - Add author accoring to our contributors and consistent with other libraries - Adjust supported node versions Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 02ffc18 commit d664d63

File tree

3 files changed

+44
-36
lines changed

3 files changed

+44
-36
lines changed

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# SPDX-License-Identifier: AGPL-3.0-or-later
33

44
[build.environment]
5-
NODE_VERSION = "20"
5+
NODE_VERSION = "22"
66
NPM_VERSION = "10"

package-lock.json

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 42 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,11 @@
77
"nextcloud",
88
"components"
99
],
10-
"repository": "https://github.com/nextcloud-libraries/nextcloud-vue",
1110
"homepage": "https://github.com/nextcloud-libraries/nextcloud-vue",
1211
"bugs": "https://github.com/nextcloud-libraries/nextcloud-vue/issues",
13-
"author": "John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>",
12+
"repository": "https://github.com/nextcloud-libraries/nextcloud-vue",
1413
"license": "AGPL-3.0-or-later",
15-
"scripts": {
16-
"build": "vite build --mode production ",
17-
"dev": "vite build --mode development",
18-
"dev:watch": "vite build --mode development --watch",
19-
"watch": "npm run dev:watch",
20-
"l10n:extract": "node build/extract-l10n.mjs",
21-
"lint": "eslint --ext .js,.vue src",
22-
"lint:fix": "eslint --ext .js,.vue src --fix",
23-
"prerelease:format-changelog": "node build/format-changelog.mjs",
24-
"test": "TZ=UTC LANG='en-US' jest --verbose --color",
25-
"test:coverage": "TZ=UTC LANG='en-US' jest --verbose --coverage --no-cache",
26-
"stylelint": "stylelint \"src/**/*.vue\" \"src/**/*.scss\" \"src/**/*.css\"",
27-
"stylelint:fix": "stylelint \"src/**/*.vue\" \"src/**/*.scss\" \"src/**/*.css\" --fix",
28-
"styleguide": "vue-styleguidist server",
29-
"styleguide:build": "vue-styleguidist build",
30-
"cypress": "TZ=UTC cypress run --component",
31-
"cypress:gui": "TZ=UTC cypress open --component",
32-
"cypress:update-snapshots": "TZ=UTC cypress run --component --spec \"cypress/visual/**/*.cy.{t,j}s\" --env type=base --config screenshotsFolder=cypress/snapshots/base"
33-
},
34-
"main": "dist/index.cjs",
14+
"author": "Nextcloud GmbH and Nextcloud contributors",
3515
"exports": {
3616
".": {
3717
"import": "./dist/index.mjs",
@@ -74,12 +54,40 @@
7454
"require": "./dist/Functions/*.cjs"
7555
}
7656
},
57+
"main": "dist/index.cjs",
7758
"files": [
7859
"CHANGELOG.md",
7960
"LICENSE",
8061
"README.md",
8162
"dist"
8263
],
64+
"scripts": {
65+
"build": "vite build --mode production ",
66+
"cypress": "TZ=UTC cypress run --component",
67+
"cypress:gui": "TZ=UTC cypress open --component",
68+
"cypress:update-snapshots": "TZ=UTC cypress run --component --spec \"cypress/visual/**/*.cy.{t,j}s\" --env type=base --config screenshotsFolder=cypress/snapshots/base",
69+
"dev": "vite build --mode development",
70+
"dev:watch": "vite build --mode development --watch",
71+
"l10n:extract": "node build/extract-l10n.mjs",
72+
"lint": "eslint --ext .js,.vue src",
73+
"lint:fix": "eslint --ext .js,.vue src --fix",
74+
"prerelease:format-changelog": "node build/format-changelog.mjs",
75+
"styleguide": "vue-styleguidist server",
76+
"styleguide:build": "vue-styleguidist build",
77+
"stylelint": "stylelint \"src/**/*.vue\" \"src/**/*.scss\" \"src/**/*.css\"",
78+
"stylelint:fix": "stylelint \"src/**/*.vue\" \"src/**/*.scss\" \"src/**/*.css\" --fix",
79+
"test": "TZ=UTC LANG='en-US' jest --verbose --color",
80+
"test:coverage": "TZ=UTC LANG='en-US' jest --verbose --coverage --no-cache",
81+
"watch": "npm run dev:watch"
82+
},
83+
"browserslist": [
84+
"extends @nextcloud/browserslist-config"
85+
],
86+
"overrides": {
87+
"mdast-util-gfm": {
88+
"mdast-util-gfm-autolink-literal": "2.0.0"
89+
}
90+
},
8391
"dependencies": {
8492
"@floating-ui/dom": "^1.1.0",
8593
"@linusborg/vue-simple-portal": "^0.1.5",
@@ -129,10 +137,6 @@
129137
"vue-router": "^3.6.5",
130138
"vue2-datepicker": "^3.11.0"
131139
},
132-
"engines": {
133-
"node": "^20.0.0",
134-
"npm": "^10.0.0"
135-
},
136140
"devDependencies": {
137141
"@babel/plugin-syntax-import-assertions": "^7.22.5",
138142
"@babel/preset-typescript": "^7.27.0",
@@ -184,12 +188,17 @@
184188
"webpack": "^5.98.0",
185189
"webpack-merge": "^6.0.1"
186190
},
187-
"overrides": {
188-
"mdast-util-gfm": {
189-
"mdast-util-gfm-autolink-literal": "2.0.0"
190-
}
191+
"engines": {
192+
"node": "^20.0.0 || ^22.0.0 || ^24.0.0"
191193
},
192-
"browserslist": [
193-
"extends @nextcloud/browserslist-config"
194-
]
194+
"devEngines": {
195+
"packageManager": {
196+
"name": "npm",
197+
"version": "^10"
198+
},
199+
"runtime": {
200+
"name": "node",
201+
"version": "^22"
202+
}
203+
}
195204
}

0 commit comments

Comments
 (0)