From 8e189eab455f034598d311cdb810afe7dae77f38 Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Tue, 13 Feb 2024 21:20:26 +0000 Subject: [PATCH] PR-387478: Actualiza las dependencias de npm para solucionar problemas de compatibilidad --- .github/workflows/main-workflow.yml | 6 +++--- bin/cli.js | 2 +- package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main-workflow.yml b/.github/workflows/main-workflow.yml index 43552d8..21bb4fc 100644 --- a/.github/workflows/main-workflow.yml +++ b/.github/workflows/main-workflow.yml @@ -26,7 +26,7 @@ jobs: node-version: 16 cache: 'npm' registry-url: https://registry.npmjs.org/ - - run: npm ci + - run: npm ci --legacy-peer-deps - run: npm test # Job to run Cypress component tests @@ -69,7 +69,7 @@ jobs: with: node-version: 16 registry-url: https://registry.npmjs.org/ - - run: npm ci + - run: npm ci --legacy-peer-deps - run: npm run build # Job to publish the package to NPM @@ -83,7 +83,7 @@ jobs: with: node-version: 16 registry-url: https://registry.npmjs.org/ - - run: npm ci + - run: npm ci --legacy-peer-deps - run: npm publish --access=public env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} \ No newline at end of file diff --git a/bin/cli.js b/bin/cli.js index 85a5a4d..48edc65 100644 --- a/bin/cli.js +++ b/bin/cli.js @@ -67,7 +67,7 @@ if(!checkedOut) process.exit(-1); const actualVersion = runCommandWithOutput(`cd ${repoName} && node -p "require('./package.json').version"`).toString().trim() -const installDepsCommand = `cd ${repoName} && npm install`; +const installDepsCommand = `cd ${repoName} && npm install --legacy-peer-deps`; const cleanGitHistoryCommand = `cd ${repoName} && rm -rf .git && git init && git add --all -- ":!.github" ":!bin" && git commit -m "Initial commit"` const cleanGitHistoryCommandWindows = `cd ${repoName} && rmdir .git /s /q && git init && git add --all -- ":!.github" ":!bin" && git commit -m "Initial commit"` const deleteFoldersCommand = `cd ${repoName} && rm -rf .github && rm -rf bin` diff --git a/package.json b/package.json index d62649a..3c747fa 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "lint:fix": "eslint ./ --ext .js --ext .ts --ext .jsx --ext .tsx --fix", "test": "jest", "test:watch": "jest --watch", - "check-updates": "npx npm-check-updates -u && npm i", + "check-updates": "npx npm-check-updates -u && npm i --legacy-peer-deps", "cy:open": "npx cypress open", "cy:run": "cypress run", "cy:run-component": "cypress run --headless --component"