Skip to content

Commit 20436dd

Browse files
authored
fix(ARCH-662): request security issue (#4650)
1 parent 443d132 commit 20436dd

File tree

7 files changed

+57
-630
lines changed

7 files changed

+57
-630
lines changed

.changeset/clean-grapes-invite.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@talend/scripts-publish-local': minor
3+
---
4+
5+
feat: use npx to execute verdaccio.

tools/scripts-publish-local/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
"dependencies": {
1414
"cross-spawn": "^7.0.3",
1515
"generate-password": "^1.7.0",
16-
"rimraf": "^3.0.2",
17-
"verdaccio": "^5.20.1"
16+
"rimraf": "^3.0.2"
1817
},
1918
"author": "Talend Frontend <[email protected]> (http://www.talend.com)",
2019
"license": "Apache-2.0",

tools/scripts-publish-local/src/cmd.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-console */
12
/* eslint-disable-next-line import/no-extraneous-dependencies */
23
const spawn = require('cross-spawn');
34
const fs = require('fs');

tools/scripts-publish-local/src/git.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-console */
12
const os = require('os');
23
const cmd = require('./cmd');
34

tools/scripts-publish-local/src/npm.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-console */
12
const fs = require('fs');
23
const os = require('os');
34
const path = require('path');

tools/scripts-publish-local/src/verdaccio.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-console */
12
const fs = require('fs');
23
const os = require('os');
34
const rimraf = require('rimraf');
@@ -53,7 +54,7 @@ async function start() {
5354
console.log('verdaccio.start');
5455
return new Promise(resolve => {
5556
generateConfig();
56-
cmd.run(`verdaccio --config ${VERDACCIO_CONFIG_FILE}`, {
57+
cmd.run(`npx --yes verdaccio --config ${VERDACCIO_CONFIG_FILE}`, {
5758
interactive: verdaccio => {
5859
verdaccio.stdout.on('data', data => {
5960
if (data.includes('http address')) {

yarn.lock

+46-627
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)