Skip to content

Commit b4670aa

Browse files
committed
feat!: add first implementation
1 parent 82c8ad1 commit b4670aa

File tree

12 files changed

+2938
-1
lines changed

12 files changed

+2938
-1
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: ci
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
- next
8+
paths-ignore:
9+
- "**.md"
10+
push:
11+
branches:
12+
- main
13+
- next
14+
paths-ignore:
15+
- "**.md"
16+
17+
jobs:
18+
check:
19+
runs-on: ubuntu-latest
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
node:
24+
- 18
25+
- 20
26+
- lts/*
27+
- current
28+
steps:
29+
- uses: actions/checkout@v3
30+
- uses: actions/setup-node@v3
31+
with:
32+
cache: npm
33+
node-version: ${{ env.node }}
34+
- run: npm ci
35+
- run: npm audit signatures
36+
- run: npm run typecheck
37+
- run: npm run build

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,16 @@
99
**/*.tgz
1010
**/*.war
1111
**/*.zip
12+
13+
**/.gradle/
14+
**/.idea/
15+
**/.vscode/
16+
17+
**/*.cache
18+
**/*.eslintcache
19+
**/*.tsbuildinfo
20+
21+
**/.vite/
22+
**/.vitest/
23+
**/dist/
24+
**/node_modules/

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v20

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# vite-plugin-typescript-transform
2-
Applies the typescript compiler during vite's transform build phase.
2+
Applies the typescript compiler during vite transform build phase.

build.config.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { defineBuildConfig } from 'unbuild';
2+
3+
export default defineBuildConfig({
4+
declaration: true,
5+
clean: true,
6+
entries: [
7+
'./src/index',
8+
],
9+
externals: [
10+
'typescript',
11+
'vite'
12+
],
13+
failOnWarn: true,
14+
name: 'vite-plugin-typescript-transform',
15+
outDir: 'dist',
16+
rollup: {
17+
emitCJS: true,
18+
esbuild: {
19+
target: 'node14'
20+
},
21+
inlineDependencies: true,
22+
},
23+
});

0 commit comments

Comments
 (0)