@platforma-sdk/pl-cli 0.3.4 → 0.3.5

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/bin/run.mjs ADDED
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { run, handle, flush } from "@oclif/core";
4
+
5
+ // eslint-disable-next-line unicorn/prefer-top-level-await
6
+ run(process.argv.slice(2), import.meta.url)
7
+ .catch(async (error) => {
8
+ return handle(error);
9
+ })
10
+ .finally(async () => flush());
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@platforma-sdk/pl-cli",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "CLI for Platforma server state manipulation",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {
7
- "pl-cli": "./bin/run.js"
7
+ "pl-cli": "./bin/run.mjs"
8
8
  },
9
9
  "files": [
10
10
  "./bin/*",
@@ -23,8 +23,8 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@oclif/core": "^4.0.37",
26
- "@milaboratories/pl-client": "3.2.1",
27
- "@milaboratories/pl-middle-layer": "1.55.28"
26
+ "@milaboratories/pl-client": "3.2.2",
27
+ "@milaboratories/pl-middle-layer": "1.55.29"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/node": "~24.5.2",
@@ -33,10 +33,10 @@
33
33
  "vite": "^8.0.6",
34
34
  "vite-plugin-dts": "^4.5.3",
35
35
  "vitest": "^4.1.3",
36
- "@milaboratories/build-configs": "2.0.0",
37
- "@milaboratories/ts-builder": "1.3.2",
38
36
  "@milaboratories/oclif-index": "1.1.1",
39
- "@milaboratories/ts-configs": "1.2.3"
37
+ "@milaboratories/ts-builder": "1.3.2",
38
+ "@milaboratories/ts-configs": "1.2.3",
39
+ "@milaboratories/build-configs": "2.0.0"
40
40
  },
41
41
  "oclif": {
42
42
  "bin": "pl-cli",
package/bin/run.js DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- import { execute } from "@oclif/core";
4
- import { dirname } from "node:path";
5
- import { fileURLToPath } from "node:url";
6
-
7
- const __dirname = dirname(fileURLToPath(import.meta.url));
8
- await execute({ dir: __dirname });