Skip to content

Commit

Permalink
chore: revert to "@sveltejs/package": "2.3.0" as new versions release…
Browse files Browse the repository at this point in the history
… ts to npm
  • Loading branch information
orefalo committed Jun 18, 2024
1 parent 3660a85 commit 15dc53d
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 60 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/deploy-ghpages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ on: # rebuild gh-pages when doc change on master
- '!src/lib/**'
release:
types: [published]

workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: false

jobs:
build-and-deploy:
Expand Down
11 changes: 9 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,16 @@
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true
"**/Thumbs.db": true,
"node_modules": true,
".vscode": true,
".husky": true
},
"hide-files.files": [],
"hide-files.files": [
"node_modules",
".vscode",
".husky"
],
"files.eol": "\n",
"editor.insertSpaces": false,
"[typescript]": {
Expand Down
3 changes: 3 additions & 0 deletions KNOWN-ISSUES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Using @sveltejs/package > 2.3.0 will generate "ts" rather than transpiled outputs, resulting in ts files being pushed to npm.

For now it breaks Svelte preview REPL as it can't compile ts on the fly
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@
"@playwright/test": "^1.44.1",
"@sveltejs/adapter-static": "^3.0.2",
"@sveltejs/kit": "^2.5.16",
"@sveltejs/package": "^2.3.2",
"@sveltejs/package": "2.3.0",
"@sveltejs/vite-plugin-svelte": "^4.0.0-next.3",
"@types/eslint": "^8.56.10",
"@types/node": "^20.14.4",
"@types/node": "^20.14.5",
"@typescript-eslint/eslint-plugin": "^7.13.1",
"@typescript-eslint/parser": "^7.13.1",
"badge-maker": "^3.3.1",
Expand All @@ -69,7 +69,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-gitignore": "^0.1.0",
"eslint-plugin-svelte": "^2.40.0",
"globals": "^15.5.0",
"globals": "^15.6.0",
"highlight.js": "^11.9.0",
"husky": "^9.0.11",
"prettier": "^3.3.2",
Expand Down
86 changes: 43 additions & 43 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 1 addition & 12 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,6 @@ import adapter from '@sveltejs/adapter-static';
import { sveltePreprocess } from 'svelte-preprocess';
import path from 'path';

import { readPackageJSON } from './scripts/read-package-json.js';
const packageJson = readPackageJSON();

// IMPORTANTL if you update aliases, run `pnpm run dev` for the configuration to update (tsconfig.json)
const alias = {
$comp: path.resolve('./src/lib/comp')
};

// alias used by our vite plugin to resolve file, it's the pkg name!
// alias: package name -> src/lib
alias[packageJson.name] = path.resolve('.', 'src/lib');

/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: sveltePreprocess(),
Expand All @@ -24,6 +12,7 @@ const config = {
assets: 'docs',
fallback: '200.html'
}),
// IMPORTANT: if you update aliases, run `pnpm run dev` for the configuration to update (tsconfig.json)

alias: {
'svelte-virtuallists': path.resolve('.', 'src/lib'),
Expand Down

0 comments on commit 15dc53d

Please sign in to comment.