Skip to content

Commit e566552

Browse files
authored
fix(publish): do not remove package scripts (#258)
1 parent 8538c1c commit e566552

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

.changeset/eleven-clowns-create.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@tanstack/config': minor
3+
'@tanstack/publish-config': minor
4+
---
5+
6+
don't remove package scripts before publish

packages/publish-config/src/index.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -443,17 +443,6 @@ export const publish = async (options) => {
443443
execSync(`git add -A && git commit -m "${releaseCommitMsg(version)}"`)
444444
console.info(' Committed Changes.')
445445

446-
console.info()
447-
console.info('Clear package scripts...')
448-
for (const pkg of changedPackages) {
449-
await updatePackageJson(
450-
path.resolve(rootDir, pkg.packageDir, 'package.json'),
451-
(config) => {
452-
config.scripts = {}
453-
},
454-
)
455-
}
456-
457446
/** 'latest' for current version, 'previous' for old versions, and custom for prereleases */
458447
const npmTag = isMainBranch
459448
? 'latest'

0 commit comments

Comments
 (0)