File tree Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "buildCommand " : " build :ci" ,
2
+ "installCommand " : " install :ci" ,
3
3
"node" : " 18"
4
4
}
Original file line number Diff line number Diff line change 4
4
"private" : false ,
5
5
"version" : " 0.4.14" ,
6
6
"type" : " module" ,
7
- "files" : [
8
- " ./dist"
9
- ],
7
+ "files" : [" ./dist" ],
10
8
"main" : " ./dist/index.js" ,
11
9
"module" : " ./dist/index.js" ,
12
10
"exports" : {
58
56
"access" : " public"
59
57
},
60
58
"scripts" : {
59
+ "install:ci" : " npm ci && ./scripts/pre-ci.sh" ,
61
60
"update-hooks" : " simple-git-hooks" ,
62
61
"changeset" : " changeset" ,
63
62
"bump" : " changeset version 2>/dev/null | grep . && npm i; exit 0" ,
75
74
"nocheck-chevrotain-types" : " tsx ./scripts/nocheck-chevrotain-types.ts" ,
76
75
"copy" : " copy-files-from-to" ,
77
76
"postbuild" : " tsc --project ./tsconfig.production.json && conc \" npm:add-glob-import-types\" \" npm:nocheck-chevrotain-types\" \" npm:copy\" " ,
78
- "prebuild:ci" : " npm run type-check" ,
79
- "build:ci" : " vite build" ,
80
- "postbuild:ci" : " npm run postbuild" ,
81
77
"test" : " vitest" ,
82
78
"test:ui" : " vitest --ui" ,
83
79
"preview" : " vite preview" ,
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ curl -L https://github.com/jqlang/jq/releases/latest/download/jq-linux-amd64 -o jq
4
+ chmod a+x jq
5
+
6
+ BIOME_VERSION=$( npm -j ls | ./jq -r ' .dependencies["@biomejs/biome"].version' )
7
+ npm i -DE biome-cli-codesandbox@$BIOME_VERSION
8
+
9
+ npm pkg set scripts.lint=" BIOME_BINARY=biome-cli-codesandbox/biome $( npm pkg get scripts.lint | ./jq -r) "
10
+ npm pkg set scripts[' format:biome' ]=" BIOME_BINARY=biome-cli-codesandbox/biome $( npm pkg get scripts[' format:biome' ] | ./jq -r) "
11
+ npm pkg set scripts[' check:biome' ]=" BIOME_BINARY=biome-cli-codesandbox/biome $( npm pkg get scripts[' check:biome' ] | ./jq -r) "
12
+
13
+ rm jq
You can’t perform that action at this time.
0 commit comments