@powerlines/plugin-alloy 0.26.42 → 0.26.44

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.cjs CHANGED
@@ -31,7 +31,12 @@ const plugin = (options = {}) => {
31
31
  ]]
32
32
  },
33
33
  tsdown: { inputOptions: { transform: { jsx: "preserve" } } },
34
- resolve: { external: [/^@alloy-js\//] }
34
+ resolve: { external: [
35
+ "@alloy-js/core",
36
+ "@alloy-js/typescript",
37
+ "@alloy-js/json",
38
+ "@alloy-js/markdown"
39
+ ] }
35
40
  };
36
41
  },
37
42
  async configResolved() {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;YAyBY,MAAA;IACR,KAAA,GAAQ,kBAAA;EAAA;AAAA;;;;;;;cAUC,MAAA,oBACM,kBAAA,GAAqB,kBAAA,EAEtC,OAAA,GAAS,kBAAA,KAuDJ,MAAA,CAAO,QAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;YAyBY,MAAA;IACR,KAAA,GAAQ,kBAAA;EAAA;AAAA;;;;;;;cAUC,MAAA,oBACM,kBAAA,GAAqB,kBAAA,EAEtC,OAAA,GAAS,kBAAA,KA4DJ,MAAA,CAAO,QAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;YAyBY,MAAA;IACR,KAAA,GAAQ,kBAAA;EAAA;AAAA;;;;;;;cAUC,MAAA,oBACM,kBAAA,GAAqB,kBAAA,EAEtC,OAAA,GAAS,kBAAA,KAuDJ,MAAA,CAAO,QAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;YAyBY,MAAA;IACR,KAAA,GAAQ,kBAAA;EAAA;AAAA;;;;;;;cAUC,MAAA,oBACM,kBAAA,GAAqB,kBAAA,EAEtC,OAAA,GAAS,kBAAA,KA4DJ,MAAA,CAAO,QAAA"}
package/dist/index.mjs CHANGED
@@ -28,7 +28,12 @@ const plugin = (options = {}) => {
28
28
  ]]
29
29
  },
30
30
  tsdown: { inputOptions: { transform: { jsx: "preserve" } } },
31
- resolve: { external: [/^@alloy-js\//] }
31
+ resolve: { external: [
32
+ "@alloy-js/core",
33
+ "@alloy-js/typescript",
34
+ "@alloy-js/json",
35
+ "@alloy-js/markdown"
36
+ ] }
32
37
  };
33
38
  },
34
39
  async configResolved() {
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\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/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport babel from \"@powerlines/plugin-babel\";\nimport { StormJSON } from \"@stryke/json/storm-json\";\nimport { findFileExtension } from \"@stryke/path/file-path-fns\";\nimport type { Plugin } from \"powerlines\";\nimport type { AlloyPluginContext, AlloyPluginOptions } from \"./types/plugin\";\n\ndeclare module \"powerlines\" {\n interface Config {\n alloy?: AlloyPluginOptions;\n }\n}\n\n/**\n * Alloy-js plugin for Powerlines.\n *\n * @param options - The Alloy-js plugin user configuration options.\n * @returns A Powerlines plugin that integrates Alloy-js transformations.\n */\nexport const plugin = <\n TContext extends AlloyPluginContext = AlloyPluginContext\n>(\n options: AlloyPluginOptions = {}\n) => {\n return [\n babel(),\n {\n name: \"alloy\",\n config() {\n this.debug(\n \"Updating configuration options to support Alloy-js builds.\"\n );\n\n return {\n alloy: {\n typescript: true,\n ...options\n },\n babel: {\n skipConfigResolution: true,\n presets: [\n \"@babel/preset-typescript\",\n [\n \"@alloy-js/babel-preset\",\n {},\n (_: string, id: string) =>\n findFileExtension(id) === \"tsx\" ||\n findFileExtension(id) === \"jsx\"\n ]\n ]\n },\n tsdown: {\n inputOptions: {\n transform: {\n jsx: \"preserve\"\n }\n }\n },\n resolve: {\n external: [/^@alloy-js\\//]\n }\n };\n },\n async configResolved() {\n this.debug(\"Ensuring TypeScript configuration is set up for Alloy-js.\");\n\n if (this.tsconfig.tsconfigJson.compilerOptions?.jsx !== \"preserve\") {\n this.tsconfig.tsconfigJson.compilerOptions ??= {};\n this.tsconfig.tsconfigJson.compilerOptions.jsx = \"preserve\";\n\n await this.fs.write(\n this.tsconfig.tsconfigFilePath,\n StormJSON.stringify(this.tsconfig.tsconfigJson)\n );\n }\n }\n }\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;AA2BA,MAAE,UAAA,UAAA,EAAA,KAAA;AACF,QAAA,CAAA,OAAA,EAAA;;EAEE,SAAA;AACC,QAAQ,MAAC,6DAAqB;AAChC,UAAA;IACG,OAAM;KACN,YAAU;KACZ,GAAA;KACK;IACL,OAAS;KACV,sBAAA;KACS,SAAC,CAAA,4BAAsB;MAAA;MAAA,EAAA;OAAA,GAAA,OAAA,kBAAA,GAAA,KAAA,SAAA,kBAAA,GAAA,KAAA;MAAA,CAAA;KAC5B;IACG,QAAC,EACC,cAAC,EACP,WAAA,EACS,KAAM,YACN,EACL,EACC;IACD,SAAC,8BAED;IACD;;EAEH,MAAM,iBAAK;AACT,QAAK,MAAA,4DAAA;AACL,OAAI,KAAK,SAAE,aAAA,iBAAA,QAAA,YAAA;AACT,SAAI,SAAA,aAAsB,oBAAI,EAAA;AAC9B,SAAI,SAAS,aAAA,gBAAA,MAAA;AACb,UAAM,KAAE,GAAM,MAAM,KAAC,SAAW,kBAAA,UAAA,UAAA,KAAA,SAAA,aAAA,CAAA;;;EAGrC,CAAC"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\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/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport babel from \"@powerlines/plugin-babel\";\nimport { StormJSON } from \"@stryke/json/storm-json\";\nimport { findFileExtension } from \"@stryke/path/file-path-fns\";\nimport type { Plugin } from \"powerlines\";\nimport type { AlloyPluginContext, AlloyPluginOptions } from \"./types/plugin\";\n\ndeclare module \"powerlines\" {\n interface Config {\n alloy?: AlloyPluginOptions;\n }\n}\n\n/**\n * Alloy-js plugin for Powerlines.\n *\n * @param options - The Alloy-js plugin user configuration options.\n * @returns A Powerlines plugin that integrates Alloy-js transformations.\n */\nexport const plugin = <\n TContext extends AlloyPluginContext = AlloyPluginContext\n>(\n options: AlloyPluginOptions = {}\n) => {\n return [\n babel(),\n {\n name: \"alloy\",\n config() {\n this.debug(\n \"Updating configuration options to support Alloy-js builds.\"\n );\n\n return {\n alloy: {\n typescript: true,\n ...options\n },\n babel: {\n skipConfigResolution: true,\n presets: [\n \"@babel/preset-typescript\",\n [\n \"@alloy-js/babel-preset\",\n {},\n (_: string, id: string) =>\n findFileExtension(id) === \"tsx\" ||\n findFileExtension(id) === \"jsx\"\n ]\n ]\n },\n tsdown: {\n inputOptions: {\n transform: {\n jsx: \"preserve\"\n }\n }\n },\n resolve: {\n external: [\n \"@alloy-js/core\",\n \"@alloy-js/typescript\",\n \"@alloy-js/json\",\n \"@alloy-js/markdown\"\n ]\n }\n };\n },\n async configResolved() {\n this.debug(\"Ensuring TypeScript configuration is set up for Alloy-js.\");\n\n if (this.tsconfig.tsconfigJson.compilerOptions?.jsx !== \"preserve\") {\n this.tsconfig.tsconfigJson.compilerOptions ??= {};\n this.tsconfig.tsconfigJson.compilerOptions.jsx = \"preserve\";\n\n await this.fs.write(\n this.tsconfig.tsconfigFilePath,\n StormJSON.stringify(this.tsconfig.tsconfigJson)\n );\n }\n }\n }\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;AA2BA,MAAE,UAAA,UAAA,EAAA,KAAA;AACF,QAAA,CAAA,OAAA,EAAA;;EAEE,SAAA;AACC,QAAQ,MAAC,6DAAqB;AAChC,UAAA;IACG,OAAM;KACN,YAAU;KACZ,GAAA;KACK;IACL,OAAS;KACV,sBAAA;KACS,SAAC,CAAA,4BAAsB;MAAA;MAAA,EAAA;OAAA,GAAA,OAAA,kBAAA,GAAA,KAAA,SAAA,kBAAA,GAAA,KAAA;MAAA,CAAA;KAC5B;IACG,QAAC,EACC,cAAC,EACP,WAAA,EACS,KAAM,YACN,EACL,EACC;IACD,SAAC;;;;;OAED;IACD;;EAEH,MAAM,iBAAK;AACT,QAAK,MAAA,4DAAA;AACL,OAAI,KAAK,SAAE,aAAA,iBAAA,QAAA,YAAA;AACT,SAAI,SAAA,aAAsB,oBAAI,EAAA;AAC9B,SAAI,SAAS,aAAA,gBAAA,MAAA;AACb,UAAM,KAAE,GAAM,MAAM,KAAC,SAAW,kBAAA,UAAA,UAAA,KAAA,SAAA,aAAA,CAAA;;;EAGrC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-alloy",
3
- "version": "0.26.42",
3
+ "version": "0.26.44",
4
4
  "type": "module",
5
5
  "description": "A package containing various Alloy framework components and helper utilities.",
6
6
  "repository": {
@@ -908,8 +908,8 @@
908
908
  "@alloy-js/json": "0.23.0-dev.2",
909
909
  "@alloy-js/markdown": "0.23.0-dev.1",
910
910
  "@alloy-js/typescript": "0.23.0-dev.4",
911
- "@powerlines/deepkit": "^0.8.26",
912
- "@powerlines/plugin-babel": "^0.12.418",
911
+ "@powerlines/deepkit": "^0.8.28",
912
+ "@powerlines/plugin-babel": "^0.12.420",
913
913
  "@storm-software/config-tools": "^1.189.77",
914
914
  "@stryke/capnp": "^0.12.93",
915
915
  "@stryke/convert": "^0.7.0",
@@ -922,14 +922,14 @@
922
922
  "@stryke/types": "^0.11.4",
923
923
  "@stryke/unique-id": "^0.3.78",
924
924
  "defu": "^6.1.7",
925
- "powerlines": "^0.43.23",
925
+ "powerlines": "^0.14.4",
926
926
  "prettier": "^3.8.3",
927
927
  "unctx": "^2.5.0"
928
928
  },
929
929
  "devDependencies": {
930
- "@powerlines/plugin-plugin": "^0.12.375",
930
+ "@powerlines/plugin-plugin": "^0.12.377",
931
931
  "@types/node": "^25.6.0"
932
932
  },
933
933
  "publishConfig": { "access": "public" },
934
- "gitHead": "b683603833a7d11e315048f040e7aac22a4586f2"
934
+ "gitHead": "d145cebdbcb32726955a6a4217a8bdf756411a7b"
935
935
  }