diff --git a/packages/gatsby-worker/package.json b/packages/gatsby-worker/package.json index 9ea637405d915..986029c5f8354 100644 --- a/packages/gatsby-worker/package.json +++ b/packages/gatsby-worker/package.json @@ -17,7 +17,7 @@ "@babel/register": "^7.18.9", "babel-preset-gatsby-package": "^3.9.0-next.0", "cross-env": "^7.0.3", - "rimraf": "^3.0.2", + "rimraf": "^4.4.1", "typescript": "^5.0.2" }, "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-worker#readme", @@ -36,7 +36,7 @@ "build": "babel src --out-dir dist/ --ignore \"**/__tests__\" --extensions \".ts,.js\"", "prepare": "cross-env NODE_ENV=production npm run build && npm run typegen", "watch": "babel -w src --out-dir dist/ --ignore \"**/__tests__\" --extensions \".ts,.js\"", - "typegen": "rimraf \"dist/**/*.d.ts\" && tsc --emitDeclarationOnly --declaration --declarationDir dist/" + "typegen": "rimraf --glob \"dist/**/*.d.ts\" && tsc --emitDeclarationOnly --declaration --declarationDir dist/" }, "engines": { "node": ">=18.0.0"