mirror of
https://github.com/BradNut/boredgame
synced 2025-09-08 17:40:22 +00:00
Updating dependencies and fixing to work with new svelte kit.
This commit is contained in:
parent
ce1f62311e
commit
8c0778f1fa
4 changed files with 1689 additions and 44 deletions
29
package.json
29
package.json
|
|
@ -14,24 +14,25 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@sveltejs/adapter-auto": "next",
|
"@sveltejs/adapter-auto": "next",
|
||||||
"@sveltejs/kit": "next",
|
"@sveltejs/kit": "next",
|
||||||
"@types/cookie": "^0.4.1",
|
"@types/cookie": "^0.5.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.10.1",
|
"@types/node": "^17.0.24",
|
||||||
"@typescript-eslint/parser": "^5.10.1",
|
"@typescript-eslint/eslint-plugin": "^5.19.0",
|
||||||
"eslint": "^7.32.0",
|
"@typescript-eslint/parser": "^5.19.0",
|
||||||
"eslint-config-prettier": "^8.3.0",
|
"eslint": "^8.13.0",
|
||||||
"eslint-plugin-svelte3": "^3.2.1",
|
"eslint-config-prettier": "^8.5.0",
|
||||||
"prettier": "^2.4.1",
|
"eslint-plugin-svelte3": "^3.4.1",
|
||||||
"prettier-plugin-svelte": "^2.4.0",
|
"prettier": "^2.6.2",
|
||||||
"svelte": "^3.44.0",
|
"prettier-plugin-svelte": "^2.7.0",
|
||||||
"svelte-check": "^2.2.6",
|
"svelte": "^3.47.0",
|
||||||
"svelte-preprocess": "^4.9.4",
|
"svelte-check": "^2.7.0",
|
||||||
|
"svelte-preprocess": "^4.10.6",
|
||||||
"tslib": "^2.3.1",
|
"tslib": "^2.3.1",
|
||||||
"typescript": "^4.4.3"
|
"typescript": "^4.6.3"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fontsource/fira-mono": "^4.5.0",
|
"@fontsource/fira-mono": "^4.5.7",
|
||||||
"@lukeed/uuid": "^2.0.0",
|
"@lukeed/uuid": "^2.0.0",
|
||||||
"cookie": "^0.4.1"
|
"cookie": "^0.5.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
1660
pnpm-lock.yaml
Normal file
1660
pnpm-lock.yaml
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1,5 +1,6 @@
|
||||||
import adapter from '@sveltejs/adapter-auto';
|
import adapter from '@sveltejs/adapter-auto';
|
||||||
import preprocess from 'svelte-preprocess';
|
import preprocess from 'svelte-preprocess';
|
||||||
|
import path from 'path';
|
||||||
|
|
||||||
/** @type {import('@sveltejs/kit').Config} */
|
/** @type {import('@sveltejs/kit').Config} */
|
||||||
const config = {
|
const config = {
|
||||||
|
|
@ -9,10 +10,13 @@ const config = {
|
||||||
|
|
||||||
kit: {
|
kit: {
|
||||||
adapter: adapter(),
|
adapter: adapter(),
|
||||||
|
vite: {
|
||||||
// hydrate the <div id="svelte"> element in src/app.html
|
resolve: {
|
||||||
target: '#svelte',
|
alias: {
|
||||||
|
$root: path.resolve('./src')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
// Override http methods in the Todo forms
|
// Override http methods in the Todo forms
|
||||||
methodOverride: {
|
methodOverride: {
|
||||||
allowed: ['PATCH', 'DELETE']
|
allowed: ['PATCH', 'DELETE']
|
||||||
|
|
|
||||||
|
|
@ -1,31 +1,11 @@
|
||||||
{
|
{
|
||||||
|
"extends": "./.svelte-kit/tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"moduleResolution": "node",
|
|
||||||
"module": "es2020",
|
|
||||||
"lib": ["es2020", "DOM"],
|
|
||||||
"target": "es2020",
|
|
||||||
/**
|
|
||||||
svelte-preprocess cannot figure out whether you have a value or a type, so tell TypeScript
|
|
||||||
to enforce using \`import type\` instead of \`import\` for Types.
|
|
||||||
*/
|
|
||||||
"importsNotUsedAsValues": "error",
|
|
||||||
"isolatedModules": true,
|
|
||||||
"resolveJsonModule": true,
|
|
||||||
/**
|
|
||||||
To have warnings/errors of the Svelte compiler at the correct position,
|
|
||||||
enable source maps by default.
|
|
||||||
*/
|
|
||||||
"sourceMap": true,
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"skipLibCheck": true,
|
|
||||||
"forceConsistentCasingInFileNames": true,
|
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"allowJs": true,
|
|
||||||
"checkJs": true,
|
|
||||||
"paths": {
|
"paths": {
|
||||||
"$lib": ["src/lib"],
|
"$root/*": [
|
||||||
"$lib/*": ["src/lib/*"]
|
"./src/*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.ts", "src/**/*.svelte"]
|
}
|
||||||
}
|
|
||||||
Loading…
Reference in a new issue