Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
name: CI
on: pull_request
permissions:
contents: read # to fetch code (actions/checkout)

jobs:
test:
permissions: {}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: "20.x"
node-version: "18.x"
cache: pnpm

# Get projects set up
Expand All @@ -27,15 +24,14 @@ jobs:
CI: true

test-svelte5:
permissions: {}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: "20.x"
node-version: "18.x"
cache: pnpm

# Lets us use one-liner JSON manipulations the package.json files
Expand All @@ -53,15 +49,14 @@ jobs:
CI: true

lint:
permissions: {}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: "20.x"
node-version: "18.x"
cache: pnpm

# Get projects set up
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/DeployExtensionsProd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,16 @@ on:
tags:
- "extensions-*"

permissions: {}

jobs:
deploy:
# prevents this action from running on forks
if: github.repository == 'sveltejs/language-tools'
permissions:
contents: write # to create release (adjust package.json etc)
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: "22.x"
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
cache: pnpm

Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/DeploySvelte2tsxProd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Tagged Production Deploys for svelte2tsx

on:
push:
tags:
- "svelte2tsx-*"

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
cache: pnpm

# Ensure everything is compiling
- run: "pnpm install"
- run: "pnpm build"

# Lets us use one-liner JSON manipulations the package.json files
- run: "npm install -g json"

# Setup the environment
- run: 'json -I -f packages/svelte2tsx/package.json -e "this.version=\`${{ github.ref }}\`.split(\`-\`).pop()"'

# Ship it
- run: |
cd packages/svelte2tsx
pnpm install
pnpm publish --no-git-checks

env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
39 changes: 39 additions & 0 deletions .github/workflows/DeploySvelteCheckProd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Tagged Production Deploys for svelte-check

on:
push:
tags:
- "svelte-check-*"

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
cache: pnpm

# Ensure everything is compiling
- run: "pnpm install"
- run: "pnpm build"
- run: "pnpm bootstrap"

# Lets us use one-liner JSON manipulations the package.json files
- run: "npm install -g json"

# Setup the environment
- run: 'json -I -f packages/svelte-check/package.json -e "this.version=\`${{ github.ref }}\`.split(\`-\`).pop()"'

# Ship it
- run: |
cd packages/svelte-check
pnpm install
pnpm publish --no-git-checks

env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
38 changes: 38 additions & 0 deletions .github/workflows/DeploySvelteLanguageServerProd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Tagged Production Deploys For svelte-language-server

on:
push:
tags:
- "language-server-*"

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
cache: pnpm

# Ensure everything is compiling
- run: "pnpm install"
- run: "pnpm build"

# Lets us use one-liner JSON manipulations the package.json files
- run: "npm install -g json"

# Setup the environment
- run: 'json -I -f packages/language-server/package.json -e "this.version=\`${{ github.ref }}\`.split(\`-\`).pop()"'

# Ship it
- run: |
cd packages/language-server
pnpm install
pnpm publish --no-git-checks

env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
38 changes: 38 additions & 0 deletions .github/workflows/DeployTypescriptPluginProd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Tagged Production Deploys for typescript-svelte-plugin

on:
push:
tags:
- "typescript-plugin-*"

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
cache: pnpm

# Ensure everything is compiling
- run: "pnpm install"
- run: "pnpm build"

# Lets us use one-liner JSON manipulations the package.json files
- run: "npm install -g json"

# Setup the environment
- run: 'json -I -f packages/typescript-plugin/package.json -e "this.version=\`${{ github.ref }}\`.split(\`-\`).pop()"'

# Ship it
- run: |
cd packages/typescript-plugin
pnpm install
pnpm publish --no-git-checks

env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
43 changes: 0 additions & 43 deletions .github/workflows/release.yml

This file was deleted.

7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,15 @@ typings/
.cache

# tdsx
dist
out
*.tsbuildinfo

# VSCode history extension
.history

# syntaxes
postcss.json
svelte.tmLanguage.json

# Ignore AI artifacts
.crush/
3 changes: 2 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
resolution-mode=highest
resolution-mode=highest
link-workspace-packages=true
4 changes: 0 additions & 4 deletions packages/language-server/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions packages/language-server/.npmignore

This file was deleted.

13 changes: 8 additions & 5 deletions packages/language-server/bin/server.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#! /usr/bin/env node

const { startServer } = require('../dist/src/server');

startServer();
#!/usr/bin/env node
if (process.argv.includes('--version')) {
const pkgJSON = require('../package.json');
console.log(`${pkgJSON['version']}`);
}
else {
require('../out/index.js');
}
Loading