Skip to content

Commit 2c223dd

Browse files
committed
fix(client): copy package with version
1 parent 61d7ded commit 2c223dd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/core/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"build:ts": "run-p build:ts:*",
1919
"build:ts:cjs": "tsc --target es5 --outDir build/cjs --module commonjs",
2020
"build:ts:esm": "tsc --target es5 --outDir build/esm --module esnext",
21-
"build": "run-s build:{clean,ts}",
21+
"build:pkg": "ts-node src/make-pkg.ts > build/package.json",
22+
"build": "run-s build:{clean,ts,pkg}",
2223
"docs:clean": "rimraf docs",
2324
"docs:gen": "typedoc --out docs --module esnext --ignoreCompilerErrors --excludePrivate --excludeExternals --theme markdown --mode file --entrypoint Analytics --gitRevision master",
2425
"docs": "run-s docs:{clean,gen}",
@@ -33,6 +34,7 @@
3334
"jest": "^23.4.2",
3435
"jest-mock-console": "^0.4.0",
3536
"ts-jest": "^23.1.3",
37+
"ts-node": "^7.0.1",
3638
"tslint": "^5.11.0",
3739
"tslint-config-prettier": "^1.14.0",
3840
"tslint-plugin-prettier": "^2.0.0",

packages/core/src/make-pkg.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const { version } = require('../package.json')
2+
3+
console.log(JSON.stringify({ version }))

0 commit comments

Comments
 (0)