@basemaps/cli 6.10.0 → 6.11.0
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
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [6.11.0](https://github.com/linz/basemaps/compare/v6.10.1...v6.11.0) (2021-10-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **cli:** correct path issues with ESM modules being bundled into docker containers ([#1888](https://github.com/linz/basemaps/issues/1888)) ([7c1b2f4](https://github.com/linz/basemaps/commit/7c1b2f4979956a09f63b461463bb43788ce0122c))
|
|
12
|
+
* **cli:** work around certificate issues ([#1890](https://github.com/linz/basemaps/issues/1890)) ([5e90775](https://github.com/linz/basemaps/commit/5e907752f0a195d6b6b976bb1bbf56895e6e18f7))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **server:** use the lambda handler directly ([#1870](https://github.com/linz/basemaps/issues/1870)) ([408ff56](https://github.com/linz/basemaps/commit/408ff5654cc04aae35d05eb5bbc47a51f99ec5b2))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
6
23
|
# [6.10.0](https://github.com/linz/basemaps/compare/v6.9.1...v6.10.0) (2021-09-22)
|
|
7
24
|
|
|
8
25
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.cli.d.ts","sourceRoot":"","sources":["../../src/cli/base.cli.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"base.cli.d.ts","sourceRoot":"","sources":["../../src/cli/base.cli.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,gCAAgC,CAAC;AAGxC,uCAAuC;AACvC,eAAO,MAAM,OAAO,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAKrE,CAAC;AAEF,uDAAuD;AACvD,eAAO,MAAM,KAAK,QAAc,CAAC;AAEjC,8BAAsB,eAAgB,SAAQ,iBAAiB;IAC7D,OAAO,gEAIJ;IACH,YAAY,gEAIT;IAEH,SAAS,CAAC,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAepC,SAAS,CAAC,kBAAkB,IAAI,IAAI;IAI7B,GAAG,IAAI,IAAI;CAUnB"}
|
package/build/cli/base.cli.js
CHANGED
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var _a, _b
|
|
2
|
+
var _a, _b;
|
|
3
3
|
import { LogConfig, LoggerFatalError } from '@basemaps/shared';
|
|
4
4
|
import { GitTag } from '@basemaps/shared/build/cli/git.tag.js';
|
|
5
5
|
import { CommandLineParser } from '@rushstack/ts-command-line';
|
|
6
|
-
import { readFileSync } from 'fs';
|
|
7
|
-
import path from 'path';
|
|
8
|
-
import { PrettyTransform } from 'pretty-json-log';
|
|
9
6
|
import 'source-map-support/register.js';
|
|
10
7
|
import * as ulid from 'ulid';
|
|
11
|
-
import url from 'url';
|
|
12
|
-
const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
|
|
13
|
-
const packageJson = JSON.parse(readFileSync(path.join(__dirname, '../../package.json')).toString());
|
|
14
8
|
/** Useful traceability information */
|
|
15
9
|
export const CliInfo = {
|
|
16
|
-
package
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
// Detect unlinked packages looks for this string since its a package name, slightly work around it
|
|
11
|
+
package: '@' + 'basemaps/cli',
|
|
12
|
+
version: (_a = process.env.GIT_VERSION) !== null && _a !== void 0 ? _a : GitTag().version,
|
|
13
|
+
hash: (_b = process.env.GIT_HASH) !== null && _b !== void 0 ? _b : GitTag().hash,
|
|
19
14
|
};
|
|
20
15
|
/** Unique Id for this instance of the cli being run */
|
|
21
16
|
export const CliId = ulid.ulid();
|
|
@@ -34,10 +29,6 @@ export class BaseCommandLine extends CommandLineParser {
|
|
|
34
29
|
});
|
|
35
30
|
}
|
|
36
31
|
onExecute() {
|
|
37
|
-
// If the console is a tty pretty print the output
|
|
38
|
-
if (process.stdout.isTTY) {
|
|
39
|
-
LogConfig.setOutputStream(PrettyTransform.stream());
|
|
40
|
-
}
|
|
41
32
|
if (this.verbose.value) {
|
|
42
33
|
LogConfig.get().level = 'debug';
|
|
43
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/basemaps/index.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/basemaps/index.ts"],"names":[],"mappings":";AACA,OAAO,gCAAgC,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAIjD,qBAAa,mBAAoB,SAAQ,eAAe;;CASvD"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { LogConfig } from '@basemaps/shared';
|
|
3
|
-
import { PrettyTransform } from 'pretty-json-log';
|
|
4
2
|
import 'source-map-support/register.js';
|
|
5
3
|
import { BaseCommandLine } from '../base.cli.js';
|
|
6
4
|
import { TileSetInvalidateAction } from './action.invalidate.js';
|
|
@@ -13,9 +11,6 @@ export class BasemapsCommandLine extends BaseCommandLine {
|
|
|
13
11
|
});
|
|
14
12
|
this.addAction(new TileSetInfoAction());
|
|
15
13
|
this.addAction(new TileSetInvalidateAction());
|
|
16
|
-
if (process.stdout.isTTY) {
|
|
17
|
-
LogConfig.setOutputStream(PrettyTransform.stream());
|
|
18
|
-
}
|
|
19
14
|
}
|
|
20
15
|
}
|
|
21
16
|
new BasemapsCommandLine().run();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basemaps/cli",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.11.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@basemaps/config": "^6.10.0",
|
|
42
42
|
"@basemaps/geo": "^6.10.0",
|
|
43
|
-
"@basemaps/shared": "^6.
|
|
43
|
+
"@basemaps/shared": "^6.11.0",
|
|
44
44
|
"@chunkd/fs": "^7.3.1",
|
|
45
45
|
"@cogeotiff/core": "^6.0.2",
|
|
46
46
|
"@linzjs/geojson": "^6.10.0",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"files": [
|
|
61
61
|
"build/"
|
|
62
62
|
],
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "e15ab34277b74a70a2b37ecf950e58ca6ba8a843"
|
|
64
64
|
}
|