Skip to content

Commit

Permalink
chore: update vscode build script
Browse files Browse the repository at this point in the history
- fix vsix-builder tsconfig to what it used to be
- deploy on ci/release branch
  • Loading branch information
astahmer committed Oct 30, 2023
1 parent a3147cc commit 7d1bc70
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ on:
paths:
- ".changeset/**"
- "packages/**"
- "extension/**"
branches:
- main
- ci/release

jobs:
release:
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
"build:shared": "pnpm --filter=../shared build",
"build:ts-plugin": "pnpm --filter=../ts-plugin build",
"build:all": "pnpm build:shared && pnpm build:lsp && pnpm build:ts-plugin",
"build": "tsup",
"build": "BUILD=1 tsup",
"dev": "tsup --watch src/index.ts --watch ../language-server/dist/index.js --watch ../shared/dist/index.js --watch ../ts-plugin/dist/index.js",
"clean": "rimraf dist node_modules",
"typecheck": "tsc --noEmit",
Expand Down
1 change: 0 additions & 1 deletion packages/vscode/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { defineConfig } from 'tsup'

export default defineConfig({
entry: ['src/index.ts', 'src/server.ts'],
watch: ['../language-server/src/**/*', '../ts-plugin/src/**/*', '../shared/src/**/*'],
format: ['cjs'],
external: ['vscode', 'esbuild'],
minify: true,
Expand Down
3 changes: 2 additions & 1 deletion packages/vsix-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"build": "tsup src/cli-*.ts src/index.ts --format=cjs --dts --shims --clean",
"build-fast": "tsup src/cli-*.ts src/index.ts --format=cjs --no-dts --shims",
"dev": "pnpm build-fast --watch",
"clean": "rimraf dist"
"clean": "rimraf dist",
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@types/mime": "^1",
Expand Down
4 changes: 3 additions & 1 deletion packages/vsix-builder/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"extends": "../../tsconfig.json",
"include": ["src", "index.ts", "../vscode/scripts/index.ts"],
"include": ["src"],
"exclude": ["node_modules"],
"compilerOptions": {
"noUncheckedIndexedAccess": false,
"tsBuildInfoFile": "node_modules/.cache/.tsbuildinfo"
}
}

0 comments on commit 7d1bc70

Please sign in to comment.