aeria-sdk 0.0.75 → 0.0.77

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/cli.js CHANGED
@@ -1,9 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const node_util_1 = require("node:util");
3
4
  const mirror_js_1 = require("./mirror.js");
4
5
  const utils_js_1 = require("./utils.js");
6
+ const { values: opts } = (0, node_util_1.parseArgs)({
7
+ options: {
8
+ dev: {
9
+ type: 'boolean',
10
+ short: 'd',
11
+ },
12
+ },
13
+ });
5
14
  const main = async () => {
6
15
  const config = await (0, utils_js_1.getConfig)();
16
+ if (opts.dev) {
17
+ config.environment = 'development';
18
+ }
7
19
  (0, mirror_js_1.mirrorRemotely)(config);
8
20
  };
9
21
  main();
package/dist/cli.mjs CHANGED
@@ -1,8 +1,20 @@
1
1
  "use strict";
2
+ import { parseArgs } from "node:util";
2
3
  import { mirrorRemotely } from "./mirror.mjs";
3
4
  import { getConfig } from "./utils.mjs";
5
+ const { values: opts } = parseArgs({
6
+ options: {
7
+ dev: {
8
+ type: "boolean",
9
+ short: "d"
10
+ }
11
+ }
12
+ });
4
13
  const main = async () => {
5
14
  const config = await getConfig();
15
+ if (opts.dev) {
16
+ config.environment = "development";
17
+ }
6
18
  mirrorRemotely(config);
7
19
  };
8
20
  main();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aeria-sdk",
3
- "version": "0.0.75",
3
+ "version": "0.0.77",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -60,8 +60,8 @@
60
60
  "@aeriajs/types": "link:../types"
61
61
  },
62
62
  "peerDependencies": {
63
- "@aeriajs/common": "^0.0.52",
64
- "@aeriajs/types": "^0.0.49"
63
+ "@aeriajs/common": "^0.0.54",
64
+ "@aeriajs/types": "^0.0.51"
65
65
  },
66
66
  "scripts": {
67
67
  "test": "echo skipping",