@shell-shock/plugin-completions 0.0.2 → 0.0.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.
package/README.md CHANGED
@@ -27,7 +27,7 @@ This package is part of the ⚡<b>Shell Shock</b> monorepo. The Shell Shock pack
27
27
 
28
28
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
29
29
 
30
- [![Version](https://img.shields.io/badge/version-0.0.1-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://stormsoftware.com/projects/shell-shock/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/shell-shock/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
30
+ [![Version](https://img.shields.io/badge/version-0.0.2-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://stormsoftware.com/projects/shell-shock/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/shell-shock/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
31
31
 
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- markdownlint-disable -->
@@ -6,4 +6,5 @@ import * as _alloy_js_core0 from "@alloy-js/core";
6
6
  */
7
7
  declare function CommandHandlerWrapper(): _alloy_js_core0.Children;
8
8
  //#endregion
9
- export { CommandHandlerWrapper };
9
+ export { CommandHandlerWrapper };
10
+ //# sourceMappingURL=command.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.d.cts","names":[],"sources":["../../src/components/command.tsx"],"sourcesContent":[],"mappings":";;;;;;AAiCgB,iBAAA,qBAAA,CAAA,CAAqB,EAAA,eAAA,CAAA,QAAA"}
@@ -6,4 +6,5 @@ import * as _alloy_js_core0 from "@alloy-js/core";
6
6
  */
7
7
  declare function CommandHandlerWrapper(): _alloy_js_core0.Children;
8
8
  //#endregion
9
- export { CommandHandlerWrapper };
9
+ export { CommandHandlerWrapper };
10
+ //# sourceMappingURL=command.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.d.mts","names":[],"sources":["../../src/components/command.tsx"],"sourcesContent":[],"mappings":";;;;;;AAiCgB,iBAAA,qBAAA,CAAA,CAAqB,EAAA,eAAA,CAAA,QAAA"}
@@ -56,4 +56,5 @@ try {
56
56
  }
57
57
 
58
58
  //#endregion
59
- export { CommandHandlerWrapper };
59
+ export { CommandHandlerWrapper };
60
+ //# sourceMappingURL=command.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.mjs","names":["code","FunctionDeclaration","IfStatement","VarDeclaration","usePowerlines","EntryFile","TSDoc","CommandHandlerWrapper","context","_$createComponent","path","hashbang","imports","children","heading","config","title","async","name","type","initializer","_$createIntrinsic","condition","packageJson","version"],"sources":["../../src/components/command.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { code } from \"@alloy-js/core\";\nimport {\n FunctionDeclaration,\n IfStatement,\n VarDeclaration\n} from \"@alloy-js/typescript\";\nimport { usePowerlines } from \"@powerlines/plugin-alloy/core/contexts/context\";\nimport { EntryFile } from \"@powerlines/plugin-alloy/typescript/components/entry-file\";\nimport { TSDoc } from \"@powerlines/plugin-alloy/typescript/components/tsdoc\";\nimport type { CompletionsPluginContext } from \"../types/plugin\";\n\n/**\n * The Completion commands' handler wrapper for the Shell Shock project.\n */\n\nexport function CommandHandlerWrapper() {\n const context = usePowerlines<CompletionsPluginContext>();\n\n return (\n <EntryFile\n path=\"bin.ts\"\n hashbang\n imports={{\n \"shell-shock:console\": [\"error\"]\n }}>\n <TSDoc\n heading={`Binary entry point for the ${context?.config.title ? `${context?.config.title} ` : \"\"}CLI application.`}></TSDoc>\n <FunctionDeclaration async name=\"main\">\n <VarDeclaration\n const\n name=\"args\"\n type=\"string[]\"\n initializer={code`process.argv`}\n />\n <hbr />\n <IfStatement\n condition={code`args.includes(\"--version\") || args.includes(\"-v\")`}>\n {code`console.log(${context?.packageJson.version ? `\"${context?.packageJson.version}\"` : \"0.0.1\"});`}\n </IfStatement>\n </FunctionDeclaration>\n <hbr />\n {code`\ntry {\n await main();\n} catch (error) {\n console.error(error);\n process.exit(1);\n}\n `}\n </EntryFile>\n );\n}\n"],"mappings":";;;;;;;;;;;AAiCA,SAAgBO,wBAAwB;CACtC,MAAMC,UAAUJ,eAAyC;AAEzD,QAAAK,gBACGJ,WAAS;EACRK,MAAI;EACJC,UAAQ;EACRC,SAAS,EACP,uBAAuB,CAAC,QAAO,EAChC;EAAA,IAAAC,WAAA;AAAA,UAAA;IAAAJ,gBACAH,OAAK,EAAA,IACJQ,UAAO;AAAA,YAAE,8BAA8BN,SAASO,OAAOC,QAAQ,GAAGR,SAASO,OAAOC,MAAK,KAAM,GAAE;OAAkB,CAAA;IAAAP,gBAClHR,qBAAmB;KAACgB,OAAK;KAACC,MAAI;KAAA,IAAAL,WAAA;AAAA,aAAA;OAAAJ,gBAC5BN,gBAAc;QAAA,SAAA;QAEbe,MAAI;QACJC,MAAI;QACJC,aAAapB,IAAI;QAAc,CAAA;OAAAqB,gBAAA,OAAA,EAAA,CAAA;OAAAZ,gBAGhCP,aAAW;QACVoB,WAAWtB,IAAI;QAAmD,IAAAa,WAAA;AAAA,gBACjEb,IAAI,eAAeQ,SAASe,YAAYC,UAAU,IAAIhB,SAASe,YAAYC,QAAO,KAAM,QAAO;;QAAI,CAAA;OAAA;;KAAA,CAAA;IAAAH,gBAAA,OAAA,EAAA,CAAA;IAIvGrB,IAAI;;;;;;;;IAOJ;;EAAA,CAAA"}
package/dist/index.cjs CHANGED
@@ -12,17 +12,20 @@ const plugin = (options = {}) => {
12
12
  return [{
13
13
  name: "shell-shock:completions",
14
14
  config() {
15
- this.trace("Providing default configuration for the Shell Shock `completions` plugin.");
15
+ this.debug("Providing default configuration for the Shell Shock `completions` plugin.");
16
16
  return { completions: options };
17
17
  },
18
18
  configResolved() {
19
- this.trace("Adding the CLI completion commands to the entry points.");
19
+ this.debug("Adding the CLI completion commands to the entry points.");
20
20
  this.inputs ??= [];
21
21
  if (this.inputs.some((input) => input.id === "completions")) this.info("The `completions` command already exists in the commands list. If you would like the completions command to be managed by the `@shell-shock/plugin-completions` package, please remove or rename the command.");
22
22
  else this.inputs.push({
23
23
  id: "completions",
24
24
  name: "completions",
25
- path: ["completions"],
25
+ path: {
26
+ segments: ["completions"],
27
+ value: "completions"
28
+ },
26
29
  title: "CLI Completions",
27
30
  description: `Commands for generating shell completion scripts for the ${(0, __stryke_string_format_title_case.titleCase)(this.config.name)}.`,
28
31
  entry: { file: (0, __stryke_path_join.joinPaths)(this.entryPath, "completions", "command.ts") },
@@ -32,7 +35,10 @@ const plugin = (options = {}) => {
32
35
  else this.inputs.push({
33
36
  id: "completions-bash",
34
37
  name: "bash",
35
- path: ["completions", "bash"],
38
+ path: {
39
+ segments: ["completions", "bash"],
40
+ value: "completions/bash"
41
+ },
36
42
  title: "CLI Completions - Bash Shell",
37
43
  entry: { file: (0, __stryke_path_join.joinPaths)(this.entryPath, "completions", "bash", "command.ts") },
38
44
  isVirtual: false
@@ -41,7 +47,10 @@ const plugin = (options = {}) => {
41
47
  else this.inputs.push({
42
48
  id: "completions-zsh",
43
49
  name: "zsh",
44
- path: ["completions", "zsh"],
50
+ path: {
51
+ segments: ["completions", "zsh"],
52
+ value: "completions/zsh"
53
+ },
45
54
  title: "CLI Completions - Zsh Shell",
46
55
  entry: { file: (0, __stryke_path_join.joinPaths)(this.entryPath, "completions", "zsh", "command.ts") },
47
56
  isVirtual: false
package/dist/index.d.cts CHANGED
@@ -10,4 +10,5 @@ import { Plugin } from "powerlines";
10
10
  */
11
11
  declare const plugin: <TContext extends CompletionsPluginContext = CompletionsPluginContext>(options?: CompletionsPluginOptions) => Plugin<TContext>[];
12
12
  //#endregion
13
- export { CommandHandlerWrapper, CompletionsPluginContext, CompletionsPluginOptions, CompletionsPluginResolvedConfig, CompletionsPluginUserConfig, plugin as default, plugin };
13
+ export { CommandHandlerWrapper, CompletionsPluginContext, CompletionsPluginOptions, CompletionsPluginResolvedConfig, CompletionsPluginUserConfig, plugin as default, plugin };
14
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAgCA;AACmB,cADN,MACM,EAAA,CAAA,iBAAA,wBAAA,GAA2B,wBAA3B,CAAA,CAAA,OAAA,CAAA,EAER,wBAFQ,EAAA,GAGhB,MAHgB,CAGT,QAHS,CAAA,EAAA"}
package/dist/index.d.mts CHANGED
@@ -10,4 +10,5 @@ import { Plugin } from "powerlines";
10
10
  */
11
11
  declare const plugin: <TContext extends CompletionsPluginContext = CompletionsPluginContext>(options?: CompletionsPluginOptions) => Plugin<TContext>[];
12
12
  //#endregion
13
- export { CommandHandlerWrapper, CompletionsPluginContext, CompletionsPluginOptions, CompletionsPluginResolvedConfig, CompletionsPluginUserConfig, plugin as default, plugin };
13
+ export { CommandHandlerWrapper, CompletionsPluginContext, CompletionsPluginOptions, CompletionsPluginResolvedConfig, CompletionsPluginUserConfig, plugin as default, plugin };
14
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAgCA;AACmB,cADN,MACM,EAAA,CAAA,iBAAA,wBAAA,GAA2B,wBAA3B,CAAA,CAAA,OAAA,CAAA,EAER,wBAFQ,EAAA,GAGhB,MAHgB,CAGT,QAHS,CAAA,EAAA"}
package/dist/index.mjs CHANGED
@@ -11,17 +11,20 @@ const plugin = (options = {}) => {
11
11
  return [{
12
12
  name: "shell-shock:completions",
13
13
  config() {
14
- this.trace("Providing default configuration for the Shell Shock `completions` plugin.");
14
+ this.debug("Providing default configuration for the Shell Shock `completions` plugin.");
15
15
  return { completions: options };
16
16
  },
17
17
  configResolved() {
18
- this.trace("Adding the CLI completion commands to the entry points.");
18
+ this.debug("Adding the CLI completion commands to the entry points.");
19
19
  this.inputs ??= [];
20
20
  if (this.inputs.some((input) => input.id === "completions")) this.info("The `completions` command already exists in the commands list. If you would like the completions command to be managed by the `@shell-shock/plugin-completions` package, please remove or rename the command.");
21
21
  else this.inputs.push({
22
22
  id: "completions",
23
23
  name: "completions",
24
- path: ["completions"],
24
+ path: {
25
+ segments: ["completions"],
26
+ value: "completions"
27
+ },
25
28
  title: "CLI Completions",
26
29
  description: `Commands for generating shell completion scripts for the ${titleCase(this.config.name)}.`,
27
30
  entry: { file: joinPaths(this.entryPath, "completions", "command.ts") },
@@ -31,7 +34,10 @@ const plugin = (options = {}) => {
31
34
  else this.inputs.push({
32
35
  id: "completions-bash",
33
36
  name: "bash",
34
- path: ["completions", "bash"],
37
+ path: {
38
+ segments: ["completions", "bash"],
39
+ value: "completions/bash"
40
+ },
35
41
  title: "CLI Completions - Bash Shell",
36
42
  entry: { file: joinPaths(this.entryPath, "completions", "bash", "command.ts") },
37
43
  isVirtual: false
@@ -40,7 +46,10 @@ const plugin = (options = {}) => {
40
46
  else this.inputs.push({
41
47
  id: "completions-zsh",
42
48
  name: "zsh",
43
- path: ["completions", "zsh"],
49
+ path: {
50
+ segments: ["completions", "zsh"],
51
+ value: "completions/zsh"
52
+ },
44
53
  title: "CLI Completions - Zsh Shell",
45
54
  entry: { file: joinPaths(this.entryPath, "completions", "zsh", "command.ts") },
46
55
  isVirtual: false
@@ -51,4 +60,5 @@ const plugin = (options = {}) => {
51
60
  var src_default = plugin;
52
61
 
53
62
  //#endregion
54
- export { CommandHandlerWrapper, src_default as default, plugin };
63
+ export { CommandHandlerWrapper, src_default as default, plugin };
64
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":["joinPaths","titleCase","plugin","options","name","config","debug","completions","configResolved","inputs","some","input","id","info","push","path","segments","value","title","description","entry","file","entryPath","isVirtual"],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { joinPaths } from \"@stryke/path/join\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport type { Plugin } from \"powerlines\";\nimport type {\n CompletionsPluginContext,\n CompletionsPluginOptions\n} from \"./types/plugin\";\n\nexport * from \"./components\";\nexport * from \"./types\";\n\n/**\n * The Completions - Shell Shock plugin to add completion commands to a Shell Shock application.\n */\nexport const plugin = <\n TContext extends CompletionsPluginContext = CompletionsPluginContext\n>(\n options: CompletionsPluginOptions = {}\n): Plugin<TContext>[] => {\n return [\n {\n name: \"shell-shock:completions\",\n config() {\n this.debug(\n \"Providing default configuration for the Shell Shock `completions` plugin.\"\n );\n\n return {\n completions: options\n };\n },\n configResolved() {\n this.debug(\"Adding the CLI completion commands to the entry points.\");\n\n this.inputs ??= [];\n if (this.inputs.some(input => input.id === \"completions\")) {\n this.info(\n \"The `completions` command already exists in the commands list. If you would like the completions command to be managed by the `@shell-shock/plugin-completions` package, please remove or rename the command.\"\n );\n } else {\n this.inputs.push({\n id: \"completions\",\n name: \"completions\",\n path: {\n segments: [\"completions\"],\n value: \"completions\"\n },\n title: \"CLI Completions\",\n description: `Commands for generating shell completion scripts for the ${titleCase(this.config.name)}.`,\n entry: {\n file: joinPaths(this.entryPath, \"completions\", \"command.ts\")\n },\n isVirtual: true\n });\n }\n\n if (this.inputs.some(input => input.id === \"completions-bash\")) {\n this.info(\n \"The `completions-bash` command already exists in the commands list. If you would like the completions-bash command to be managed by the `@shell-shock/plugin-completions` package, please remove or rename the command.\"\n );\n } else {\n this.inputs.push({\n id: \"completions-bash\",\n name: \"bash\",\n path: {\n segments: [\"completions\", \"bash\"],\n value: \"completions/bash\"\n },\n title: \"CLI Completions - Bash Shell\",\n entry: {\n file: joinPaths(\n this.entryPath,\n \"completions\",\n \"bash\",\n \"command.ts\"\n )\n },\n isVirtual: false\n });\n }\n\n if (this.inputs.some(input => input.id === \"completions-zsh\")) {\n this.info(\n \"The `completions-zsh` command already exists in the commands list. If you would like the completions-zsh command to be managed by the `@shell-shock/plugin-completions` package, please remove or rename the command.\"\n );\n } else {\n this.inputs.push({\n id: \"completions-zsh\",\n name: \"zsh\",\n path: {\n segments: [\"completions\", \"zsh\"],\n value: \"completions/zsh\"\n },\n title: \"CLI Completions - Zsh Shell\",\n entry: {\n file: joinPaths(\n this.entryPath,\n \"completions\",\n \"zsh\",\n \"command.ts\"\n )\n },\n isVirtual: false\n });\n }\n }\n }\n ];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;AAgCA,MAAaE,UAGXC,UAAoC,EAAE,KACf;AACvB,QAAO,CACL;EACEC,MAAM;EACNC,SAAS;AACP,QAAKC,MACH,4EACD;AAED,UAAO,EACLC,aAAaJ,SACd;;EAEHK,iBAAiB;AACf,QAAKF,MAAM,0DAA0D;AAErE,QAAKG,WAAW,EAAE;AAClB,OAAI,KAAKA,OAAOC,MAAKC,UAASA,MAAMC,OAAO,cAAc,CACvD,MAAKC,KACH,gNACD;OAED,MAAKJ,OAAOK,KAAK;IACfF,IAAI;IACJR,MAAM;IACNW,MAAM;KACJC,UAAU,CAAC,cAAc;KACzBC,OAAO;KACR;IACDC,OAAO;IACPC,aAAa,4DAA4DlB,UAAU,KAAKI,OAAOD,KAAK,CAAA;IACpGgB,OAAO,EACLC,MAAMrB,UAAU,KAAKsB,WAAW,eAAe,aAAY,EAC5D;IACDC,WAAW;IACZ,CAAC;AAGJ,OAAI,KAAKd,OAAOC,MAAKC,UAASA,MAAMC,OAAO,mBAAmB,CAC5D,MAAKC,KACH,0NACD;OAED,MAAKJ,OAAOK,KAAK;IACfF,IAAI;IACJR,MAAM;IACNW,MAAM;KACJC,UAAU,CAAC,eAAe,OAAO;KACjCC,OAAO;KACR;IACDC,OAAO;IACPE,OAAO,EACLC,MAAMrB,UACJ,KAAKsB,WACL,eACA,QACA,aACF,EACD;IACDC,WAAW;IACZ,CAAC;AAGJ,OAAI,KAAKd,OAAOC,MAAKC,UAASA,MAAMC,OAAO,kBAAkB,CAC3D,MAAKC,KACH,wNACD;OAED,MAAKJ,OAAOK,KAAK;IACfF,IAAI;IACJR,MAAM;IACNW,MAAM;KACJC,UAAU,CAAC,eAAe,MAAM;KAChCC,OAAO;KACR;IACDC,OAAO;IACPE,OAAO,EACLC,MAAMrB,UACJ,KAAKsB,WACL,eACA,OACA,aACF,EACD;IACDC,WAAW;IACZ,CAAC;;EAGP,CACF;;AAGH,kBAAerB"}
@@ -17,4 +17,5 @@ type CompletionsPluginResolvedConfig = ResolvedConfig & {
17
17
  };
18
18
  type CompletionsPluginContext<TResolvedConfig extends CompletionsPluginResolvedConfig = CompletionsPluginResolvedConfig> = Context<TResolvedConfig>;
19
19
  //#endregion
20
- export { CompletionsPluginContext, CompletionsPluginOptions, CompletionsPluginResolvedConfig, CompletionsPluginUserConfig };
20
+ export { CompletionsPluginContext, CompletionsPluginOptions, CompletionsPluginResolvedConfig, CompletionsPluginUserConfig };
21
+ //# sourceMappingURL=plugin.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;UAwBiB,wBAAA;AAAA,KAEL,2BAAA,GAA8B,UAFD,GAAA;EAE7B;AAOZ;AAOA;EAEI,WAAA,EAZW,wBAYX;CAAkC;AAC1B,KAVA,+BAAA,GAAkC,cAUlC,GAAA;EAAR;;;eANW;;KAGH,iDAER,kCAAkC,mCAClC,QAAQ"}
@@ -17,4 +17,5 @@ type CompletionsPluginResolvedConfig = ResolvedConfig & {
17
17
  };
18
18
  type CompletionsPluginContext<TResolvedConfig extends CompletionsPluginResolvedConfig = CompletionsPluginResolvedConfig> = Context<TResolvedConfig>;
19
19
  //#endregion
20
- export { CompletionsPluginContext, CompletionsPluginOptions, CompletionsPluginResolvedConfig, CompletionsPluginUserConfig };
20
+ export { CompletionsPluginContext, CompletionsPluginOptions, CompletionsPluginResolvedConfig, CompletionsPluginUserConfig };
21
+ //# sourceMappingURL=plugin.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;UAwBiB,wBAAA;AAAA,KAEL,2BAAA,GAA8B,UAFD,GAAA;EAE7B;AAOZ;AAOA;EAEI,WAAA,EAZW,wBAYX;CAAkC;AAC1B,KAVA,+BAAA,GAAkC,cAUlC,GAAA;EAAR;;;eANW;;KAGH,iDAER,kCAAkC,mCAClC,QAAQ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shell-shock/plugin-completions",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "type": "module",
5
5
  "description": "A package containing a Shell Shock plugin to generate source code given a list design tokens.",
6
6
  "repository": {
@@ -38,68 +38,55 @@
38
38
  },
39
39
  "license": "Apache-2.0",
40
40
  "private": false,
41
- "main": "dist/index.cjs",
42
- "module": "dist/index.mjs",
43
- "typings": "dist/index.d.mts",
41
+ "main": "./dist/index.cjs",
42
+ "module": "./dist/index.mjs",
44
43
  "exports": {
45
- "./package.json": "./package.json",
46
44
  ".": {
47
- "import": {
48
- "types": "./dist/index.d.mts",
49
- "default": "./dist/index.mjs"
50
- },
51
45
  "require": {
52
46
  "types": "./dist/index.d.cts",
53
47
  "default": "./dist/index.cjs"
54
48
  },
55
- "default": {
56
- "types": "./dist/index.d.mts",
57
- "default": "./dist/index.mjs"
58
- }
59
- },
60
- "./index": {
61
49
  "import": {
62
50
  "types": "./dist/index.d.mts",
63
51
  "default": "./dist/index.mjs"
64
52
  },
65
- "require": {
66
- "types": "./dist/index.d.cts",
67
- "default": "./dist/index.cjs"
68
- },
69
53
  "default": {
70
54
  "types": "./dist/index.d.mts",
71
55
  "default": "./dist/index.mjs"
72
56
  }
73
57
  },
58
+ "./package.json": "./package.json",
74
59
  "./types": {
75
- "import": {
76
- "types": "./dist/types/index.d.mts",
77
- "default": "./dist/types/index.mjs"
78
- },
79
60
  "require": {
80
61
  "types": "./dist/types/index.d.cts",
81
62
  "default": "./dist/types/index.cjs"
82
63
  },
64
+ "import": {
65
+ "types": "./dist/types/index.d.mts",
66
+ "default": "./dist/types/index.mjs"
67
+ },
83
68
  "default": {
84
69
  "types": "./dist/types/index.d.mts",
85
70
  "default": "./dist/types/index.mjs"
86
71
  }
87
72
  },
88
- "./types/*": {
89
- "import": {
90
- "types": "./dist/types/*.d.mts",
91
- "default": "./dist/types/*.mjs"
92
- },
73
+ "./types/plugin": {
93
74
  "require": {
94
- "types": "./dist/types/*.d.cts",
95
- "default": "./dist/types/*.cjs"
75
+ "types": "./dist/types/plugin.d.cts",
76
+ "default": "./dist/types/plugin.cjs"
77
+ },
78
+ "import": {
79
+ "types": "./dist/types/plugin.d.mts",
80
+ "default": "./dist/types/plugin.mjs"
96
81
  },
97
82
  "default": {
98
- "types": "./dist/types/*.d.mts",
99
- "default": "./dist/types/*.mjs"
83
+ "types": "./dist/types/plugin.d.mts",
84
+ "default": "./dist/types/plugin.mjs"
100
85
  }
101
86
  }
102
87
  },
88
+ "types": "./dist/index.d.cts",
89
+ "typings": "dist/index.d.mts",
103
90
  "files": ["dist/**/*"],
104
91
  "keywords": [
105
92
  "style-dictionary",
@@ -109,19 +96,33 @@
109
96
  "storm-software"
110
97
  ],
111
98
  "dependencies": {
112
- "@alloy-js/core": "^0.22.0",
99
+ "@alloy-js/core": "0.22.0",
113
100
  "@alloy-js/typescript": "^0.22.0",
114
- "@powerlines/plugin-alloy": "^0.18.24",
115
- "@powerlines/plugin-plugin": "^0.12.92",
116
- "@shell-shock/core": "^0.2.1",
117
- "powerlines": "^0.37.14",
118
- "@stryke/path": "^0.24.1",
119
- "@stryke/string-format": "^0.12.30"
101
+ "@powerlines/plugin-alloy": "^0.19.37",
102
+ "@powerlines/plugin-plugin": "^0.12.208",
103
+ "@shell-shock/core": "^0.3.0",
104
+ "@stryke/path": "^0.26.4",
105
+ "@stryke/string-format": "^0.13.7",
106
+ "powerlines": "^0.38.24"
120
107
  },
121
108
  "devDependencies": {
122
- "@powerlines/plugin-deepkit": "^0.11.17",
123
- "@types/node": "^22.19.3"
109
+ "@powerlines/plugin-deepkit": "^0.11.136",
110
+ "@types/node": "^22.19.7"
111
+ },
112
+ "publishConfig": {
113
+ "access": "public",
114
+ "exports": {
115
+ ".": { "require": "./dist/index.cjs", "import": "./dist/index.mjs" },
116
+ "./types": {
117
+ "require": "./dist/types/index.cjs",
118
+ "import": "./dist/types/index.mjs"
119
+ },
120
+ "./types/plugin": {
121
+ "require": "./dist/types/plugin.cjs",
122
+ "import": "./dist/types/plugin.mjs"
123
+ },
124
+ "./package.json": "./package.json"
125
+ }
124
126
  },
125
- "publishConfig": { "access": "public" },
126
- "gitHead": "5a8ce9d8f2cefeec8df5147bf80b5c3af71c6c16"
127
+ "gitHead": "150522912ecb85c5d409659bc146c2c6ae635923"
127
128
  }