File tree Expand file tree Collapse file tree 3 files changed +16
-12
lines changed Expand file tree Collapse file tree 3 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -45,10 +45,10 @@ jobs:
4545 token : ${{ secrets.SURGE_TOKEN }}
4646
4747 - name : Build
48- run : npm run lib: build
48+ run : npm run build:lib
4949
5050 - name : Typings
51- run : npm run lib: types
51+ run : npm run types:lib
5252
5353 - name : Release
5454 run : npx semantic-release
Original file line number Diff line number Diff line change 44 "author" : " Bart Ledoux <ledouxb@me.com>" ,
55 "scripts" : {
66 "serve" : " vite serve" ,
7- "lib:build " : " vite build --config ./vite.config.lib.ts " ,
8- "lib:types " : " vue-tsc --declaration --emitDeclarationOnly --project ./tsconfig. lib.json " ,
9- "types:check " : " vue-tsc --project ./tsconfig.app .json" ,
7+ "types " : " vue-tsc --project ./tsconfig.app.json " ,
8+ "build:lib " : " vite build --config ./vite.config. lib.ts " ,
9+ "types:lib " : " vue-tsc --declaration --emitDeclarationOnly -- project ./tsconfig.lib .json" ,
1010 "build:demo" : " vite build" ,
1111 "start" : " vite serve" ,
1212 "preview" : " vite preview --port 4173" ,
Original file line number Diff line number Diff line change 1- import { highlight as prismHighlight , languages } from "prismjs" ;
1+ // NOTE: this weird way of importing prism is necessary because
2+ // prism is not a ESM ready library
3+ import pkg from "prismjs" ;
4+ const { highlight : prismHighlight , languages } = pkg ;
5+
6+ import "prismjs/components/prism-clike.js" ;
7+ import "prismjs/components/prism-markup.js" ;
8+ import "prismjs/components/prism-javascript.js" ;
9+ import "prismjs/components/prism-typescript.js" ;
10+ import "prismjs/components/prism-jsx.js" ;
11+ import "prismjs/components/prism-css.js" ;
212
3- import "prismjs/components/prism-clike" ;
4- import "prismjs/components/prism-markup" ;
5- import "prismjs/components/prism-javascript" ;
6- import "prismjs/components/prism-typescript" ;
7- import "prismjs/components/prism-jsx" ;
8- import "prismjs/components/prism-css" ;
913import getScript from "./getScript" ;
1014import { parseComponent } from "vue-inbrowser-compiler-sucrase" ;
1115
You can’t perform that action at this time.
0 commit comments