@platforma-sdk/block-tools 2.11.2 → 2.11.3

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.
Files changed (48) hide show
  1. package/bin/run.js +9 -5
  2. package/dist/cli.d.ts +3 -0
  3. package/dist/cli.js +12 -12
  4. package/dist/cli.js.map +1 -1
  5. package/dist/cli.mjs +740 -930
  6. package/dist/cli.mjs.map +1 -1
  7. package/dist/cmd/build-meta.d.ts +2 -9
  8. package/dist/cmd/build-model.d.ts +2 -10
  9. package/dist/cmd/list-overview-snapshots.d.ts +2 -9
  10. package/dist/cmd/mark-stable.d.ts +2 -13
  11. package/dist/cmd/pack.d.ts +2 -9
  12. package/dist/cmd/publish.d.ts +2 -12
  13. package/dist/cmd/refresh-registry.d.ts +2 -9
  14. package/dist/cmd/restore-overview-from-snapshot.d.ts +2 -10
  15. package/dist/cmd/structure/check.d.ts +2 -10
  16. package/dist/cmd/structure/init.d.ts +2 -18
  17. package/dist/cmd/structure/refresh.d.ts +10 -11
  18. package/dist/cmd/update-deps.d.ts +2 -6
  19. package/dist/cmd/upload-package-v1.d.ts +2 -14
  20. package/dist/config-DpfTzcgG.mjs.map +1 -1
  21. package/dist/config-xxVy3IQR.js.map +1 -1
  22. package/dist/registry_v1/config_schema.d.ts +7 -7
  23. package/dist/registry_v1/flags.d.ts +2 -4
  24. package/dist/structure/cli/run-structure.d.ts +1 -1
  25. package/dist/v2/registry/schema_public.d.ts +3600 -3600
  26. package/package.json +4 -19
  27. package/src/cli.test.ts +56 -0
  28. package/src/cli.ts +50 -0
  29. package/src/cmd/build-meta.ts +11 -22
  30. package/src/cmd/build-model.ts +16 -33
  31. package/src/cmd/list-overview-snapshots.ts +24 -28
  32. package/src/cmd/mark-stable.ts +35 -55
  33. package/src/cmd/pack.ts +11 -22
  34. package/src/cmd/publish.ts +35 -49
  35. package/src/cmd/refresh-registry.ts +22 -26
  36. package/src/cmd/restore-overview-from-snapshot.ts +24 -34
  37. package/src/cmd/structure/check.ts +19 -28
  38. package/src/cmd/structure/init.ts +40 -47
  39. package/src/cmd/structure/refresh.ts +45 -36
  40. package/src/cmd/update-deps.ts +22 -12
  41. package/src/cmd/upload-package-v1.ts +42 -60
  42. package/src/registry_v1/flags.ts +7 -7
  43. package/src/structure/cli/run-structure.ts +2 -2
  44. package/src/v2/model/content_conversion.ts +0 -1
  45. package/bin/dev.cmd +0 -3
  46. package/bin/dev.js +0 -6
  47. package/dist/cmd/index.d.ts +0 -28
  48. package/src/cmd/index.ts +0 -31
@@ -131,7 +131,6 @@ export function cpAbsoluteToRelative(
131
131
  const fileName = path.basename(value.file);
132
132
  const dst = path.resolve(dstFolder, fileName);
133
133
  fileAccumulator?.push(fileName);
134
- // eslint-disable-next-line n/no-unsupported-features/node-builtins
135
134
  await fsp.cp(value.file, dst);
136
135
  return { type: "relative", path: fileName };
137
136
  } else return value as Exclude<T, ContentAbsoluteFile>;
package/bin/dev.cmd DELETED
@@ -1,3 +0,0 @@
1
- @echo off
2
-
3
- node "%~dp0\dev" %*
package/bin/dev.js DELETED
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env node_modules/.bin/ts-node
2
- // eslint-disable-next-line node/shebang, unicorn/prefer-top-level-await
3
- (async () => {
4
- const oclif = await import("@oclif/core");
5
- await oclif.execute({ development: true, dir: __dirname });
6
- })();
@@ -1,28 +0,0 @@
1
- import { default as Cmd0 } from './build-meta';
2
- import { default as Cmd1 } from './build-model';
3
- import { default as Cmd3 } from './list-overview-snapshots';
4
- import { default as Cmd4 } from './mark-stable';
5
- import { default as Cmd5 } from './pack';
6
- import { default as Cmd6 } from './publish';
7
- import { default as Cmd7 } from './refresh-registry';
8
- import { default as Cmd8 } from './restore-overview-from-snapshot';
9
- import { default as Cmd9 } from './update-deps';
10
- import { default as Cmd10 } from './upload-package-v1';
11
- import { default as Cmd11 } from './structure/check';
12
- import { default as Cmd12 } from './structure/init';
13
- import { default as Cmd13 } from './structure/refresh';
14
- export declare const COMMANDS: {
15
- "build-meta": typeof Cmd0;
16
- "build-model": typeof Cmd1;
17
- "list-overview-snapshots": typeof Cmd3;
18
- "mark-stable": typeof Cmd4;
19
- pack: typeof Cmd5;
20
- publish: typeof Cmd6;
21
- "refresh-registry": typeof Cmd7;
22
- "restore-overview-from-snapshot": typeof Cmd8;
23
- "update-deps": typeof Cmd9;
24
- "upload-package-v1": typeof Cmd10;
25
- "structure:check": typeof Cmd11;
26
- "structure:init": typeof Cmd12;
27
- "structure:refresh": typeof Cmd13;
28
- };
package/src/cmd/index.ts DELETED
@@ -1,31 +0,0 @@
1
- // DO NOT EDIT. This file was generated by oclif-index utility.
2
-
3
- import Cmd0 from "./build-meta";
4
- import Cmd1 from "./build-model";
5
- import Cmd3 from "./list-overview-snapshots";
6
- import Cmd4 from "./mark-stable";
7
- import Cmd5 from "./pack";
8
- import Cmd6 from "./publish";
9
- import Cmd7 from "./refresh-registry";
10
- import Cmd8 from "./restore-overview-from-snapshot";
11
- import Cmd9 from "./update-deps";
12
- import Cmd10 from "./upload-package-v1";
13
- import Cmd11 from "./structure/check";
14
- import Cmd12 from "./structure/init";
15
- import Cmd13 from "./structure/refresh";
16
-
17
- export const COMMANDS = {
18
- "build-meta": Cmd0,
19
- "build-model": Cmd1,
20
- "list-overview-snapshots": Cmd3,
21
- "mark-stable": Cmd4,
22
- pack: Cmd5,
23
- publish: Cmd6,
24
- "refresh-registry": Cmd7,
25
- "restore-overview-from-snapshot": Cmd8,
26
- "update-deps": Cmd9,
27
- "upload-package-v1": Cmd10,
28
- "structure:check": Cmd11,
29
- "structure:init": Cmd12,
30
- "structure:refresh": Cmd13,
31
- };