File tree Expand file tree Collapse file tree 4 files changed +26
-3
lines changed Expand file tree Collapse file tree 4 files changed +26
-3
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "plugins" : [
3
+ [
4
+ " semantic-release-plugin-update-version-in-files" ,
5
+ {
6
+ "files" : [
7
+ " src/lib/version.ts" ,
8
+ " dist/main/lib/version.js" ,
9
+ " dist/main/lib/version.d.ts" ,
10
+ " dist/module/lib/version.js" ,
11
+ " dist/module/lib/version.d.ts"
12
+ ],
13
+ "placeholder" : " 0.0.0"
14
+ }
15
+ ],
16
+ " @semantic-release/commit-analyzer" ,
17
+ " @semantic-release/release-notes-generator" ,
18
+ " @semantic-release/github" ,
19
+ " @semantic-release/npm"
20
+ ]
21
+ }
Original file line number Diff line number Diff line change 23
23
"scripts" : {
24
24
"clean" : " rimraf dist docs" ,
25
25
"format" : " prettier --write \" {src,test}/**/*.ts\" " ,
26
- "build" : " run-s clean format build:*" ,
26
+ "build" : " genversion src/lib/version.ts --es6 && run-s clean format build:*" ,
27
27
"build:main" : " tsc -p tsconfig.json" ,
28
28
"build:module" : " tsc -p tsconfig.module.json" ,
29
29
"build:umd" : " webpack" ,
Original file line number Diff line number Diff line change 1
1
// constants.ts
2
-
3
- export const DEFAULT_HEADERS = { }
2
+ const { version } = require ( './version' )
3
+ export const DEFAULT_HEADERS = { 'X-Client-Info' : `supabase-js/ ${ version } ` }
Original file line number Diff line number Diff line change
1
+ // generated by genversion
2
+ export const version = '1.0.0'
You can’t perform that action at this time.
0 commit comments