@temir.ra/create-ts-lib 0.2.7-pre.1 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -1
- package/buildinfo.txt +1 -1
- package/package.json +1 -1
- package/template/scripts/buildinfo.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
# Version 0
|
|
2
2
|
|
|
3
|
-
## 0.2.7
|
|
3
|
+
## 0.2.7
|
|
4
4
|
|
|
5
5
|
1. Changed `filter` property in `cdnRewritePlugin` in `scripts/build-lib-bundle.ts` to take import identifiers into account that do not have file extensions.
|
|
6
|
+
2. Changed `buildinfo.txt` generation in `scripts/buildinfo.ts` to read the version from `package.json` instead of relying on the `npm_package_version` environment variable. Enables correct version capture in monorepo setups.
|
|
6
7
|
|
|
7
8
|
## 0.2.6
|
|
8
9
|
|
package/buildinfo.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.7
|
|
1
|
+
0.2.7+c91c3c0
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { execSync } from 'child_process';
|
|
2
|
-
import { writeFileSync } from 'fs';
|
|
2
|
+
import { readFileSync, writeFileSync } from 'fs';
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
const BUILD_INFO_FILE = 'buildinfo.txt';
|
|
6
6
|
const GIT_COMMAND = 'git rev-parse --short HEAD';
|
|
7
7
|
|
|
8
|
-
const version =
|
|
8
|
+
const { version } = JSON.parse(readFileSync('package.json', 'utf-8'));
|
|
9
9
|
|
|
10
10
|
let gitHash = '';
|
|
11
11
|
try {
|