Skip to content

Commit 24ae093

Browse files
authored
Update dependencies (#44)
* update husky@6 * update to vite 2.3 and esbuild 0.11, update other dependencies * handle test paths correctly on windows, improve exception handling in test setup * remove stylelint to get rid of postcss7 * fix lint scripts * bump vite to 2.3.1 * override trim dependency version of remark-parse to fix audit error * ci: prune pnpm store on lockfile change * update dependencies again (test pruning in ci) * update kit playground * another round of updates, exlucing esbuild and jest * update to jest27 * update to vite 2.3.5 and esbuild 0.12 * update vite to 2.3.6 and force vite version to workspace version for all packages * chore: update subdependencies * chore: update @sveltejs/kit and @sveltejs/adapter-* to greatest available version in update-deps script as ncu currently does not pick up -next * increase hmr update timeout on windows CI * increase global timeout for win on CI and try more often instead of waiting longer * add screenshot and log output to tests * another stab at fixing windows CI. change file content on retrys by adding empty newlines * update deps * wait for vite WS connection in beforeAll of dev tests * update changeset * update engines and remove unused devDependencies
1 parent 93ca647 commit 24ae093

File tree

30 files changed

+1680
-2931
lines changed

30 files changed

+1680
-2931
lines changed

.changeset/calm-buses-cheat.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/vite-plugin-svelte': patch
3+
---
4+
5+
update to esbuild 0.12 and vite 2.3.6

.changeset/gorgeous-monkeys-brake.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/vite-plugin-svelte': patch
3+
---
4+
5+
update engines.node to "^12.20 || ^14.13.1 || >= 16"

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ jobs:
5555
- name: install
5656
if: steps.pnpm-store.outputs.cache-hit != 'true'
5757
run: pnpm install --frozen-lockfile --prefer-offline --ignore-scripts
58+
- name: prune store
59+
if: steps.pnpm-store.outputs.cache-hit != 'true'
60+
run: pnpm store prune
5861
- name: check store
5962
if: steps.pnpm-store.outputs.cache-hit != 'true'
6063
run: pnpm store status

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
node_modules
33
dist
44
dist-ssr
5+
build
56
TODOs.md
67
*.log
78
temp
@@ -15,6 +16,7 @@ packages/**/package-lock.json
1516
packages/**/yarn.lock
1617
packages/**/dist
1718
packages/**/dist-ssr
19+
packages/**/build
1820
packages/**/node_modules
1921
temp/**/*
2022
.pnpm-store

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
pnpx --no-install lint-staged

.ncurc.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
module.exports = {
2-
packageFile: ['package.json', 'packages/**/package.json'],
3-
reject: ['husky', 'esbuild', 'slash']
2+
packageFile: ['package.json', 'packages/**/package.json']
43
};

.pnpmfile.cjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const viteVersion = require('./package.json').devDependencies.vite;
12
function readPackage(pkg) {
23
for (const section of [
34
'dependencies',
@@ -9,6 +10,10 @@ function readPackage(pkg) {
910
if (pkg[section]['@sveltejs/vite-plugin-svelte']) {
1011
pkg[section]['@sveltejs/vite-plugin-svelte'] = 'workspace:*';
1112
}
13+
// enforce use of workspace vite
14+
if(pkg[section]['vite']) {
15+
pkg[section]['vite'] = viteVersion;
16+
}
1217
}
1318
return pkg;
1419
}

.stylelintrc.json

Lines changed: 0 additions & 19 deletions
This file was deleted.

jest.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
const isBuildTest = !!process.env.VITE_TEST_BUILD;
2+
const isWin = process.platform === 'win32';
3+
const isCI = !!process.env.CI;
24
module.exports = {
35
preset: 'ts-jest',
46
testMatch: process.env.VITE_TEST_BUILD
57
? ['**/playground/**/*.spec.[jt]s?(x)']
68
: ['**/*.spec.[jt]s?(x)'],
7-
testTimeout: process.env.CI ? 30000 : 10000,
9+
testTimeout: isCI ? (isWin ? 45000 : 30000) : 10000,
810
globalSetup: './scripts/jestGlobalSetup.js',
911
globalTeardown: './scripts/jestGlobalTeardown.js',
1012
testEnvironment: './scripts/jestEnv.js',

0 commit comments

Comments
 (0)