Skip to content

Commit

Permalink
Fix error when clean up scripts run
Browse files Browse the repository at this point in the history
Details:
---
* The clean up scripts were relying on the shells `rm -rf` command which
  was causing to fail when the files matching the pattern were missing.
  I've replaced this with the `del-cli` node package that ignores those
  missing files.
  • Loading branch information
crs1138 committed Aug 14, 2023
1 parent ba63f4d commit 01a4084
Show file tree
Hide file tree
Showing 2 changed files with 411 additions and 9 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
"scripts": {
"build": "yarn clean && cross-env NODE_ENV=production && yarn tsc",
"clean": "yarn clean:build && yarn clean:examples",
"clean:build": "rm -rf lib appWith* Dynamic* I18n* index context loadNa* setLang* Trans* useT* withT* getP* getC* *.d.ts getT transC* wrapT* types formatElements AppDirI18nProvider*",
"clean:examples": "rm -rf examples/**/.next && rm -rf examples/**/node_modules && rm -rf examples/**/yarn.lock",
"clean:build": "del lib appWith* Dynamic* I18n* index context loadNa* setLang* Trans* useT* withT* getP* getC* *.d.ts getT transC* wrapT* types formatElements AppDirI18nProvider*",
"clean:examples": "del examples/**/.next examples/**/node_modules examples/**/yarn.lock",
"example": "yarn example:complex",
"example:basic": "yarn build && yarn --cwd examples/basic && yarn --cwd examples/basic dev",
"example:complex": "yarn build && yarn --cwd examples/complex && yarn --cwd examples/complex dev",
Expand Down Expand Up @@ -78,6 +78,7 @@
"babel-plugin-transform-es2015-modules-commonjs": "6.26.2",
"babel-preset-minify": "0.5.2",
"cross-env": "7.0.3",
"del-cli": "^5.0.0",
"express": "4.18.2",
"husky": "7.0.4",
"jest": "27.3.1",
Expand Down
Loading

0 comments on commit 01a4084

Please sign in to comment.