Skip to content
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

chore(gatsby-cli): delete *.d.ts files before creating new ones #25065

Merged
merged 1 commit into from
Jun 17, 2020
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
3 changes: 2 additions & 1 deletion packages/gatsby-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"@types/yargs": "^15.0.4",
"babel-preset-gatsby-package": "^0.4.4",
"cross-env": "^5.2.1",
"rimraf": "^3.0.2",
"typescript": "^3.9.3"
},
"files": [
Expand All @@ -80,7 +81,7 @@
"scripts": {
"build": "babel src --out-dir lib --ignore \"**/__tests__\" --extensions \".ts,.js,.tsx\"",
"prepare": "cross-env NODE_ENV=production npm run build && npm run typegen",
"typegen": "tsc --emitDeclarationOnly --declaration --declarationDir lib/",
"typegen": "rimraf \"lib/**/*.d.ts\" && tsc --emitDeclarationOnly --declaration --declarationDir lib/",
"watch": "babel -w src --out-dir lib --ignore \"**/__tests__\" --extensions \".ts,.js,.tsx\"",
"postinstall": "node scripts/postinstall.js"
},
Expand Down