@xylabs/ts-scripts-yarn3 3.14.0 → 3.14.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.
Files changed (35) hide show
  1. package/dist/actions/package/compile/XyConfig.js.map +1 -1
  2. package/dist/bin/package/clean-outputs.js +6 -2
  3. package/dist/bin/package/clean-outputs.js.map +1 -1
  4. package/dist/bin/package/clean-outputs.mjs +6 -2
  5. package/dist/bin/package/clean-outputs.mjs.map +1 -1
  6. package/dist/bin/package/clean-typescript.js +6 -2
  7. package/dist/bin/package/clean-typescript.js.map +1 -1
  8. package/dist/bin/package/clean-typescript.mjs +6 -2
  9. package/dist/bin/package/clean-typescript.mjs.map +1 -1
  10. package/dist/bin/package/clean.js +6 -2
  11. package/dist/bin/package/clean.js.map +1 -1
  12. package/dist/bin/package/clean.mjs +6 -2
  13. package/dist/bin/package/clean.mjs.map +1 -1
  14. package/dist/bin/package/gen-docs.js +6 -2
  15. package/dist/bin/package/gen-docs.js.map +1 -1
  16. package/dist/bin/package/gen-docs.mjs +6 -2
  17. package/dist/bin/package/gen-docs.mjs.map +1 -1
  18. package/dist/bin/xy-ts.js +6 -2
  19. package/dist/bin/xy-ts.js.map +1 -1
  20. package/dist/bin/xy-ts.mjs +6 -2
  21. package/dist/bin/xy-ts.mjs.map +1 -1
  22. package/dist/bin/xy.js +6 -2
  23. package/dist/bin/xy.js.map +1 -1
  24. package/dist/bin/xy.mjs +6 -2
  25. package/dist/bin/xy.mjs.map +1 -1
  26. package/dist/index.d.mts +22 -2
  27. package/dist/index.d.ts +22 -2
  28. package/package.json +5 -6
  29. package/src/actions/package/compile/XyConfig.ts +21 -1
  30. package/src/bin/package/clean-outputs.ts +8 -3
  31. package/src/bin/package/clean-typescript.ts +8 -3
  32. package/src/bin/package/clean.ts +8 -3
  33. package/src/bin/package/gen-docs.ts +8 -3
  34. package/src/bin/xy-ts.ts +8 -3
  35. package/src/bin/xy.ts +8 -3
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/actions/package/compile/XyConfig.ts"],"sourcesContent":["import { Options } from 'tsup'\n\nexport type EntryMode = 'all' | 'single' | 'auto' | 'platform'\n\nexport type CompileMode = 'tsup' | 'tsc'\n\nexport interface LiveShareConfig {\n exclude?: string[]\n include?: string[]\n}\n\nexport interface CompileConfig {\n depth?: number\n /** @param entryMode all, single, platform, or auto */\n entryMode?: EntryMode\n /** @param files Manually specify the files to be compiled */\n files?: string[]\n mode?: CompileMode\n}\n\nexport type PackageCompileTsupConfig = CompileConfig & {\n browser?: Record<string, Options | boolean>\n mode?: 'tsup'\n neutral?: Record<string, Options | boolean>\n node?: Record<string, Options | boolean>\n tsup?: {\n options?: Options\n }\n}\n\nexport type PackageCompileTscConfig = CompileConfig & {\n mode: 'tsc'\n}\n\nexport interface XyConfigBase {\n compile?: CompileConfig\n liveShare?: LiveShareConfig\n publint?: boolean\n verbose?: boolean\n}\n\nexport interface XyTsupConfig extends XyConfigBase {\n compile?: PackageCompileTsupConfig\n}\n\nexport interface XyTscConfig extends XyConfigBase {\n compile?: PackageCompileTscConfig\n}\n\nexport type XyConfig = XyTsupConfig | XyTscConfig\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
1
+ {"version":3,"sources":["../../../../src/actions/package/compile/XyConfig.ts"],"sourcesContent":["import { Options } from 'tsup'\n\nexport type EntryMode = 'all' | 'single' | 'auto' | 'platform'\n\nexport type CompileMode = 'tsup' | 'tsc'\n\n/**\n * Configuration for specifying which paths are targeted.\n */\nexport interface PathConfig {\n /**\n * Glob patterns to exclude (takes precedence over include).\n */\n exclude?: string[]\n /**\n * Glob patterns to include.\n */\n include?: string[]\n}\n\n/**\n * Configuration for Dynamic Share.\n */\nexport interface DynamicShareConfig extends PathConfig {}\n\n/**\n * Configuration for Live Share.\n */\nexport interface LiveShareConfig extends PathConfig {}\n\nexport interface CompileConfig {\n depth?: number\n /** @param entryMode all, single, platform, or auto */\n entryMode?: EntryMode\n /** @param files Manually specify the files to be compiled */\n files?: string[]\n mode?: CompileMode\n}\n\nexport type PackageCompileTsupConfig = CompileConfig & {\n browser?: Record<string, Options | boolean>\n mode?: 'tsup'\n neutral?: Record<string, Options | boolean>\n node?: Record<string, Options | boolean>\n tsup?: {\n options?: Options\n }\n}\n\nexport type PackageCompileTscConfig = CompileConfig & {\n mode: 'tsc'\n}\n\nexport interface XyConfigBase {\n compile?: CompileConfig\n dynamicShare?: DynamicShareConfig\n liveShare?: LiveShareConfig\n publint?: boolean\n verbose?: boolean\n}\n\nexport interface XyTsupConfig extends XyConfigBase {\n compile?: PackageCompileTsupConfig\n}\n\nexport interface XyTscConfig extends XyConfigBase {\n compile?: PackageCompileTscConfig\n}\n\nexport type XyConfig = XyTsupConfig | XyTscConfig\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -1,6 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
- var import_forget = require("@xylabs/forget");
4
3
  var import_actions = require("../../actions");
5
- (0, import_forget.forget)((0, import_actions.packageCleanOutputs)());
4
+ (0, import_actions.packageCleanOutputs)().then(() => {
5
+ process.exit(0);
6
+ }).catch((error) => {
7
+ console.error(error);
8
+ process.exit(1);
9
+ });
6
10
  //# sourceMappingURL=clean-outputs.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/bin/package/clean-outputs.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { forget } from '@xylabs/forget'\n\nimport { packageCleanOutputs } from '../../actions'\n\nforget(packageCleanOutputs())\n"],"mappings":";;AAEA,oBAAuB;AAEvB,qBAAoC;AAAA,IAEpC,0BAAO,oCAAoB,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../../src/bin/package/clean-outputs.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { packageCleanOutputs } from '../../actions'\n\npackageCleanOutputs()\n .then(() => {\n process.exit(0)\n })\n .catch((error) => {\n console.error(error)\n process.exit(1)\n })\n"],"mappings":";;AAEA,qBAAoC;AAAA,IAEpC,oCAAoB,EACjB,KAAK,MAAM;AACV,UAAQ,KAAK,CAAC;AAChB,CAAC,EACA,MAAM,CAAC,UAAU;AAChB,UAAQ,MAAM,KAAK;AACnB,UAAQ,KAAK,CAAC;AAChB,CAAC;","names":[]}
@@ -3,11 +3,15 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
3
3
  var __commonJS = (cb, mod) => function __require() {
4
4
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
5
5
  };
6
- import { forget } from "@xylabs/forget";
7
6
  import { packageCleanOutputs } from "../../actions";
8
7
  var require_clean_outputs = __commonJS({
9
8
  "src/bin/package/clean-outputs.ts"() {
10
- forget(packageCleanOutputs());
9
+ packageCleanOutputs().then(() => {
10
+ process.exit(0);
11
+ }).catch((error) => {
12
+ console.error(error);
13
+ process.exit(1);
14
+ });
11
15
  }
12
16
  });
13
17
  export default require_clean_outputs();
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/bin/package/clean-outputs.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { forget } from '@xylabs/forget'\n\nimport { packageCleanOutputs } from '../../actions'\n\nforget(packageCleanOutputs())\n"],"mappings":";;;;;AAEA,SAAS,cAAc;AAEvB,SAAS,2BAA2B;AAJpC;AAAA;AAMA,WAAO,oBAAoB,CAAC;AAAA;AAAA;","names":[]}
1
+ {"version":3,"sources":["../../../src/bin/package/clean-outputs.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { packageCleanOutputs } from '../../actions'\n\npackageCleanOutputs()\n .then(() => {\n process.exit(0)\n })\n .catch((error) => {\n console.error(error)\n process.exit(1)\n })\n"],"mappings":";;;;;AAEA,SAAS,2BAA2B;AAFpC;AAAA;AAIA,wBAAoB,EACjB,KAAK,MAAM;AACV,cAAQ,KAAK,CAAC;AAAA,IAChB,CAAC,EACA,MAAM,CAAC,UAAU;AAChB,cAAQ,MAAM,KAAK;AACnB,cAAQ,KAAK,CAAC;AAAA,IAChB,CAAC;AAAA;AAAA;","names":[]}
@@ -1,6 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
- var import_forget = require("@xylabs/forget");
4
3
  var import_actions = require("../../actions");
5
- (0, import_forget.forget)((0, import_actions.packageCleanTypescript)());
4
+ (0, import_actions.packageCleanTypescript)().then(() => {
5
+ process.exit(0);
6
+ }).catch((error) => {
7
+ console.error(error);
8
+ process.exit(1);
9
+ });
6
10
  //# sourceMappingURL=clean-typescript.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/bin/package/clean-typescript.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { forget } from '@xylabs/forget'\n\nimport { packageCleanTypescript } from '../../actions'\n\nforget(packageCleanTypescript())\n"],"mappings":";;AAEA,oBAAuB;AAEvB,qBAAuC;AAAA,IAEvC,0BAAO,uCAAuB,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../../src/bin/package/clean-typescript.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { packageCleanTypescript } from '../../actions'\n\npackageCleanTypescript()\n .then(() => {\n process.exit(0)\n })\n .catch((error) => {\n console.error(error)\n process.exit(1)\n })\n"],"mappings":";;AAEA,qBAAuC;AAAA,IAEvC,uCAAuB,EACpB,KAAK,MAAM;AACV,UAAQ,KAAK,CAAC;AAChB,CAAC,EACA,MAAM,CAAC,UAAU;AAChB,UAAQ,MAAM,KAAK;AACnB,UAAQ,KAAK,CAAC;AAChB,CAAC;","names":[]}
@@ -3,11 +3,15 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
3
3
  var __commonJS = (cb, mod) => function __require() {
4
4
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
5
5
  };
6
- import { forget } from "@xylabs/forget";
7
6
  import { packageCleanTypescript } from "../../actions";
8
7
  var require_clean_typescript = __commonJS({
9
8
  "src/bin/package/clean-typescript.ts"() {
10
- forget(packageCleanTypescript());
9
+ packageCleanTypescript().then(() => {
10
+ process.exit(0);
11
+ }).catch((error) => {
12
+ console.error(error);
13
+ process.exit(1);
14
+ });
11
15
  }
12
16
  });
13
17
  export default require_clean_typescript();
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/bin/package/clean-typescript.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { forget } from '@xylabs/forget'\n\nimport { packageCleanTypescript } from '../../actions'\n\nforget(packageCleanTypescript())\n"],"mappings":";;;;;AAEA,SAAS,cAAc;AAEvB,SAAS,8BAA8B;AAJvC;AAAA;AAMA,WAAO,uBAAuB,CAAC;AAAA;AAAA;","names":[]}
1
+ {"version":3,"sources":["../../../src/bin/package/clean-typescript.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { packageCleanTypescript } from '../../actions'\n\npackageCleanTypescript()\n .then(() => {\n process.exit(0)\n })\n .catch((error) => {\n console.error(error)\n process.exit(1)\n })\n"],"mappings":";;;;;AAEA,SAAS,8BAA8B;AAFvC;AAAA;AAIA,2BAAuB,EACpB,KAAK,MAAM;AACV,cAAQ,KAAK,CAAC;AAAA,IAChB,CAAC,EACA,MAAM,CAAC,UAAU;AAChB,cAAQ,MAAM,KAAK;AACnB,cAAQ,KAAK,CAAC;AAAA,IAChB,CAAC;AAAA;AAAA;","names":[]}
@@ -1,6 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
- var import_forget = require("@xylabs/forget");
4
3
  var import_actions = require("../../actions");
5
- (0, import_forget.forget)((0, import_actions.packageClean)());
4
+ (0, import_actions.packageClean)().then(() => {
5
+ process.exit(0);
6
+ }).catch((error) => {
7
+ console.error(error);
8
+ process.exit(1);
9
+ });
6
10
  //# sourceMappingURL=clean.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/bin/package/clean.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { forget } from '@xylabs/forget'\n\nimport { packageClean } from '../../actions'\n\nforget(packageClean())\n"],"mappings":";;AAEA,oBAAuB;AAEvB,qBAA6B;AAAA,IAE7B,0BAAO,6BAAa,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../../src/bin/package/clean.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { packageClean } from '../../actions'\n\npackageClean()\n .then(() => {\n process.exit(0)\n })\n .catch((error) => {\n console.error(error)\n process.exit(1)\n })\n"],"mappings":";;AAEA,qBAA6B;AAAA,IAE7B,6BAAa,EACV,KAAK,MAAM;AACV,UAAQ,KAAK,CAAC;AAChB,CAAC,EACA,MAAM,CAAC,UAAU;AAChB,UAAQ,MAAM,KAAK;AACnB,UAAQ,KAAK,CAAC;AAChB,CAAC;","names":[]}
@@ -3,11 +3,15 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
3
3
  var __commonJS = (cb, mod) => function __require() {
4
4
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
5
5
  };
6
- import { forget } from "@xylabs/forget";
7
6
  import { packageClean } from "../../actions";
8
7
  var require_clean = __commonJS({
9
8
  "src/bin/package/clean.ts"() {
10
- forget(packageClean());
9
+ packageClean().then(() => {
10
+ process.exit(0);
11
+ }).catch((error) => {
12
+ console.error(error);
13
+ process.exit(1);
14
+ });
11
15
  }
12
16
  });
13
17
  export default require_clean();
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/bin/package/clean.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { forget } from '@xylabs/forget'\n\nimport { packageClean } from '../../actions'\n\nforget(packageClean())\n"],"mappings":";;;;;AAEA,SAAS,cAAc;AAEvB,SAAS,oBAAoB;AAJ7B;AAAA;AAMA,WAAO,aAAa,CAAC;AAAA;AAAA;","names":[]}
1
+ {"version":3,"sources":["../../../src/bin/package/clean.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { packageClean } from '../../actions'\n\npackageClean()\n .then(() => {\n process.exit(0)\n })\n .catch((error) => {\n console.error(error)\n process.exit(1)\n })\n"],"mappings":";;;;;AAEA,SAAS,oBAAoB;AAF7B;AAAA;AAIA,iBAAa,EACV,KAAK,MAAM;AACV,cAAQ,KAAK,CAAC;AAAA,IAChB,CAAC,EACA,MAAM,CAAC,UAAU;AAChB,cAAQ,MAAM,KAAK;AACnB,cAAQ,KAAK,CAAC;AAAA,IAChB,CAAC;AAAA;AAAA;","names":[]}
@@ -1,6 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
- var import_forget = require("@xylabs/forget");
4
3
  var import_actions = require("../../actions");
5
- (0, import_forget.forget)((0, import_actions.packageGenDocs)());
4
+ (0, import_actions.packageGenDocs)().then(() => {
5
+ process.exit(0);
6
+ }).catch((error) => {
7
+ console.error(error);
8
+ process.exit(1);
9
+ });
6
10
  //# sourceMappingURL=gen-docs.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/bin/package/gen-docs.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { forget } from '@xylabs/forget'\n\nimport { packageGenDocs } from '../../actions'\n\nforget(packageGenDocs())\n"],"mappings":";;AAEA,oBAAuB;AAEvB,qBAA+B;AAAA,IAE/B,0BAAO,+BAAe,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../../src/bin/package/gen-docs.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { packageGenDocs } from '../../actions'\n\npackageGenDocs()\n .then(() => {\n process.exit(0)\n })\n .catch((error) => {\n console.error(error)\n process.exit(1)\n })\n"],"mappings":";;AAEA,qBAA+B;AAAA,IAE/B,+BAAe,EACZ,KAAK,MAAM;AACV,UAAQ,KAAK,CAAC;AAChB,CAAC,EACA,MAAM,CAAC,UAAU;AAChB,UAAQ,MAAM,KAAK;AACnB,UAAQ,KAAK,CAAC;AAChB,CAAC;","names":[]}
@@ -3,11 +3,15 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
3
3
  var __commonJS = (cb, mod) => function __require() {
4
4
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
5
5
  };
6
- import { forget } from "@xylabs/forget";
7
6
  import { packageGenDocs } from "../../actions";
8
7
  var require_gen_docs = __commonJS({
9
8
  "src/bin/package/gen-docs.ts"() {
10
- forget(packageGenDocs());
9
+ packageGenDocs().then(() => {
10
+ process.exit(0);
11
+ }).catch((error) => {
12
+ console.error(error);
13
+ process.exit(1);
14
+ });
11
15
  }
12
16
  });
13
17
  export default require_gen_docs();
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/bin/package/gen-docs.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { forget } from '@xylabs/forget'\n\nimport { packageGenDocs } from '../../actions'\n\nforget(packageGenDocs())\n"],"mappings":";;;;;AAEA,SAAS,cAAc;AAEvB,SAAS,sBAAsB;AAJ/B;AAAA;AAMA,WAAO,eAAe,CAAC;AAAA;AAAA;","names":[]}
1
+ {"version":3,"sources":["../../../src/bin/package/gen-docs.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { packageGenDocs } from '../../actions'\n\npackageGenDocs()\n .then(() => {\n process.exit(0)\n })\n .catch((error) => {\n console.error(error)\n process.exit(1)\n })\n"],"mappings":";;;;;AAEA,SAAS,sBAAsB;AAF/B;AAAA;AAIA,mBAAe,EACZ,KAAK,MAAM;AACV,cAAQ,KAAK,CAAC;AAAA,IAChB,CAAC,EACA,MAAM,CAAC,UAAU;AAChB,cAAQ,MAAM,KAAK;AACnB,cAAQ,KAAK,CAAC;AAAA,IAChB,CAAC;AAAA;AAAA;","names":[]}
package/dist/bin/xy-ts.js CHANGED
@@ -1,6 +1,10 @@
1
1
  #!/usr/bin/env ts-node
2
2
  "use strict";
3
- var import_forget = require("@xylabs/forget");
4
3
  var import_xy = require("../xy");
5
- (0, import_forget.forget)((0, import_xy.xy)());
4
+ (0, import_xy.xy)().then(() => {
5
+ process.exit(0);
6
+ }).catch((error) => {
7
+ console.error(error);
8
+ process.exit(1);
9
+ });
6
10
  //# sourceMappingURL=xy-ts.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/bin/xy-ts.ts"],"sourcesContent":["#!/usr/bin/env ts-node\n\nimport { forget } from '@xylabs/forget'\n\nimport { xy } from '../xy'\n\nforget(xy())\n"],"mappings":";;AAEA,oBAAuB;AAEvB,gBAAmB;AAAA,IAEnB,0BAAO,cAAG,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../src/bin/xy-ts.ts"],"sourcesContent":["#!/usr/bin/env ts-node\n\nimport { xy } from '../xy'\n\nxy()\n .then(() => {\n process.exit(0)\n })\n .catch((error) => {\n console.error(error)\n process.exit(1)\n })\n"],"mappings":";;AAEA,gBAAmB;AAAA,IAEnB,cAAG,EACA,KAAK,MAAM;AACV,UAAQ,KAAK,CAAC;AAChB,CAAC,EACA,MAAM,CAAC,UAAU;AAChB,UAAQ,MAAM,KAAK;AACnB,UAAQ,KAAK,CAAC;AAChB,CAAC;","names":[]}
@@ -3,11 +3,15 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
3
3
  var __commonJS = (cb, mod) => function __require() {
4
4
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
5
5
  };
6
- import { forget } from "@xylabs/forget";
7
6
  import { xy } from "../xy";
8
7
  var require_xy_ts = __commonJS({
9
8
  "src/bin/xy-ts.ts"() {
10
- forget(xy());
9
+ xy().then(() => {
10
+ process.exit(0);
11
+ }).catch((error) => {
12
+ console.error(error);
13
+ process.exit(1);
14
+ });
11
15
  }
12
16
  });
13
17
  export default require_xy_ts();
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/bin/xy-ts.ts"],"sourcesContent":["#!/usr/bin/env ts-node\n\nimport { forget } from '@xylabs/forget'\n\nimport { xy } from '../xy'\n\nforget(xy())\n"],"mappings":";;;;;AAEA,SAAS,cAAc;AAEvB,SAAS,UAAU;AAJnB;AAAA;AAMA,WAAO,GAAG,CAAC;AAAA;AAAA;","names":[]}
1
+ {"version":3,"sources":["../../src/bin/xy-ts.ts"],"sourcesContent":["#!/usr/bin/env ts-node\n\nimport { xy } from '../xy'\n\nxy()\n .then(() => {\n process.exit(0)\n })\n .catch((error) => {\n console.error(error)\n process.exit(1)\n })\n"],"mappings":";;;;;AAEA,SAAS,UAAU;AAFnB;AAAA;AAIA,OAAG,EACA,KAAK,MAAM;AACV,cAAQ,KAAK,CAAC;AAAA,IAChB,CAAC,EACA,MAAM,CAAC,UAAU;AAChB,cAAQ,MAAM,KAAK;AACnB,cAAQ,KAAK,CAAC;AAAA,IAChB,CAAC;AAAA;AAAA;","names":[]}
package/dist/bin/xy.js CHANGED
@@ -1,6 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
- var import_forget = require("@xylabs/forget");
4
3
  var import_xy = require("../xy");
5
- (0, import_forget.forget)((0, import_xy.xy)());
4
+ (0, import_xy.xy)().then(() => {
5
+ process.exit(0);
6
+ }).catch((error) => {
7
+ console.error(error);
8
+ process.exit(1);
9
+ });
6
10
  //# sourceMappingURL=xy.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/bin/xy.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { forget } from '@xylabs/forget'\n\nimport { xy } from '../xy'\n\nforget(xy())\n"],"mappings":";;AAEA,oBAAuB;AAEvB,gBAAmB;AAAA,IAEnB,0BAAO,cAAG,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../src/bin/xy.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { xy } from '../xy'\n\nxy()\n .then(() => {\n process.exit(0)\n })\n .catch((error) => {\n console.error(error)\n process.exit(1)\n })\n"],"mappings":";;AAEA,gBAAmB;AAAA,IAEnB,cAAG,EACA,KAAK,MAAM;AACV,UAAQ,KAAK,CAAC;AAChB,CAAC,EACA,MAAM,CAAC,UAAU;AAChB,UAAQ,MAAM,KAAK;AACnB,UAAQ,KAAK,CAAC;AAChB,CAAC;","names":[]}
package/dist/bin/xy.mjs CHANGED
@@ -3,11 +3,15 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
3
3
  var __commonJS = (cb, mod) => function __require() {
4
4
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
5
5
  };
6
- import { forget } from "@xylabs/forget";
7
6
  import { xy } from "../xy";
8
7
  var require_xy = __commonJS({
9
8
  "src/bin/xy.ts"() {
10
- forget(xy());
9
+ xy().then(() => {
10
+ process.exit(0);
11
+ }).catch((error) => {
12
+ console.error(error);
13
+ process.exit(1);
14
+ });
11
15
  }
12
16
  });
13
17
  export default require_xy();
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/bin/xy.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { forget } from '@xylabs/forget'\n\nimport { xy } from '../xy'\n\nforget(xy())\n"],"mappings":";;;;;AAEA,SAAS,cAAc;AAEvB,SAAS,UAAU;AAJnB;AAAA;AAMA,WAAO,GAAG,CAAC;AAAA;AAAA;","names":[]}
1
+ {"version":3,"sources":["../../src/bin/xy.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { xy } from '../xy'\n\nxy()\n .then(() => {\n process.exit(0)\n })\n .catch((error) => {\n console.error(error)\n process.exit(1)\n })\n"],"mappings":";;;;;AAEA,SAAS,UAAU;AAFnB;AAAA;AAIA,OAAG,EACA,KAAK,MAAM;AACV,cAAQ,KAAK,CAAC;AAAA,IAChB,CAAC,EACA,MAAM,CAAC,UAAU;AAChB,cAAQ,MAAM,KAAK;AACnB,cAAQ,KAAK,CAAC;AAAA,IAChB,CAAC;AAAA;AAAA;","names":[]}
package/dist/index.d.mts CHANGED
@@ -126,10 +126,29 @@ declare const packageCleanTypescript: () => Promise<number>;
126
126
 
127
127
  type EntryMode = 'all' | 'single' | 'auto' | 'platform';
128
128
  type CompileMode = 'tsup' | 'tsc';
129
- interface LiveShareConfig {
129
+ /**
130
+ * Configuration for specifying which paths are targeted.
131
+ */
132
+ interface PathConfig {
133
+ /**
134
+ * Glob patterns to exclude (takes precedence over include).
135
+ */
130
136
  exclude?: string[];
137
+ /**
138
+ * Glob patterns to include.
139
+ */
131
140
  include?: string[];
132
141
  }
142
+ /**
143
+ * Configuration for Dynamic Share.
144
+ */
145
+ interface DynamicShareConfig extends PathConfig {
146
+ }
147
+ /**
148
+ * Configuration for Live Share.
149
+ */
150
+ interface LiveShareConfig extends PathConfig {
151
+ }
133
152
  interface CompileConfig {
134
153
  depth?: number;
135
154
  /** @param entryMode all, single, platform, or auto */
@@ -152,6 +171,7 @@ type PackageCompileTscConfig = CompileConfig & {
152
171
  };
153
172
  interface XyConfigBase {
154
173
  compile?: CompileConfig;
174
+ dynamicShare?: DynamicShareConfig;
155
175
  liveShare?: LiveShareConfig;
156
176
  publint?: boolean;
157
177
  verbose?: boolean;
@@ -354,4 +374,4 @@ declare const xyLintCommands: (args: Argv) => Argv<{}>;
354
374
 
355
375
  declare const xyParseOptions: () => Argv;
356
376
 
357
- export { type BuildParams, CROSS_PLATFORM_NEWLINE, type CleanPackageParams, type CleanParams, type CompileConfig, type CompileMode, type CompileParams, type CopyAssetsParams, type DepsPackageParams, type DepsParams, DuplicateDetector, type EntryMode, type GenDocsPackageParams, type GenDocsParams, INIT_CWD, type LintPackageParams, type LintParams, type LiveShareConfig, type PackageCompileTscConfig, type PackageCompileTsupConfig, type PackageCopyAssetsParams, type PackageJsonEx, type PackagePublintParams, type PublintPackageParams, type PublintParams, type ReadFileSyncOptions, type RebuildParams, type RecompilePackageParams, type RecompileParams, type ScriptStep, WINDOWS_NEWLINE_REGEX, type Workspace, type XyConfig, type XyConfigBase, type XyTscConfig, type XyTsupConfig, build, checkResult, clean, cleanAll, cleanDocs, cleanPackage, compile, compileAll, compilePackage, copyAssets, createBuildConfig, cycle, dead, defaultBuildConfig, defaultReadFileSyncOptions, deploy, deployMajor, deployMinor, deployNext, deps, depsAll, depsPackage, detectDuplicateDependencies, dupdeps, empty, fix, genDocs, genDocsAll, genDocsPackage, generateIgnoreFiles, gitignoreGen, gitlint, gitlintFix, isYarnVersionOrGreater, license, lint, lintAll, lintClean, lintPackage, lintProfile, loadConfig, loadPackageConfig, multiLineToJSONArray, notEmpty, npmignoreGen, packageClean, packageCleanOutputs, packageCleanTypescript, packageCompile, packageCompileTsc, packageCompileTsup, packageCopyAssets, packageDeps, packageGenDocs, packagePublint, packageRecompile, parsedPackageJSON, processEx, publint, publintAll, publintPackage, readLines, readNonEmptyLines, rebuild, recompile, recompileAll, recompilePackage, reinstall, relint, retest, runStepAsync, runSteps, runStepsAsync, runXy, runXyWithWarning, safeExit, safeExitAsync, sonar, statics, test, tryReadFileSync, union, up, updateYarnPlugins, updateYarnVersion, updo, withErrnoException, withError, writeLines, xy, xyBuildCommands, xyCommonCommands, xyDeployCommands, xyInstallCommands, xyLintCommands, xyParseOptions, yarn3Only, yarnWorkspace, yarnWorkspaces };
377
+ export { type BuildParams, CROSS_PLATFORM_NEWLINE, type CleanPackageParams, type CleanParams, type CompileConfig, type CompileMode, type CompileParams, type CopyAssetsParams, type DepsPackageParams, type DepsParams, DuplicateDetector, type DynamicShareConfig, type EntryMode, type GenDocsPackageParams, type GenDocsParams, INIT_CWD, type LintPackageParams, type LintParams, type LiveShareConfig, type PackageCompileTscConfig, type PackageCompileTsupConfig, type PackageCopyAssetsParams, type PackageJsonEx, type PackagePublintParams, type PathConfig, type PublintPackageParams, type PublintParams, type ReadFileSyncOptions, type RebuildParams, type RecompilePackageParams, type RecompileParams, type ScriptStep, WINDOWS_NEWLINE_REGEX, type Workspace, type XyConfig, type XyConfigBase, type XyTscConfig, type XyTsupConfig, build, checkResult, clean, cleanAll, cleanDocs, cleanPackage, compile, compileAll, compilePackage, copyAssets, createBuildConfig, cycle, dead, defaultBuildConfig, defaultReadFileSyncOptions, deploy, deployMajor, deployMinor, deployNext, deps, depsAll, depsPackage, detectDuplicateDependencies, dupdeps, empty, fix, genDocs, genDocsAll, genDocsPackage, generateIgnoreFiles, gitignoreGen, gitlint, gitlintFix, isYarnVersionOrGreater, license, lint, lintAll, lintClean, lintPackage, lintProfile, loadConfig, loadPackageConfig, multiLineToJSONArray, notEmpty, npmignoreGen, packageClean, packageCleanOutputs, packageCleanTypescript, packageCompile, packageCompileTsc, packageCompileTsup, packageCopyAssets, packageDeps, packageGenDocs, packagePublint, packageRecompile, parsedPackageJSON, processEx, publint, publintAll, publintPackage, readLines, readNonEmptyLines, rebuild, recompile, recompileAll, recompilePackage, reinstall, relint, retest, runStepAsync, runSteps, runStepsAsync, runXy, runXyWithWarning, safeExit, safeExitAsync, sonar, statics, test, tryReadFileSync, union, up, updateYarnPlugins, updateYarnVersion, updo, withErrnoException, withError, writeLines, xy, xyBuildCommands, xyCommonCommands, xyDeployCommands, xyInstallCommands, xyLintCommands, xyParseOptions, yarn3Only, yarnWorkspace, yarnWorkspaces };
package/dist/index.d.ts CHANGED
@@ -126,10 +126,29 @@ declare const packageCleanTypescript: () => Promise<number>;
126
126
 
127
127
  type EntryMode = 'all' | 'single' | 'auto' | 'platform';
128
128
  type CompileMode = 'tsup' | 'tsc';
129
- interface LiveShareConfig {
129
+ /**
130
+ * Configuration for specifying which paths are targeted.
131
+ */
132
+ interface PathConfig {
133
+ /**
134
+ * Glob patterns to exclude (takes precedence over include).
135
+ */
130
136
  exclude?: string[];
137
+ /**
138
+ * Glob patterns to include.
139
+ */
131
140
  include?: string[];
132
141
  }
142
+ /**
143
+ * Configuration for Dynamic Share.
144
+ */
145
+ interface DynamicShareConfig extends PathConfig {
146
+ }
147
+ /**
148
+ * Configuration for Live Share.
149
+ */
150
+ interface LiveShareConfig extends PathConfig {
151
+ }
133
152
  interface CompileConfig {
134
153
  depth?: number;
135
154
  /** @param entryMode all, single, platform, or auto */
@@ -152,6 +171,7 @@ type PackageCompileTscConfig = CompileConfig & {
152
171
  };
153
172
  interface XyConfigBase {
154
173
  compile?: CompileConfig;
174
+ dynamicShare?: DynamicShareConfig;
155
175
  liveShare?: LiveShareConfig;
156
176
  publint?: boolean;
157
177
  verbose?: boolean;
@@ -354,4 +374,4 @@ declare const xyLintCommands: (args: Argv) => Argv<{}>;
354
374
 
355
375
  declare const xyParseOptions: () => Argv;
356
376
 
357
- export { type BuildParams, CROSS_PLATFORM_NEWLINE, type CleanPackageParams, type CleanParams, type CompileConfig, type CompileMode, type CompileParams, type CopyAssetsParams, type DepsPackageParams, type DepsParams, DuplicateDetector, type EntryMode, type GenDocsPackageParams, type GenDocsParams, INIT_CWD, type LintPackageParams, type LintParams, type LiveShareConfig, type PackageCompileTscConfig, type PackageCompileTsupConfig, type PackageCopyAssetsParams, type PackageJsonEx, type PackagePublintParams, type PublintPackageParams, type PublintParams, type ReadFileSyncOptions, type RebuildParams, type RecompilePackageParams, type RecompileParams, type ScriptStep, WINDOWS_NEWLINE_REGEX, type Workspace, type XyConfig, type XyConfigBase, type XyTscConfig, type XyTsupConfig, build, checkResult, clean, cleanAll, cleanDocs, cleanPackage, compile, compileAll, compilePackage, copyAssets, createBuildConfig, cycle, dead, defaultBuildConfig, defaultReadFileSyncOptions, deploy, deployMajor, deployMinor, deployNext, deps, depsAll, depsPackage, detectDuplicateDependencies, dupdeps, empty, fix, genDocs, genDocsAll, genDocsPackage, generateIgnoreFiles, gitignoreGen, gitlint, gitlintFix, isYarnVersionOrGreater, license, lint, lintAll, lintClean, lintPackage, lintProfile, loadConfig, loadPackageConfig, multiLineToJSONArray, notEmpty, npmignoreGen, packageClean, packageCleanOutputs, packageCleanTypescript, packageCompile, packageCompileTsc, packageCompileTsup, packageCopyAssets, packageDeps, packageGenDocs, packagePublint, packageRecompile, parsedPackageJSON, processEx, publint, publintAll, publintPackage, readLines, readNonEmptyLines, rebuild, recompile, recompileAll, recompilePackage, reinstall, relint, retest, runStepAsync, runSteps, runStepsAsync, runXy, runXyWithWarning, safeExit, safeExitAsync, sonar, statics, test, tryReadFileSync, union, up, updateYarnPlugins, updateYarnVersion, updo, withErrnoException, withError, writeLines, xy, xyBuildCommands, xyCommonCommands, xyDeployCommands, xyInstallCommands, xyLintCommands, xyParseOptions, yarn3Only, yarnWorkspace, yarnWorkspaces };
377
+ export { type BuildParams, CROSS_PLATFORM_NEWLINE, type CleanPackageParams, type CleanParams, type CompileConfig, type CompileMode, type CompileParams, type CopyAssetsParams, type DepsPackageParams, type DepsParams, DuplicateDetector, type DynamicShareConfig, type EntryMode, type GenDocsPackageParams, type GenDocsParams, INIT_CWD, type LintPackageParams, type LintParams, type LiveShareConfig, type PackageCompileTscConfig, type PackageCompileTsupConfig, type PackageCopyAssetsParams, type PackageJsonEx, type PackagePublintParams, type PathConfig, type PublintPackageParams, type PublintParams, type ReadFileSyncOptions, type RebuildParams, type RecompilePackageParams, type RecompileParams, type ScriptStep, WINDOWS_NEWLINE_REGEX, type Workspace, type XyConfig, type XyConfigBase, type XyTscConfig, type XyTsupConfig, build, checkResult, clean, cleanAll, cleanDocs, cleanPackage, compile, compileAll, compilePackage, copyAssets, createBuildConfig, cycle, dead, defaultBuildConfig, defaultReadFileSyncOptions, deploy, deployMajor, deployMinor, deployNext, deps, depsAll, depsPackage, detectDuplicateDependencies, dupdeps, empty, fix, genDocs, genDocsAll, genDocsPackage, generateIgnoreFiles, gitignoreGen, gitlint, gitlintFix, isYarnVersionOrGreater, license, lint, lintAll, lintClean, lintPackage, lintProfile, loadConfig, loadPackageConfig, multiLineToJSONArray, notEmpty, npmignoreGen, packageClean, packageCleanOutputs, packageCleanTypescript, packageCompile, packageCompileTsc, packageCompileTsup, packageCopyAssets, packageDeps, packageGenDocs, packagePublint, packageRecompile, parsedPackageJSON, processEx, publint, publintAll, publintPackage, readLines, readNonEmptyLines, rebuild, recompile, recompileAll, recompilePackage, reinstall, relint, retest, runStepAsync, runSteps, runStepsAsync, runXy, runXyWithWarning, safeExit, safeExitAsync, sonar, statics, test, tryReadFileSync, union, up, updateYarnPlugins, updateYarnVersion, updo, withErrnoException, withError, writeLines, xy, xyBuildCommands, xyCommonCommands, xyDeployCommands, xyInstallCommands, xyLintCommands, xyParseOptions, yarn3Only, yarnWorkspace, yarnWorkspaces };
package/package.json CHANGED
@@ -65,9 +65,8 @@
65
65
  "@types/yargs": "^17.0.32",
66
66
  "@typescript-eslint/eslint-plugin": "^7.16.1",
67
67
  "@typescript-eslint/parser": "^7.16.1",
68
- "@xylabs/forget": "^3.6.5",
69
- "@xylabs/tsconfig": "^3.14.0",
70
- "@xylabs/tsconfig-dom": "^3.14.0",
68
+ "@xylabs/tsconfig": "^3.14.2",
69
+ "@xylabs/tsconfig-dom": "^3.14.2",
71
70
  "async-mutex": "^0.5.0",
72
71
  "chalk": "^4.1.2",
73
72
  "cosmiconfig": "^9.0.0",
@@ -115,8 +114,8 @@
115
114
  "@types/license-checker": "^25.0.6",
116
115
  "@types/lodash": "^4.17.7",
117
116
  "@types/parse-git-config": "^3.0.4",
118
- "@xylabs/eslint-config": "^3.14.0",
119
- "@xylabs/tsconfig": "^3.14.0",
117
+ "@xylabs/eslint-config": "^3.14.2",
118
+ "@xylabs/tsconfig": "^3.14.2",
120
119
  "publint": "^0.2.9",
121
120
  "typescript": "^5.5.3"
122
121
  },
@@ -169,6 +168,6 @@
169
168
  "package-clean": "echo Not cleaning..."
170
169
  },
171
170
  "sideEffects": false,
172
- "version": "3.14.0",
171
+ "version": "3.14.2",
173
172
  "type": "commonjs"
174
173
  }
@@ -4,11 +4,30 @@ export type EntryMode = 'all' | 'single' | 'auto' | 'platform'
4
4
 
5
5
  export type CompileMode = 'tsup' | 'tsc'
6
6
 
7
- export interface LiveShareConfig {
7
+ /**
8
+ * Configuration for specifying which paths are targeted.
9
+ */
10
+ export interface PathConfig {
11
+ /**
12
+ * Glob patterns to exclude (takes precedence over include).
13
+ */
8
14
  exclude?: string[]
15
+ /**
16
+ * Glob patterns to include.
17
+ */
9
18
  include?: string[]
10
19
  }
11
20
 
21
+ /**
22
+ * Configuration for Dynamic Share.
23
+ */
24
+ export interface DynamicShareConfig extends PathConfig {}
25
+
26
+ /**
27
+ * Configuration for Live Share.
28
+ */
29
+ export interface LiveShareConfig extends PathConfig {}
30
+
12
31
  export interface CompileConfig {
13
32
  depth?: number
14
33
  /** @param entryMode all, single, platform, or auto */
@@ -34,6 +53,7 @@ export type PackageCompileTscConfig = CompileConfig & {
34
53
 
35
54
  export interface XyConfigBase {
36
55
  compile?: CompileConfig
56
+ dynamicShare?: DynamicShareConfig
37
57
  liveShare?: LiveShareConfig
38
58
  publint?: boolean
39
59
  verbose?: boolean
@@ -1,7 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { forget } from '@xylabs/forget'
4
-
5
3
  import { packageCleanOutputs } from '../../actions'
6
4
 
7
- forget(packageCleanOutputs())
5
+ packageCleanOutputs()
6
+ .then(() => {
7
+ process.exit(0)
8
+ })
9
+ .catch((error) => {
10
+ console.error(error)
11
+ process.exit(1)
12
+ })
@@ -1,7 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { forget } from '@xylabs/forget'
4
-
5
3
  import { packageCleanTypescript } from '../../actions'
6
4
 
7
- forget(packageCleanTypescript())
5
+ packageCleanTypescript()
6
+ .then(() => {
7
+ process.exit(0)
8
+ })
9
+ .catch((error) => {
10
+ console.error(error)
11
+ process.exit(1)
12
+ })
@@ -1,7 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { forget } from '@xylabs/forget'
4
-
5
3
  import { packageClean } from '../../actions'
6
4
 
7
- forget(packageClean())
5
+ packageClean()
6
+ .then(() => {
7
+ process.exit(0)
8
+ })
9
+ .catch((error) => {
10
+ console.error(error)
11
+ process.exit(1)
12
+ })
@@ -1,7 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { forget } from '@xylabs/forget'
4
-
5
3
  import { packageGenDocs } from '../../actions'
6
4
 
7
- forget(packageGenDocs())
5
+ packageGenDocs()
6
+ .then(() => {
7
+ process.exit(0)
8
+ })
9
+ .catch((error) => {
10
+ console.error(error)
11
+ process.exit(1)
12
+ })
package/src/bin/xy-ts.ts CHANGED
@@ -1,7 +1,12 @@
1
1
  #!/usr/bin/env ts-node
2
2
 
3
- import { forget } from '@xylabs/forget'
4
-
5
3
  import { xy } from '../xy'
6
4
 
7
- forget(xy())
5
+ xy()
6
+ .then(() => {
7
+ process.exit(0)
8
+ })
9
+ .catch((error) => {
10
+ console.error(error)
11
+ process.exit(1)
12
+ })
package/src/bin/xy.ts CHANGED
@@ -1,7 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { forget } from '@xylabs/forget'
4
-
5
3
  import { xy } from '../xy'
6
4
 
7
- forget(xy())
5
+ xy()
6
+ .then(() => {
7
+ process.exit(0)
8
+ })
9
+ .catch((error) => {
10
+ console.error(error)
11
+ process.exit(1)
12
+ })