@naturalcycles/dev-lib 13.28.1 → 13.28.2

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/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
1
  export * from './cmd/build-prod.command';
2
- export * from './util/buildInfo.model';
3
2
  export * from './util/buildInfo.util';
4
3
  export * from './util/git.util';
package/dist/index.js CHANGED
@@ -2,6 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./cmd/build-prod.command"), exports);
5
- tslib_1.__exportStar(require("./util/buildInfo.model"), exports);
6
5
  tslib_1.__exportStar(require("./util/buildInfo.util"), exports);
7
6
  tslib_1.__exportStar(require("./util/git.util"), exports);
@@ -1,2 +1,2 @@
1
- import type { BuildInfo } from './buildInfo.model';
1
+ import { BuildInfo } from '@naturalcycles/js-lib';
2
2
  export declare function generateBuildInfo(): BuildInfo;
@@ -13,7 +13,7 @@ function generateBuildInfo() {
13
13
  const repoName = (0, git_util_1.gitCurrentRepoName)();
14
14
  const tsCommit = (0, git_util_1.gitCurrentCommitTimestamp)();
15
15
  const ver = [now.toStringCompact(), repoName, branchName, rev].join('_');
16
- return {
16
+ return (0, js_lib_1._filterUndefinedValues)({
17
17
  ts,
18
18
  tsCommit,
19
19
  tsStr,
@@ -22,6 +22,6 @@ function generateBuildInfo() {
22
22
  rev,
23
23
  ver,
24
24
  env: APP_ENV,
25
- };
25
+ });
26
26
  }
27
27
  exports.generateBuildInfo = generateBuildInfo;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
- "version": "13.28.1",
3
+ "version": "13.28.2",
4
4
  "scripts": {
5
5
  "prepare": "husky install",
6
6
  "tsn-debug": "tsn testScript.ts",
@@ -1,40 +0,0 @@
1
- import { UnixTimestampNumber } from '@naturalcycles/js-lib';
2
- export interface BuildInfo {
3
- /**
4
- * Unix timestamp of when the build was made.
5
- */
6
- ts: UnixTimestampNumber;
7
- /**
8
- * Unix timestamp of commit ("committer date", not "author date")
9
- */
10
- tsCommit: UnixTimestampNumber;
11
- /**
12
- * Human-readable time of the build. E.g:
13
- * 2019-06-21 18:35:19
14
- */
15
- tsStr: string;
16
- repoName: string;
17
- branchName: string;
18
- /**
19
- * GIT sha revision (first 7 characters)
20
- */
21
- rev: string;
22
- /**
23
- * "Version string" in the following format:
24
- * yyyyMMdd_HHmm_$repoName_$branch_$rev
25
- *
26
- * E.g:
27
- * 20190419_1728_myrepo_master_21aecf5
28
- */
29
- ver: string;
30
- /**
31
- * Build during development.
32
- */
33
- dev?: boolean;
34
- /**
35
- * Build "environment".
36
- * Normally taken from process.env.APP_ENV
37
- * Can be undefined.
38
- */
39
- env?: string;
40
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });