Minor cleanup to npm registry mock

This commit is contained in:
Daniel
2021-02-17 12:29:01 +01:00
committed by Daniel Hutzel
parent 28402c58b3
commit b6f3914d79
3 changed files with 3 additions and 1 deletions

1
.registry/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
*.tgz

View File

@@ -5,6 +5,7 @@ const app = express()
const { PORT=4444 } = process.env
const [,,port=PORT] = process.argv
process.cwd(__dirname)
app.use('/-/:tarball', (req,res,next) => {
const url = decodeURIComponent(req.url)

View File

@@ -20,7 +20,7 @@
"sqlite3": "5.0.0"
},
"scripts": {
"registry": "cd .registry && node server.js",
"registry": "node .registry/server.js",
"bookshop": "cds watch bookshop",
"fiori": "cds watch fiori",
"media": "cds watch media",