@jpmorganchase/mosaic-cli 0.1.0-beta.23 → 0.1.0-beta.25
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.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { program } from 'commander';
|
|
3
3
|
import path from 'node:path';
|
|
4
|
+
import { pathToFileURL } from 'node:url';
|
|
4
5
|
import serve from './serve.js';
|
|
5
6
|
import uploadS3Snapshot from './upload-s3-snapshot.js';
|
|
6
7
|
import build from './build.js';
|
|
@@ -18,7 +19,7 @@ if (program.args[0] === 'upload') {
|
|
|
18
19
|
}
|
|
19
20
|
else if (program.args[0] === 'build') {
|
|
20
21
|
if (options.config !== undefined) {
|
|
21
|
-
const config = await import(path.resolve(process.cwd(), options.config));
|
|
22
|
+
const config = await import(pathToFileURL(path.resolve(process.cwd(), options.config)).toString());
|
|
22
23
|
if (!config) {
|
|
23
24
|
throw new Error(`Could not find config file at ${path.resolve(process.cwd(), options.config)}.`);
|
|
24
25
|
}
|
|
@@ -27,7 +28,7 @@ else if (program.args[0] === 'build') {
|
|
|
27
28
|
}
|
|
28
29
|
else if (program.args[0] === 'serve') {
|
|
29
30
|
if (options.config !== undefined) {
|
|
30
|
-
const config = await import(path.resolve(process.cwd(), options.config));
|
|
31
|
+
const config = await import(pathToFileURL(path.resolve(process.cwd(), options.config)).toString());
|
|
31
32
|
if (!config) {
|
|
32
33
|
throw new Error(`Could not find config file at ${path.resolve(process.cwd(), options.config)}.`);
|
|
33
34
|
}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,IAAI,MAAM,WAA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AAM,EAAE;YACX,MAAM,IAAI,KAAK,CACb,iCAAiC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG,CAChF,CAAC;SACH;QACD,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,CAAC;KAC1E;CACF;KAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,OAAO,EAAE;IACtC,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS,EAAE;QAChC,MAAM,MAAM,GAAG,MAAM,MAAM,CACzB,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE,CACtE,CAAC;QACF,IAAI,CAAC,MAAM,EAAE;YACX,MAAM,IAAI,KAAK,CACb,iCAAiC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG,CAChF,CAAC;SACH;QACD,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;KAChF;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jpmorganchase/mosaic-cli",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.25",
|
|
4
4
|
"author": "",
|
|
5
5
|
"description": "Mosaic command line scripts",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,13 +29,14 @@
|
|
|
29
29
|
},
|
|
30
30
|
"repository": {
|
|
31
31
|
"type": "git",
|
|
32
|
-
"url": "git@github.com:jpmorganchase/mosaic.git"
|
|
32
|
+
"url": "git@github.com:jpmorganchase/mosaic.git",
|
|
33
|
+
"directory": "packages/cli"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
|
-
"@jpmorganchase/mosaic-types": "^0.1.0-beta.
|
|
36
|
+
"@jpmorganchase/mosaic-types": "^0.1.0-beta.25"
|
|
36
37
|
},
|
|
37
38
|
"dependencies": {
|
|
38
|
-
"@jpmorganchase/mosaic-core": "^0.1.0-beta.
|
|
39
|
+
"@jpmorganchase/mosaic-core": "^0.1.0-beta.25",
|
|
39
40
|
"@aws-sdk/client-s3": "^3.278.0",
|
|
40
41
|
"commander": "^9.4.1",
|
|
41
42
|
"cors": "^2.8.5",
|