Skip to content

Commit

Permalink
fix: downgrade numerous + update @types/node
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Sep 20, 2024
1 parent 72f96bf commit 32a5347
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"groupName": "devDependencies",
"semanticCommitType": "chore",
"automerge": true,
"ignoreDeps": ["eslint"]
"ignoreDeps": ["eslint", "numerous"]
},
{
"matchDepTypes": ["dependencies"],
Expand Down
2 changes: 1 addition & 1 deletion dist/legacy/setup-cpp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/legacy/setup-cpp.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/modern/setup-cpp.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/modern/setup-cpp.mjs.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"build.vite": "cross-env NODE_ENV=production vite build",
"build.vite.legacy": "cross-env NODE_ENV=production TARGET=legacy vite build",
"build.json": "shx cp ./src/*/*.json ./dist/legacy/ && shx cp ./dist/legacy/*.json ./dist/modern && minijson --file ./dist/**/*.json",
"bump": "ncu -u -x numerous,execa,prettier,@types/node,eslint,@types/eslint && pnpm update && pnpx typesync && pnpm run clean",
"bump": "ncu -u -x numerous,eslint,@types/eslint && pnpm update && pnpx typesync && pnpm run clean",
"clean": "shx rm -rf ./dist ./packages/*/dist ./exe ./.parcel-cache && shx mkdir -p ./dist/legacy ./dist/modern ./dist/modern ",
"dev.vite": "cross-env NODE_ENV=development vite build --watch",
"dev.packages": "turbo dev",
Expand Down Expand Up @@ -113,7 +113,7 @@
"node-downloader-helper": "2.1.9",
"npm-check-updates": "^17.1.2",
"npm-run-all2": "^6.2.3",
"numerous": "2.0.0",
"numerous": "1.0.3",
"p-timeout": "^6.1.2",
"path-exists": "^5.0.0",
"patha": "^0.4.1",
Expand All @@ -131,7 +131,7 @@
"simple-update-notifier": "^2.0.0",
"terser": "^5.33.0",
"terser-config-atomic": "^1.0.0",
"time-delta": "github:aminya/time-delta#d732dbc4fe991ab323cfa9075df8a7988537926e",
"time-delta": "github:aminya/time-delta#69d91a4",
"timers-browserify": "^2.0.12",
"ts-node": "^10.9.2",
"ts-readme": "^1.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/envosman/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"dependencies": {
"@actions/core": "^1.10.1",
"@types/node": "^12",
"@types/node": "22.5.5",
"admina": "^1.0.1",
"ci-info": "^4.0.0",
"escape-path-with-spaces": "^1.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/setup-apt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"prepublishOnly": "pnpm run build"
},
"dependencies": {
"@types/node": "^12",
"@types/node": "22.5.5",
"admina": "^1.0.1",
"ci-info": "^4.0.0",
"path-exists": "^5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/setup-apt/src/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export async function installAptPack(packages: AptPackage[], update = false): Pr
})
} catch (err) {
if (isExecaError(err)) {
if (retryErrors.some((error) => err.stderr.includes(error))) {
if (retryErrors.some((error) => typeof err.stderr === "string" && err.stderr.includes(error))) {
warning(`Failed to install packages ${needToInstall}. Retrying...`)
execRootSync(
apt,
Expand Down
2 changes: 1 addition & 1 deletion packages/setup-brew/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"test": "jest --coverage"
},
"dependencies": {
"@types/node": "^12",
"@types/node": "22.5.5",
"ci-log": "workspace:*",
"envosman": "workspace:*",
"which": "4.0.0",
Expand Down
39 changes: 13 additions & 26 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/setup-cpp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import { GITHUB_ACTIONS, isCI } from "ci-info"
import { error, info, success, warning } from "ci-log"
import { finalizeRC } from "envosman"
import * as numerous from "numerous"
import numerous from "numerous"
import numerousLocale from "numerous/locales/en.js"
import * as timeDelta from "time-delta"
import timeDelta from "time-delta"
import timeDeltaLocale from "time-delta/locales/en.js"
import { untildifyUser } from "untildify-user"
import { checkUpdates } from "./check-updates.js"
Expand Down
2 changes: 1 addition & 1 deletion vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const viteConfig = defineConfig({
"stream/promises": "./src/utils/compat/stream/promises.ts",
"stream/web": "web-streams-polyfill/dist/ponyfill.mjs",
"util/types": "util.types/index.js",
'timers/promises': 'timers-browserify',
"timers/promises": "timers-browserify",
diagnostics_channel: "diagnostics_channel/index.js",
}
: {}),
Expand Down

0 comments on commit 32a5347

Please sign in to comment.