Skip to content

Commit f234661

Browse files
authored
ci: fix node 16 builds (#413)
1 parent 90ba912 commit f234661

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,10 @@
103103
"@testing-library/user-event": "^14.5.2",
104104
"@typescript-eslint/eslint-plugin": "^8.0.0",
105105
"@typescript-eslint/parser": "^8.0.0",
106-
"@vitest/coverage-v8": "^2.0.2",
106+
"@vitest/coverage-v8": "^1.0.0 || ^2.0.2",
107107
"all-contributors-cli": "^6.26.1",
108108
"doctoc": "^2.2.1",
109+
"esbuild": "*",
109110
"eslint": "^8.57.0",
110111
"eslint-config-prettier": "^9.1.0",
111112
"eslint-config-standard": "^17.1.0",
@@ -123,10 +124,10 @@
123124
"prettier": "^3.3.3",
124125
"prettier-plugin-svelte": "^3.2.5",
125126
"svelte": "^3 || ^4 || ^5 || ^5.0.0-next.0",
126-
"svelte-check": "^4.0.4",
127+
"svelte-check": "^3.0.0 || ^4.0.4",
127128
"svelte-jester": "^5.0.0",
128129
"typescript": "^5.5.3",
129-
"vite": "^5.3.3",
130-
"vitest": "^2.0.2"
130+
"vite": "^4.0.0 || ^5.3.3",
131+
"vitest": "^1.0.0 || ^2.0.2"
131132
}
132133
}

scripts/install-dependencies

+8-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,11 @@ elif [[ "${svelte_version}" == "3" ]]; then
1515
npm install --no-save vite@4 vitest@1 @vitest/coverage-v8@1 @sveltejs/vite-plugin-svelte@2 svelte-check@3 svelte@3
1616
fi
1717

18-
npm ls --depth=0 svelte
18+
npm dedupe
19+
installed_version=$(npm ls --depth=0 --parseable svelte@${svelte_version})
20+
21+
if [[ -z "${installed_version}" ]]; then
22+
echo "Error: expected svelte@${svelte_version}"
23+
npm ls --depth=0 svelte
24+
exit 1
25+
fi

0 commit comments

Comments
 (0)