File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 1
1
import typescript from '@rollup/plugin-typescript'
2
+ import replace from '@rollup/plugin-replace'
2
3
import { readFileSync } from 'node:fs'
3
4
import { dirname } from 'node:path'
4
5
@@ -22,6 +23,9 @@ export default [
22
23
exclude : [ '**/__tests__/**' ] ,
23
24
tsconfig : './tsconfig.cjs.json' ,
24
25
} ) ,
26
+ replace ( {
27
+ __COREUI_VERSION__ : `v${ process . env . npm_package_version } `
28
+ } )
25
29
] ,
26
30
} ,
27
31
{
@@ -40,6 +44,9 @@ export default [
40
44
exclude : [ '**/__tests__/**' ] ,
41
45
tsconfig : './tsconfig.esm.json' ,
42
46
} ) ,
47
+ replace ( {
48
+ __COREUI_VERSION__ : `v${ process . env . npm_package_version } `
49
+ } )
43
50
] ,
44
51
} ,
45
52
{
@@ -57,6 +64,9 @@ export default [
57
64
exclude : [ '**/__tests__/**' ] ,
58
65
tsconfig : './tsconfig.umd.json' ,
59
66
} ) ,
67
+ replace ( {
68
+ __COREUI_VERSION__ : `v${ process . env . npm_package_version } `
69
+ } )
60
70
] ,
61
71
} ,
62
72
]
You can’t perform that action at this time.
0 commit comments