-
-
Notifications
You must be signed in to change notification settings - Fork 5
Upgrade Svelte to v5. Replace Jest with Vitest. Upgrade other packages #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
7f82db2
25d0c97
b88a865
34bfbb1
bcd732b
f38d483
1ee6399
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| #!/bin/sh | ||
| . "$(dirname "$0")/_/husky.sh" | ||
|
|
||
| pnpx pretty-quick --staged && pnpx lint | ||
| pnpm pretty-quick --staged && pnpm run lint | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| import { defineConfig } from "eslint/config"; | ||
|
|
||
| export default defineConfig([ | ||
| { | ||
| languageOptions: { | ||
| parserOptions: { | ||
| ecmaVersion: "latest", | ||
| }, | ||
| }, | ||
| }, | ||
| ]); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,7 @@ | |
| "main": "lib/single-spa-svelte.js", | ||
| "scripts": { | ||
| "build": "rimraf lib && babel src/single-spa-svelte.js --out-file lib/single-spa-svelte.js --source-maps", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Babel is still being used here - why was the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My mistake, reverting
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. babel is still missing from devDependencies after the latest commits. I'd like to also change the package.json to use
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't have time to do so at the moment, so have to add it a later point. |
||
| "test": "cross-env BABEL_ENV=test jest", | ||
| "test": "vitest", | ||
| "lint": "eslint src", | ||
| "format": "prettier --write .", | ||
| "check-format": "prettier --check .", | ||
|
|
@@ -32,20 +32,14 @@ | |
| }, | ||
| "homepage": "https://github.com/single-spa/single-spa-svelte#readme", | ||
| "devDependencies": { | ||
| "@babel/cli": "^7.13.16", | ||
| "@babel/core": "^7.14.2", | ||
| "@babel/eslint-parser": "^7.14.2", | ||
| "@babel/preset-env": "^7.14.2", | ||
| "@types/jest": "^26.0.23", | ||
| "babel-jest": "^26.6.3", | ||
| "cross-env": "^7.0.3", | ||
| "eslint": "^7.26.0", | ||
| "eslint-config-important-stuff": "^1.1.0", | ||
| "husky": "^6.0.0", | ||
| "jest": "^26.6.3", | ||
| "jest-cli": "^26.6.3", | ||
| "prettier": "^2.3.0", | ||
| "pretty-quick": "^3.1.0", | ||
| "rimraf": "^3.0.2" | ||
| "@sveltejs/vite-plugin-svelte": "^5.1.0", | ||
| "eslint": "^9.30.1", | ||
| "husky": "^9.1.7", | ||
| "prettier": "^3.6.2", | ||
| "pretty-quick": "^4.2.2", | ||
| "rimraf": "^6.0.1", | ||
| "svelte": "^5.35.1", | ||
| "vite": "^6.3.5", | ||
| "vitest": "^3.2.4" | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.