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+ import { readFileSync } from "node:fs" ;
2+ import { fileURLToPath } from "node:url" ;
3+ import { dirname , join } from "node:path" ;
4+
15import resolve from "@rollup/plugin-node-resolve" ;
26import commonjs from "@rollup/plugin-commonjs" ;
37import typescript from "@rollup/plugin-typescript" ;
48import license from "rollup-plugin-license" ;
59import git from "git-rev-sync" ;
610
11+ const __filename = fileURLToPath ( import . meta. url ) ;
12+ const __dirname = dirname ( __filename ) ;
13+
14+ const packageJson = JSON . parse ( readFileSync ( join ( __dirname , "package.json" ) , "utf-8" ) ) ;
15+
716const outro = `
817export const __info__ = {
918 date: '${ new Date ( ) . toISOString ( ) } ',
1019 hash: '${ git . short ( ) } ',
1120 url: 'https://github.com/odoo/sfu',
21+ version: '${ packageJson . version } ',
1222};
1323` ;
1424
You can’t perform that action at this time.
0 commit comments