Skip to content

Commit

Permalink
debug why still can't publish anon
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed Mar 23, 2019
1 parent dcdaf02 commit fc1045a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gatsby-dev-cli/src/local-npm-registry/verdaccio.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const adjustPackageJson = ({
newPackageVersion: monorepoPKGjson.version,
unadjustPackageJson: () => {
// restore original package.json
fs.outputFileSync(monoRepoPackageJsonPath, monorepoPKGjsonString)
// fs.outputFileSync(monoRepoPackageJsonPath, monorepoPKGjsonString)
unignorePackageJSONChanges()
},
}
Expand All @@ -132,7 +132,7 @@ const createTemporaryNPMRC = ({ pathToPackage }) => {
fs.outputFileSync(NPMRCPath, `${registryUrl}/:_authToken="gatsby-dev"`)

return () => {
fs.removeSync(NPMRCPath)
// fs.removeSync(NPMRCPath)
}
}

Expand Down
6 changes: 6 additions & 0 deletions packages/gatsby-dev-cli/src/run-veradaccio.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const { startVerdaccio } = require(`./local-npm-registry/verdaccio`)

// My hack to keep the process alive:
setInterval(function() {}, 60000)

startVerdaccio()

0 comments on commit fc1045a

Please sign in to comment.