Skip to content

Commit fc1045a

Browse files
committed
debug why still can't publish anon
1 parent dcdaf02 commit fc1045a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

packages/gatsby-dev-cli/src/local-npm-registry/verdaccio.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const adjustPackageJson = ({
115115
newPackageVersion: monorepoPKGjson.version,
116116
unadjustPackageJson: () => {
117117
// restore original package.json
118-
fs.outputFileSync(monoRepoPackageJsonPath, monorepoPKGjsonString)
118+
// fs.outputFileSync(monoRepoPackageJsonPath, monorepoPKGjsonString)
119119
unignorePackageJSONChanges()
120120
},
121121
}
@@ -132,7 +132,7 @@ const createTemporaryNPMRC = ({ pathToPackage }) => {
132132
fs.outputFileSync(NPMRCPath, `${registryUrl}/:_authToken="gatsby-dev"`)
133133

134134
return () => {
135-
fs.removeSync(NPMRCPath)
135+
// fs.removeSync(NPMRCPath)
136136
}
137137
}
138138

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
const { startVerdaccio } = require(`./local-npm-registry/verdaccio`)
2+
3+
// My hack to keep the process alive:
4+
setInterval(function() {}, 60000)
5+
6+
startVerdaccio()

0 commit comments

Comments
 (0)