Skip to content

Commit 5441b1c

Browse files
authored
Merge pull request #262 from jorrit/fixdevelop
fix: simplify scripts by adding devDependencies
2 parents a2f2c95 + 9be555a commit 5441b1c

File tree

5 files changed

+36
-15
lines changed

5 files changed

+36
-15
lines changed

.changeset/ten-times-shake.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"webtools-addon-sitemap": patch
3+
"strapi-plugin-webtools": patch
4+
"webtools-cli": patch
5+
---
6+
7+
fix: simplify scripts by adding devDependencies

packages/addons/sitemap/package.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@
3636
"./package.json": "./package.json"
3737
},
3838
"scripts": {
39-
"build": "../../../node_modules/.bin/pack-up build && ../../../node_modules/.bin/yalc push --publish",
40-
"watch": "../../../node_modules/.bin/pack-up watch",
41-
"watch:link": "../../../node_modules/.bin/strapi-plugin watch:link",
39+
"build": "pack-up build && yalc push --publish",
40+
"watch": "pack-up watch",
41+
"watch:link": "strapi-plugin watch:link",
4242
"develop:copy-files": "copyfiles -u 1 xsl/**/* ../../../playground/src/plugins/webtools-addon-sitemap/xsl/",
43-
"eslint": "../../../node_modules/.bin/eslint --max-warnings=0 './**/*.{js,jsx,ts,tsx}'",
44-
"eslint:fix": "../../../node_modules/.bin/eslint --fix './**/*.{js,jsx,ts,tsx}'"
43+
"eslint": "eslint --max-warnings=0 './**/*.{js,jsx,ts,tsx}'",
44+
"eslint:fix": "eslint --fix './**/*.{js,jsx,ts,tsx}'"
4545
},
4646
"peerDependencies": {
4747
"@strapi/design-system": "^2.0.0-rc",
@@ -58,15 +58,18 @@
5858
"devDependencies": {
5959
"@strapi/design-system": "^2.0.0-rc",
6060
"@strapi/icons": "^2.0.0-rc",
61+
"@strapi/pack-up": "^5.0.0",
6162
"@strapi/sdk-plugin": "^5.0.0",
6263
"@strapi/strapi": "^5.0.0",
6364
"@strapi/utils": "^5.0.0",
6465
"@types/lodash": "^4",
6566
"copyfiles": "^2.4.1",
67+
"eslint": "^8.57.1",
6668
"react": "^18.0.0",
6769
"react-dom": "^18.0.0",
6870
"react-router-dom": "^6",
69-
"styled-components": "^6"
71+
"styled-components": "^6",
72+
"yalc": "^1.0.0-pre.53"
7073
},
7174
"dependencies": {
7275
"chalk": "^4.1.2",

packages/cli/package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
],
2020
"scripts": {
2121
"check": "pack-up check",
22-
"build": "pack-up build && ../../node_modules/.bin/yalc push --publish",
22+
"build": "pack-up build && yalc push --publish",
2323
"watch": "pack-up watch",
24-
"eslint": "../../node_modules/.bin/eslint --max-warnings=0 './**/*.{js,jsx,ts,tsx}'",
25-
"eslint:fix": "../../node_modules/.bin/eslint --fix './**/*.{js,jsx,ts,tsx}'"
24+
"eslint": "eslint --max-warnings=0 './**/*.{js,jsx,ts,tsx}'",
25+
"eslint:fix": "eslint --fix './**/*.{js,jsx,ts,tsx}'"
2626
},
2727
"bin": {
2828
"strapi-webtools": "./dist/index.js"
@@ -39,7 +39,9 @@
3939
"@types/fs-extra": "^11.0.4",
4040
"@types/glob": "^8.1.0",
4141
"@types/node": "^20.11.19",
42-
"typescript": "^5.3.3"
42+
"eslint": "^8.57.1",
43+
"typescript": "^5.3.3",
44+
"yalc": "^1.0.0-pre.53"
4345
},
4446
"author": {
4547
"name": "Boaz Poolman",

packages/core/package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
"scripts": {
3636
"build": "pack-up build && yalc push --publish",
3737
"watch": "pack-up watch",
38-
"watch:link": "../../node_modules/.bin/strapi-plugin watch:link",
39-
"eslint": "../../node_modules/.bin/eslint --max-warnings=0 './**/*.{js,jsx,ts,tsx}'",
40-
"eslint:fix": "../../node_modules/.bin/eslint --fix './**/*.{js,jsx,ts,tsx}'"
38+
"watch:link": "strapi-plugin watch:link",
39+
"eslint": "eslint --max-warnings=0 './**/*.{js,jsx,ts,tsx}'",
40+
"eslint:fix": "eslint --fix './**/*.{js,jsx,ts,tsx}'"
4141
},
4242
"peerDependencies": {
4343
"@strapi/admin": "^5.0.0",
@@ -62,10 +62,12 @@
6262
"@types/lodash": "^4",
6363
"@types/qs": "^6",
6464
"@types/react-copy-to-clipboard": "^5.0.7",
65+
"eslint": "^8.57.1",
6566
"react": "^18.0.0",
6667
"react-dom": "^18.0.0",
6768
"react-router-dom": "^6.0.0",
68-
"styled-components": "^6.0.0"
69+
"styled-components": "^6.0.0",
70+
"yalc": "^1.0.0-pre.53"
6971
},
7072
"dependencies": {
7173
"formik": "^2.4.0",

yarn.lock

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15754,7 +15754,7 @@ __metadata:
1575415754
languageName: node
1575515755
linkType: hard
1575615756

15757-
"eslint@npm:^8.0.0":
15757+
"eslint@npm:^8.0.0, eslint@npm:^8.57.1":
1575815758
version: 8.57.1
1575915759
resolution: "eslint@npm:8.57.1"
1576015760
dependencies:
@@ -27886,6 +27886,7 @@ __metadata:
2788627886
"@types/lodash": "npm:^4"
2788727887
"@types/qs": "npm:^6"
2788827888
"@types/react-copy-to-clipboard": "npm:^5.0.7"
27889+
eslint: "npm:^8.57.1"
2788927890
formik: "npm:^2.4.0"
2789027891
lodash: "npm:^4.17.21"
2789127892
qs: "npm:^6.14.0"
@@ -27896,6 +27897,7 @@ __metadata:
2789627897
react-query: "npm:^3.39.3"
2789727898
react-router-dom: "npm:^6.0.0"
2789827899
styled-components: "npm:^6.0.0"
27900+
yalc: "npm:^1.0.0-pre.53"
2789927901
yup: "npm:^0.32.9"
2790027902
peerDependencies:
2790127903
"@strapi/admin": ^5.0.0
@@ -30382,13 +30384,15 @@ __metadata:
3038230384
dependencies:
3038330385
"@strapi/design-system": "npm:^2.0.0-rc"
3038430386
"@strapi/icons": "npm:^2.0.0-rc"
30387+
"@strapi/pack-up": "npm:^5.0.0"
3038530388
"@strapi/sdk-plugin": "npm:^5.0.0"
3038630389
"@strapi/strapi": "npm:^5.0.0"
3038730390
"@strapi/utils": "npm:^5.0.0"
3038830391
"@types/lodash": "npm:^4"
3038930392
chalk: "npm:^4.1.2"
3039030393
commander: "npm:^8.3.0"
3039130394
copyfiles: "npm:^2.4.1"
30395+
eslint: "npm:^8.57.1"
3039230396
immutable: "npm:^3.8.2"
3039330397
lodash: "npm:^4.17.21"
3039430398
react: "npm:^18.0.0"
@@ -30401,6 +30405,7 @@ __metadata:
3040130405
sitemap: "npm:^7.1.0"
3040230406
styled-components: "npm:^6"
3040330407
xml2js: "npm:^0.5.0"
30408+
yalc: "npm:^1.0.0-pre.53"
3040430409
peerDependencies:
3040530410
"@strapi/design-system": ^2.0.0-rc
3040630411
"@strapi/icons": ^2.0.0-rc
@@ -30428,9 +30433,11 @@ __metadata:
3042830433
"@types/node": "npm:^20.11.19"
3042930434
chalk: "npm:^4.1.2"
3043030435
commander: "npm:^11.1.0"
30436+
eslint: "npm:^8.57.1"
3043130437
fs-extra: "npm:^11.2.0"
3043230438
glob: "npm:^10.3.10"
3043330439
typescript: "npm:^5.3.3"
30440+
yalc: "npm:^1.0.0-pre.53"
3043430441
bin:
3043530442
strapi-webtools: ./dist/index.js
3043630443
languageName: unknown

0 commit comments

Comments
 (0)