Skip to content

Commit 5b58e3a

Browse files
Bump Rollup
1 parent 7416a14 commit 5b58e3a

File tree

11 files changed

+487
-541
lines changed

11 files changed

+487
-541
lines changed

package-lock.json

Lines changed: 464 additions & 519 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,29 @@
1010
"validate": "svelte-check"
1111
},
1212
"devDependencies": {
13-
"@rollup/plugin-commonjs": "24.0.1",
14-
"@rollup/plugin-json": "6.0.0",
15-
"@rollup/plugin-node-resolve": "15.0.1",
16-
"@rollup/plugin-typescript": "11.0.0",
17-
"@tsconfig/svelte": "3.0.0",
13+
"@rollup/plugin-commonjs": "25.0.7",
14+
"@rollup/plugin-json": "6.1.0",
15+
"@rollup/plugin-node-resolve": "15.2.3",
16+
"@rollup/plugin-typescript": "11.1.5",
17+
"@rollup/plugin-terser": "0.4.4",
18+
"@tsconfig/svelte": "5.0.2",
1819
"@types/human-date": "^1.4.0",
1920
"autoprefixer": "10.4.13",
2021
"concurrently": "7.6.0",
2122
"cross-env": "7.0.3",
2223
"postcss": "8.4.21",
2324
"postcss-cli": "10.1.0",
24-
"rollup": "^2.35.1",
25-
"rollup-plugin-css-only": "^3.1.0",
26-
"rollup-plugin-livereload": "^2.0.0",
27-
"rollup-plugin-svelte": "^7.0.0",
28-
"rollup-plugin-terser": "^7.0.2",
25+
"rollup": "4.9.2",
26+
"rollup-plugin-css-only": "4.5.2",
27+
"rollup-plugin-livereload": "2.0.5",
28+
"rollup-plugin-svelte": "7.1.6",
2929
"sirv-cli": "2.0.2",
3030
"svelte": "4.2.8",
3131
"svelte-check": "3.6.2",
3232
"svelte-preprocess": "5.1.3",
3333
"tailwindcss": "3.2.7",
3434
"tslib": "2.5.0",
35-
"typescript": "4.9.5"
35+
"typescript": "5.3.3"
3636
},
3737
"dependencies": {
3838
"dexie": "3.2.3",

rollup.config.js renamed to rollup.config.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ import typescript from '@rollup/plugin-typescript';
55
import css from 'rollup-plugin-css-only';
66
import livereload from 'rollup-plugin-livereload';
77
import svelte from 'rollup-plugin-svelte';
8-
import { terser } from 'rollup-plugin-terser';
8+
import terser from '@rollup/plugin-terser';
99
import sveltePreprocess from 'svelte-preprocess';
1010
import tailwindcss from 'tailwindcss';
11+
import { spawn } from 'child_process'
1112

1213
const production = !process.env.ROLLUP_WATCH;
1314

@@ -21,7 +22,7 @@ function serve() {
2122
return {
2223
writeBundle() {
2324
if (server) return;
24-
server = require('child_process').spawn('npm', ['run', 'start', '--', '--dev', '--host'], {
25+
server = spawn('npm', ['run', 'start', '--', '--dev', '--host'], {
2526
stdio: ['ignore', 'inherit', 'inherit'],
2627
shell: true
2728
});

src/components/mountains/Grade.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script lang="ts">
2-
import { Route } from '../../stores/mountains'
2+
import { type Route } from '../../stores/mountains'
33
import {
4-
Level,
4+
type Level,
55
guessContext,
66
levelCalculator,
77
parseGrade,

src/components/mountains/MountainCard.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import { Mountain } from '../../stores/mountains'
2+
import { type Mountain } from '../../stores/mountains'
33
import { allRoutes, getPicture } from '../../utils/routes'
44
import Card from '../Card.svelte'
55

src/components/mountains/MountainsFilter.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts">
22
import fragment from '../../stores/fragment'
3-
import mountains, { Mountain } from '../../stores/mountains'
3+
import mountains, { type Mountain } from '../../stores/mountains'
44
import { allRoutes, getPicture } from '../../utils/routes'
55
import MountainCard from './MountainCard.svelte'
66
import SortyBy from '../SortyBy.svelte'

src/components/mountains/Pitches.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import { Pitch } from '../../stores/mountains'
2+
import type { Pitch } from '../../stores/mountains'
33
import TopoText from '../TopoText.svelte'
44
55
export let pitches: Pitch[];

src/components/mountains/RouteAttribution.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import { Route } from "../../stores/mountains"
2+
import { type Route } from "../../stores/mountains"
33
export let route: Route;
44
</script>
55

src/components/mountains/RouteInfo.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import { Route } from '../../stores/mountains'
2+
import { type Route } from '../../stores/mountains'
33
import { repeatString } from '../../utils/array'
44
import TopoText from '../TopoText.svelte'
55
import Pitches from './Pitches.svelte'

src/components/mountains/RoutesFilter.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts">
22
import fragment from '../../stores/fragment'
3-
import mountains, { Mountain, Route } from '../../stores/mountains'
3+
import mountains, { type Mountain, type Route } from '../../stores/mountains'
44
import { allRoutes } from '../../utils/routes'
55
import SortyBy from '../SortyBy.svelte'
66
import {

0 commit comments

Comments
 (0)