File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ const main = async () => {
39
39
to : LOCAL_NODE_MODULES . map ( mod => `import(\`\${pathToFileURL(getProjectPath())}/node_modules/${ mod } \`)` ) ,
40
40
} ) ;
41
41
42
- const { devDependencies } = await readJSON ( 'package.json' ) ;
42
+ const { devDependencies, version } = await readJSON ( 'package.json' ) ;
43
43
const from = [ '__FIREBASE_FRAMEWORKS_VERSION__' ] ;
44
- const to = [ `file:// ${ process . cwd ( ) } ` ] ;
44
+ const to = [ version ] ;
45
45
for ( const [ dep , version ] of Object . entries < Record < string , string > > ( devDependencies ) ) {
46
46
from . push ( `__${ dep . toUpperCase ( ) . replace ( / [ ^ A - Z ] / g, '_' ) } _VERSION__` ) ;
47
47
to . push ( version as any ) ;
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ const run = async () => {
12
12
const path = join ( process . cwd ( ) , `${ name } -${ version } .tgz` ) ;
13
13
await replaceInFile ( {
14
14
files : 'dist/constants.js' ,
15
- from : / ^ e x p o r t s \. F I R E B A S E _ F R A M E W O R K S _ V E R S I O N = .* $ / gm,
16
- to : `exports. FIREBASE_FRAMEWORKS_VERSION = 'file:${ path } ';` ,
15
+ from : / ^ e x p o r t c o n s t F I R E B A S E _ F R A M E W O R K S _ V E R S I O N = .* $ / gm,
16
+ to : `export const FIREBASE_FRAMEWORKS_VERSION = 'file:${ path } ';` ,
17
17
} ) ;
18
18
await exec ( 'npm pack .' ) ;
19
19
const npmRoot = await exec ( 'npm -g root' ) ;
You can’t perform that action at this time.
0 commit comments