1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/build/set_npm_version.ts
Jari Kolehmainen b7e955a387 npm package publish preparations
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-10-26 22:36:18 +02:00

10 lines
362 B
TypeScript

import * as fs from "fs"
import * as path from "path"
import packageInfo from "../src/extensions/npm/extensions/package.json"
import appInfo from "../package.json"
const packagePath = path.join(__dirname, "../src/extensions/npm/extensions/package.json")
packageInfo.version = appInfo.version
fs.writeFileSync(packagePath, JSON.stringify(packageInfo, null, 2))