fix(deps): add missing dependencies + fix knip (#49691)

* refactor: use pnpm dlx over npx

* fix: create config before running knip

* chore: fix challenge-parser dependencies

* chore: add missing client + plugin dependencies

* chore: pin deps
This commit is contained in:
Oliver Eyton-Williams
2023-03-13 15:08:19 +01:00
committed by GitHub
parent 9340566428
commit c498c06259
7 changed files with 24 additions and 11 deletions
@@ -41,4 +41,5 @@ jobs:
run: |
echo pnpm version $(pnpm -v)
pnpm install
pnpm run create:config
pnpm run knip
+1
View File
@@ -174,6 +174,7 @@
"chokidar": "3.5.3",
"copy-webpack-plugin": "9.1.0",
"core-js": "2.6.12",
"dotenv": "16.0.3",
"gatsby-plugin-webpack-bundle-analyser-v2": "1.1.30",
"jest-json-schema-extended": "1.0.1",
"monaco-editor-webpack-plugin": "4.2.0",
@@ -17,5 +17,9 @@
},
"homepage": "https://github.com/freeCodeCamp/freeCodeCamp#readme",
"author": "freeCodeCamp <team@freecodecamp.org>",
"main": "none"
"main": "none",
"devDependencies": {
"chokidar": "3.5.3",
"readdirp": "3.6.0"
}
}
+2 -2
View File
@@ -66,8 +66,8 @@
"format:prettier": "prettier --write .",
"hooks:install": "node node_modules/husky/husky.js install",
"hooks:uninstall": "node node_modules/husky/husky.js uninstall",
"knip": "npx -y knip@^1.0.0-beta.10 --include files",
"knip:all": "npx -y knip@^1.0.0-beta.10",
"knip": "pnpm dlx knip --include files",
"knip:all": "pnpm dlx knip",
"prelint": "pnpm run -F=client predevelop",
"lint": "npm-run-all create:* -p lint:*",
"lint:challenges": "cd ./curriculum && pnpm run lint",
+12 -5
View File
@@ -332,6 +332,7 @@ importers:
core-js: 2.6.12
crypto-browserify: 3.12.0
date-fns: 2.29.3
dotenv: 16.0.3
enzyme: 3.11.0
enzyme-adapter-react-16: 1.15.7
eslint: '7'
@@ -548,6 +549,7 @@ importers:
chokidar: 3.5.3
copy-webpack-plugin: 9.1.0_webpack@5.76.1
core-js: 2.6.12
dotenv: 16.0.3
gatsby-plugin-webpack-bundle-analyser-v2: 1.1.30_gatsby@3.15.0
jest-json-schema-extended: 1.0.1
monaco-editor-webpack-plugin: 4.2.0_iq5jyfjbskrhrr45x6xdwyuq74
@@ -560,7 +562,12 @@ importers:
webpack-cli: 4.10.0_webpack@5.76.1
client/plugins/fcc-source-challenges:
specifiers: {}
specifiers:
chokidar: 3.5.3
readdirp: 3.6.0
devDependencies:
chokidar: 3.5.3
readdirp: 3.6.0
client/plugins/gatsby-remark-node-identity:
specifiers: {}
@@ -715,11 +722,11 @@ importers:
js-yaml: 3.14.1
lodash: 4.17.21
mdast-builder: 1.1.1
mdast-util-from-markdown: 0.8.5
mdast-util-gfm: 0.1.2
mdast-util-directive: 1.0.1
mdast-util-gfm-strikethrough: 0.2.3
mdast-util-gfm-table: 0.1.6
mdast-util-to-hast: 9.1.2
mdast-util-to-markdown: 0.6.5
micromark-extension-gfm-strikethrough: 0.6.5
micromark-extension-gfm-table: 0.4.3
remark: 13.0.0
@@ -746,11 +753,11 @@ importers:
js-yaml: 3.14.1
lodash: 4.17.21
mdast-builder: 1.1.1
mdast-util-from-markdown: 0.8.5
mdast-util-gfm: 0.1.2
mdast-util-directive: 1.0.1
mdast-util-gfm-strikethrough: 0.2.3
mdast-util-gfm-table: 0.1.6
mdast-util-to-hast: 9.1.2
mdast-util-to-markdown: 0.6.5
micromark-extension-gfm-strikethrough: 0.6.5
micromark-extension-gfm-table: 0.4.3
remark: 13.0.0
+2 -2
View File
@@ -26,11 +26,11 @@
"js-yaml": "3.14.1",
"lodash": "4.17.21",
"mdast-builder": "1.1.1",
"mdast-util-from-markdown": "0.8.5",
"mdast-util-gfm": "0.1.2",
"mdast-util-directive": "1.0.1",
"mdast-util-gfm-strikethrough": "0.2.3",
"mdast-util-gfm-table": "0.1.6",
"mdast-util-to-hast": "9.1.2",
"mdast-util-to-markdown": "0.6.5",
"micromark-extension-gfm-strikethrough": "0.6.5",
"micromark-extension-gfm-table": "0.4.3",
"remark": "13.0.0",
+1 -1
View File
@@ -63,7 +63,7 @@
"storybook:theming": "pnpm run storybook --no-manager-cache",
"build-storybook": "build-storybook",
"build": "cross-env NODE_ENV=production rollup -c",
"build:css": "npx tailwindcss -i ./src/base.css -o ./dist/base.css --minify",
"build:css": "pnpm dlx tailwindcss -i ./src/base.css -o ./dist/base.css --minify",
"dev": "cross-env NODE_ENV=development rollup -c -w",
"clean": "rimraf dist/*",
"gen-component": "ts-node ./utils/gen-component-script"