Skip to content

Commit 0cf9b01

Browse files
committed
fix: use dev version compiler Kingwl#26
1 parent 73f630d commit 0cf9b01

File tree

8 files changed

+24
-5
lines changed

8 files changed

+24
-5
lines changed

.github/workflows/gated.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,24 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v3
14-
- name: Use Node.js 16
15-
uses: actions/setup-node@v3
14+
- name: Use Node.js 18
15+
uses: actions/setup-node@v4
1616
with:
17-
node-version: 16
17+
node-version: 18.18.2
1818
- run: npm install -g pnpm
1919
- run: pnpm i
2020
- run: pnpm format:check
2121
- run: pnpm build
22+
- name: Commit dist if changed
23+
run: |
24+
git config user.name "github-actions[bot]"
25+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
26+
27+
git add dist
28+
29+
if git diff --cached --quiet; then
30+
echo "No changes in dist/"
31+
else
32+
git commit -m "chore: update dist [skip ci]"
33+
git push
34+
fi
File renamed without changes.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ typings/
8080

8181
# Nuxt.js build / generate output
8282
.nuxt
83-
dist
83+
#dist
8484

8585
# Gatsby files
8686
.cache/

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "monaco-volar",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "Vue support for monaco",
55
"main": "./dist/lib/index.js",
66
"types": "./dist/index.d.ts",

scripts/vite.lib.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ export default defineConfig({
1313
resolve: {
1414
alias: {
1515
path: "path-browserify",
16+
"@vue/compiler-dom": "@vue/compiler-dom/dist/compiler-dom.cjs.js",
17+
"@vue/compiler-core": "@vue/compiler-core/dist/compiler-core.cjs.js",
1618
},
1719
},
1820
build: {

scripts/vite.worker.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ export default defineConfig({
1313
resolve: {
1414
alias: {
1515
path: "path-browserify",
16+
"@vue/compiler-dom": "@vue/compiler-dom/dist/compiler-dom.cjs.js",
17+
"@vue/compiler-core": "@vue/compiler-core/dist/compiler-core.cjs.js",
1618
},
1719
},
1820
build: {

vite.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ export default defineConfig({
99
resolve: {
1010
alias: {
1111
path: "path-browserify",
12+
"@vue/compiler-dom": "@vue/compiler-dom/dist/compiler-dom.cjs.js",
13+
"@vue/compiler-core": "@vue/compiler-core/dist/compiler-core.cjs.js",
1214
},
1315
},
1416
build: {

0 commit comments

Comments
 (0)