Skip to content

fix: simplify scripts by adding devDependencies #262

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/ten-times-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"webtools-addon-sitemap": patch
"strapi-plugin-webtools": patch
"webtools-cli": patch
---

fix: simplify scripts by adding devDependencies
15 changes: 9 additions & 6 deletions packages/addons/sitemap/package.json
Original file line number Diff line number Diff line change
@@ -36,12 +36,12 @@
"./package.json": "./package.json"
},
"scripts": {
"build": "../../../node_modules/.bin/pack-up build && ../../../node_modules/.bin/yalc push --publish",
"watch": "../../../node_modules/.bin/pack-up watch",
"watch:link": "../../../node_modules/.bin/strapi-plugin watch:link",
"build": "pack-up build && yalc push --publish",
"watch": "pack-up watch",
"watch:link": "strapi-plugin watch:link",
"develop:copy-files": "copyfiles -u 1 xsl/**/* ../../../playground/src/plugins/webtools-addon-sitemap/xsl/",
"eslint": "../../../node_modules/.bin/eslint --max-warnings=0 './**/*.{js,jsx,ts,tsx}'",
"eslint:fix": "../../../node_modules/.bin/eslint --fix './**/*.{js,jsx,ts,tsx}'"
"eslint": "eslint --max-warnings=0 './**/*.{js,jsx,ts,tsx}'",
"eslint:fix": "eslint --fix './**/*.{js,jsx,ts,tsx}'"
},
"peerDependencies": {
"@strapi/design-system": "^2.0.0-rc",
@@ -58,15 +58,18 @@
"devDependencies": {
"@strapi/design-system": "^2.0.0-rc",
"@strapi/icons": "^2.0.0-rc",
"@strapi/pack-up": "^5.0.0",
"@strapi/sdk-plugin": "^5.0.0",
"@strapi/strapi": "^5.0.0",
"@strapi/utils": "^5.0.0",
"@types/lodash": "^4",
"copyfiles": "^2.4.1",
"eslint": "^8.57.1",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-router-dom": "^6",
"styled-components": "^6"
"styled-components": "^6",
"yalc": "^1.0.0-pre.53"
},
"dependencies": {
"chalk": "^4.1.2",
10 changes: 6 additions & 4 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -19,10 +19,10 @@
],
"scripts": {
"check": "pack-up check",
"build": "pack-up build && ../../node_modules/.bin/yalc push --publish",
"build": "pack-up build && yalc push --publish",
"watch": "pack-up watch",
"eslint": "../../node_modules/.bin/eslint --max-warnings=0 './**/*.{js,jsx,ts,tsx}'",
"eslint:fix": "../../node_modules/.bin/eslint --fix './**/*.{js,jsx,ts,tsx}'"
"eslint": "eslint --max-warnings=0 './**/*.{js,jsx,ts,tsx}'",
"eslint:fix": "eslint --fix './**/*.{js,jsx,ts,tsx}'"
},
"bin": {
"strapi-webtools": "./dist/index.js"
@@ -39,7 +39,9 @@
"@types/fs-extra": "^11.0.4",
"@types/glob": "^8.1.0",
"@types/node": "^20.11.19",
"typescript": "^5.3.3"
"eslint": "^8.57.1",
"typescript": "^5.3.3",
"yalc": "^1.0.0-pre.53"
},
"author": {
"name": "Boaz Poolman",
10 changes: 6 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -35,9 +35,9 @@
"scripts": {
"build": "pack-up build && yalc push --publish",
"watch": "pack-up watch",
"watch:link": "../../node_modules/.bin/strapi-plugin watch:link",
"eslint": "../../node_modules/.bin/eslint --max-warnings=0 './**/*.{js,jsx,ts,tsx}'",
"eslint:fix": "../../node_modules/.bin/eslint --fix './**/*.{js,jsx,ts,tsx}'"
"watch:link": "strapi-plugin watch:link",
"eslint": "eslint --max-warnings=0 './**/*.{js,jsx,ts,tsx}'",
"eslint:fix": "eslint --fix './**/*.{js,jsx,ts,tsx}'"
},
"peerDependencies": {
"@strapi/admin": "^5.0.0",
@@ -62,10 +62,12 @@
"@types/lodash": "^4",
"@types/qs": "^6",
"@types/react-copy-to-clipboard": "^5.0.7",
"eslint": "^8.57.1",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-router-dom": "^6.0.0",
"styled-components": "^6.0.0"
"styled-components": "^6.0.0",
"yalc": "^1.0.0-pre.53"
},
"dependencies": {
"formik": "^2.4.0",
9 changes: 8 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
@@ -15754,7 +15754,7 @@ __metadata:
languageName: node
linkType: hard

"eslint@npm:^8.0.0":
"eslint@npm:^8.0.0, eslint@npm:^8.57.1":
version: 8.57.1
resolution: "eslint@npm:8.57.1"
dependencies:
@@ -27886,6 +27886,7 @@ __metadata:
"@types/lodash": "npm:^4"
"@types/qs": "npm:^6"
"@types/react-copy-to-clipboard": "npm:^5.0.7"
eslint: "npm:^8.57.1"
formik: "npm:^2.4.0"
lodash: "npm:^4.17.21"
qs: "npm:^6.14.0"
@@ -27896,6 +27897,7 @@ __metadata:
react-query: "npm:^3.39.3"
react-router-dom: "npm:^6.0.0"
styled-components: "npm:^6.0.0"
yalc: "npm:^1.0.0-pre.53"
yup: "npm:^0.32.9"
peerDependencies:
"@strapi/admin": ^5.0.0
@@ -30382,13 +30384,15 @@ __metadata:
dependencies:
"@strapi/design-system": "npm:^2.0.0-rc"
"@strapi/icons": "npm:^2.0.0-rc"
"@strapi/pack-up": "npm:^5.0.0"
"@strapi/sdk-plugin": "npm:^5.0.0"
"@strapi/strapi": "npm:^5.0.0"
"@strapi/utils": "npm:^5.0.0"
"@types/lodash": "npm:^4"
chalk: "npm:^4.1.2"
commander: "npm:^8.3.0"
copyfiles: "npm:^2.4.1"
eslint: "npm:^8.57.1"
immutable: "npm:^3.8.2"
lodash: "npm:^4.17.21"
react: "npm:^18.0.0"
@@ -30401,6 +30405,7 @@ __metadata:
sitemap: "npm:^7.1.0"
styled-components: "npm:^6"
xml2js: "npm:^0.5.0"
yalc: "npm:^1.0.0-pre.53"
peerDependencies:
"@strapi/design-system": ^2.0.0-rc
"@strapi/icons": ^2.0.0-rc
@@ -30428,9 +30433,11 @@ __metadata:
"@types/node": "npm:^20.11.19"
chalk: "npm:^4.1.2"
commander: "npm:^11.1.0"
eslint: "npm:^8.57.1"
fs-extra: "npm:^11.2.0"
glob: "npm:^10.3.10"
typescript: "npm:^5.3.3"
yalc: "npm:^1.0.0-pre.53"
bin:
strapi-webtools: ./dist/index.js
languageName: unknown