aranea-sdk-cli 0.5.0 → 0.5.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.js +40 -1
- package/package.json +3 -10
package/dist/index.js
CHANGED
|
@@ -13,8 +13,43 @@
|
|
|
13
13
|
* aranea-sdk schema get --type "aranea_ar-is04a"
|
|
14
14
|
* aranea-sdk register --type "aranea_ar-is04a" --mac "AABBCCDDEEFF" --dry-run
|
|
15
15
|
*/
|
|
16
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
19
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
20
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
21
|
+
}
|
|
22
|
+
Object.defineProperty(o, k2, desc);
|
|
23
|
+
}) : (function(o, m, k, k2) {
|
|
24
|
+
if (k2 === undefined) k2 = k;
|
|
25
|
+
o[k2] = m[k];
|
|
26
|
+
}));
|
|
27
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
28
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
29
|
+
}) : function(o, v) {
|
|
30
|
+
o["default"] = v;
|
|
31
|
+
});
|
|
32
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
33
|
+
var ownKeys = function(o) {
|
|
34
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
35
|
+
var ar = [];
|
|
36
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
37
|
+
return ar;
|
|
38
|
+
};
|
|
39
|
+
return ownKeys(o);
|
|
40
|
+
};
|
|
41
|
+
return function (mod) {
|
|
42
|
+
if (mod && mod.__esModule) return mod;
|
|
43
|
+
var result = {};
|
|
44
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
45
|
+
__setModuleDefault(result, mod);
|
|
46
|
+
return result;
|
|
47
|
+
};
|
|
48
|
+
})();
|
|
16
49
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
50
|
const commander_1 = require("commander");
|
|
51
|
+
const path = __importStar(require("path"));
|
|
52
|
+
const fs = __importStar(require("fs"));
|
|
18
53
|
const test_1 = require("./commands/test");
|
|
19
54
|
const simulate_1 = require("./commands/simulate");
|
|
20
55
|
const validate_1 = require("./commands/validate");
|
|
@@ -28,11 +63,15 @@ const auth_1 = require("./commands/auth");
|
|
|
28
63
|
const backlog_1 = require("./commands/backlog");
|
|
29
64
|
const registry_1 = require("./commands/registry");
|
|
30
65
|
const control_1 = require("./commands/control");
|
|
66
|
+
// package.json からバージョンを動的に取得
|
|
67
|
+
const packageJsonPath = path.resolve(__dirname, '../package.json');
|
|
68
|
+
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
|
|
69
|
+
const CLI_VERSION = packageJson.version;
|
|
31
70
|
const program = new commander_1.Command();
|
|
32
71
|
program
|
|
33
72
|
.name('aranea-sdk')
|
|
34
73
|
.description('AraneaSDK CLI - デバイス開発支援ツール')
|
|
35
|
-
.version(
|
|
74
|
+
.version(CLI_VERSION);
|
|
36
75
|
// test コマンド
|
|
37
76
|
program.addCommand(test_1.testCommand);
|
|
38
77
|
// simulate コマンド
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aranea-sdk-cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "AraneaSDK CLI - ESP32 IoTデバイス開発支援ツール",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"axios": "^1.6.0",
|
|
46
46
|
"chalk": "^4.1.2",
|
|
47
47
|
"commander": "^12.0.0",
|
|
48
|
+
"firebase-admin": "^13.0.0",
|
|
48
49
|
"inquirer": "^8.2.6",
|
|
49
50
|
"node-fetch": "^2.7.0",
|
|
50
51
|
"ora": "^5.4.1"
|
|
@@ -59,15 +60,7 @@
|
|
|
59
60
|
"engines": {
|
|
60
61
|
"node": ">=18.0.0"
|
|
61
62
|
},
|
|
62
|
-
|
|
63
|
-
"firebase-admin": ">=11.0.0"
|
|
64
|
-
},
|
|
65
|
-
"peerDependenciesMeta": {
|
|
66
|
-
"firebase-admin": {
|
|
67
|
-
"optional": true
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
"publishConfig": {
|
|
63
|
+
"publishConfig": {
|
|
71
64
|
"access": "public"
|
|
72
65
|
}
|
|
73
66
|
}
|