File tree Expand file tree Collapse file tree 2 files changed +407
-0
lines changed Expand file tree Collapse file tree 2 files changed +407
-0
lines changed Original file line number Diff line number Diff line change 36
36
"build-preview" : " vite build -c vite.preview.config.ts" ,
37
37
"format" : " prettier --write ." ,
38
38
"release" : " bumpp -r" ,
39
+ "preinstall" : " npx only-allow pnpm" ,
40
+ "postinstall" : " simple-git-hooks" ,
39
41
"prepublishOnly" : " npm run build && npm run build-types"
40
42
},
43
+ "simple-git-hooks" : {
44
+ "pre-commit" : " pnpm exec lint-staged --concurrent false"
45
+ },
46
+ "lint-staged" : {
47
+ "*" : [
48
+ " prettier --write --cache --ignore-unknown"
49
+ ]
50
+ },
41
51
"repository" : {
42
52
"type" : " git" ,
43
53
"url" : " git+https://github.com/vuejs/repl.git"
63
73
"codemirror" : " ^5.65.13" ,
64
74
"fflate" : " ^0.8.0" ,
65
75
"hash-sum" : " ^2.0.0" ,
76
+ "lint-staged" : " ^13.2.3" ,
66
77
"monaco-editor-core" : " ^0.38.0" ,
67
78
"monaco-editor-textmate" : " ^4.0.0" ,
68
79
"monaco-textmate" : " ^3.0.1" ,
69
80
"monaco-volar" : " ^0.4.0" ,
70
81
"onigasm" : " ^2.2.5" ,
71
82
"path-browserify" : " ^1.0.1" ,
72
83
"prettier" : " ^2.8.8" ,
84
+ "simple-git-hooks" : " ^2.8.1" ,
73
85
"sucrase" : " ^3.32.0" ,
74
86
"typescript" : " ^5.1.3" ,
75
87
"vite" : " ^4.3.9" ,
You can’t perform that action at this time.
0 commit comments