@powerlines/plugin-napi-rs 0.2.194 → 0.2.196

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.
@@ -1,4 +1,5 @@
1
1
  import { NapiPluginContext } from "../types/plugin.cjs";
2
+ import "../types/index.cjs";
2
3
  //#region src/helpers/format-path.d.ts
3
4
  /**
4
5
  * Format the given path by replacing tokens and making it relative to the project root.
@@ -1 +1 @@
1
- {"version":3,"file":"format-path.d.cts","names":[],"sources":["../../src/helpers/format-path.ts"],"mappings":";;;;;AAiCA;;;;;;;iBAAgB,UAAA,CACd,OAAA,EAAS,iBAAiB,EAC1B,IAAA,WACA,UAAA"}
1
+ {"version":3,"file":"format-path.d.cts","names":[],"sources":["../../src/helpers/format-path.ts"],"mappings":";;;;;;;;;;;;;iBAiCgB,WACd,SAAS,mBACT,eACA"}
@@ -1,4 +1,5 @@
1
1
  import { NapiPluginContext } from "../types/plugin.mjs";
2
+ import "../types/index.mjs";
2
3
  //#region src/helpers/format-path.d.ts
3
4
  /**
4
5
  * Format the given path by replacing tokens and making it relative to the project root.
package/dist/index.cjs CHANGED
@@ -36,6 +36,8 @@ const plugin = (options = {}) => {
36
36
  else this.config.napi.targets = require_types_targets.DEFAULT_TARGETS.map((target) => (0, _napi_rs_cli.parseTriple)(target));
37
37
  if (!this.config.napi.profile && this.additionalArgs.profile && ((0, _stryke_type_checks_is_string.isString)(this.additionalArgs.profile) || Array.isArray(this.additionalArgs.profile) && this.additionalArgs.profile.length > 0)) this.config.napi.profile = Array.isArray(this.additionalArgs.profile) && this.additionalArgs.profile.length > 0 ? this.additionalArgs.profile[0] : String(this.additionalArgs.profile);
38
38
  if (!this.config.napi.release && this.additionalArgs.release) this.config.napi.release = Boolean(this.additionalArgs.release);
39
+ if (!this.config.napi.crossCompile && this.additionalArgs.crossCompile) this.config.napi.crossCompile = Boolean(this.additionalArgs.crossCompile);
40
+ if (!this.config.napi.useNapiCross && this.additionalArgs.useNapiCross) this.config.napi.useNapiCross = Boolean(this.additionalArgs.useNapiCross);
39
41
  if (!this.config.napi.configPath && this.additionalArgs.configPath && ((0, _stryke_type_checks_is_string.isString)(this.additionalArgs.configPath) || Array.isArray(this.additionalArgs.configPath) && this.additionalArgs.configPath.length > 0)) this.config.napi.configPath = Array.isArray(this.additionalArgs.configPath) && this.additionalArgs.configPath.length > 0 ? this.additionalArgs.configPath[0] : String(this.additionalArgs.configPath);
40
42
  if (!this.config.napi.manifestPath && this.additionalArgs.manifestPath && ((0, _stryke_type_checks_is_string.isString)(this.additionalArgs.manifestPath) || Array.isArray(this.additionalArgs.manifestPath) && this.additionalArgs.manifestPath.length > 0)) this.config.napi.manifestPath = Array.isArray(this.additionalArgs.manifestPath) && this.additionalArgs.manifestPath.length > 0 ? this.additionalArgs.manifestPath[0] : String(this.additionalArgs.manifestPath);
41
43
  if (!this.config.napi.npmDir && this.additionalArgs.npmDir && ((0, _stryke_type_checks_is_string.isString)(this.additionalArgs.npmDir) || Array.isArray(this.additionalArgs.npmDir) && this.additionalArgs.npmDir.length > 0)) this.config.napi.npmDir = Array.isArray(this.additionalArgs.npmDir) && this.additionalArgs.npmDir.length > 0 ? this.additionalArgs.npmDir[0] : String(this.additionalArgs.npmDir);
@@ -95,6 +97,8 @@ const plugin = (options = {}) => {
95
97
  jsBinding: this.config.napi.jsBinding,
96
98
  dts: this.config.napi.dts,
97
99
  dtsCache: this.config.napi.dtsCache ?? !this.config.skipCache,
100
+ crossCompile: this.config.napi.crossCompile,
101
+ useNapiCross: this.config.napi.useNapiCross,
98
102
  verbose: (0, powerlines_plugin_utils.isVerbose)(this)
99
103
  });
100
104
  const outputs = await task;
package/dist/index.d.cts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { AVAILABLE_TARGETS, DEFAULT_TARGETS, Platform, Target, TargetTriple } from "./types/targets.cjs";
2
2
  import { WasmBrowserOptions, WasmOptions } from "./types/wasm.cjs";
3
3
  import { NapiPluginContext, NapiPluginOptions, NapiPluginResolvedConfig, NapiPluginUserConfig, NapiResolvedPluginOptions } from "./types/plugin.cjs";
4
+ import "./types/index.cjs";
4
5
  import { Plugin } from "powerlines";
5
-
6
6
  //#region src/index.d.ts
7
7
  declare module "powerlines" {
8
8
  interface Config {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;;;YAkCY,MAAA;IACR,IAAA,GAAO,iBAAiB;EAAA;AAAA;;;;;;cASf,MAAA,oBAA2B,iBAAA,GAAoB,iBAAA,EAC1D,OAAA,GAAS,iBAAA,KAkPJ,MAAA,CAAO,QAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;;;YAkCY;IACR,OAAO;;;;;;;;cASE,SAAU,iBAAiB,oBAAoB,mBAC1D,UAAS,sBAsQJ,OAAO"}
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { AVAILABLE_TARGETS, DEFAULT_TARGETS, Platform, Target, TargetTriple } from "./types/targets.mjs";
2
2
  import { WasmBrowserOptions, WasmOptions } from "./types/wasm.mjs";
3
3
  import { NapiPluginContext, NapiPluginOptions, NapiPluginResolvedConfig, NapiPluginUserConfig, NapiResolvedPluginOptions } from "./types/plugin.mjs";
4
+ import "./types/index.mjs";
4
5
  import { Plugin } from "powerlines";
5
-
6
6
  //#region src/index.d.ts
7
7
  declare module "powerlines" {
8
8
  interface Config {
package/dist/index.mjs CHANGED
@@ -35,6 +35,8 @@ const plugin = (options = {}) => {
35
35
  else this.config.napi.targets = DEFAULT_TARGETS.map((target) => parseTriple(target));
36
36
  if (!this.config.napi.profile && this.additionalArgs.profile && (isString(this.additionalArgs.profile) || Array.isArray(this.additionalArgs.profile) && this.additionalArgs.profile.length > 0)) this.config.napi.profile = Array.isArray(this.additionalArgs.profile) && this.additionalArgs.profile.length > 0 ? this.additionalArgs.profile[0] : String(this.additionalArgs.profile);
37
37
  if (!this.config.napi.release && this.additionalArgs.release) this.config.napi.release = Boolean(this.additionalArgs.release);
38
+ if (!this.config.napi.crossCompile && this.additionalArgs.crossCompile) this.config.napi.crossCompile = Boolean(this.additionalArgs.crossCompile);
39
+ if (!this.config.napi.useNapiCross && this.additionalArgs.useNapiCross) this.config.napi.useNapiCross = Boolean(this.additionalArgs.useNapiCross);
38
40
  if (!this.config.napi.configPath && this.additionalArgs.configPath && (isString(this.additionalArgs.configPath) || Array.isArray(this.additionalArgs.configPath) && this.additionalArgs.configPath.length > 0)) this.config.napi.configPath = Array.isArray(this.additionalArgs.configPath) && this.additionalArgs.configPath.length > 0 ? this.additionalArgs.configPath[0] : String(this.additionalArgs.configPath);
39
41
  if (!this.config.napi.manifestPath && this.additionalArgs.manifestPath && (isString(this.additionalArgs.manifestPath) || Array.isArray(this.additionalArgs.manifestPath) && this.additionalArgs.manifestPath.length > 0)) this.config.napi.manifestPath = Array.isArray(this.additionalArgs.manifestPath) && this.additionalArgs.manifestPath.length > 0 ? this.additionalArgs.manifestPath[0] : String(this.additionalArgs.manifestPath);
40
42
  if (!this.config.napi.npmDir && this.additionalArgs.npmDir && (isString(this.additionalArgs.npmDir) || Array.isArray(this.additionalArgs.npmDir) && this.additionalArgs.npmDir.length > 0)) this.config.napi.npmDir = Array.isArray(this.additionalArgs.npmDir) && this.additionalArgs.npmDir.length > 0 ? this.additionalArgs.npmDir[0] : String(this.additionalArgs.npmDir);
@@ -94,6 +96,8 @@ const plugin = (options = {}) => {
94
96
  jsBinding: this.config.napi.jsBinding,
95
97
  dts: this.config.napi.dts,
96
98
  dtsCache: this.config.napi.dtsCache ?? !this.config.skipCache,
99
+ crossCompile: this.config.napi.crossCompile,
100
+ useNapiCross: this.config.napi.useNapiCross,
97
101
  verbose: isVerbose(this)
98
102
  });
99
103
  const outputs = await task;
@@ -4,7 +4,6 @@ import { NapiCli } from "@napi-rs/cli";
4
4
  import { AlloyPluginContext, AlloyPluginResolvedConfig, AlloyPluginUserConfig } from "@powerlines/plugin-alloy/types";
5
5
  import { BabelPluginContext, BabelPluginResolvedConfig, BabelPluginUserConfig } from "@powerlines/plugin-babel/types";
6
6
  import { RequiredKeys } from "@stryke/types/base";
7
-
8
7
  //#region src/types/plugin.d.ts
9
8
  /**
10
9
  * The options for the N-API Rust plugin.
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;;;;;AAyCA;;;;;;UAAiB,iBAAA;EA6CR;;;EAzCP,UAAA;EAAA;;;EAKA,WAAA;EAqBA;;;;;;EAbA,cAAA;EA4BA;;;;;;EApBA,MAAA;EAiDA;;;EA5CA,MAAA,GAAS,YAAA,GAAe,MAAA;EAoExB;;;EA/DA,OAAA,IAAW,YAAA,GAAe,MAAA;EAqF1B;;;EAhFA,OAAA;EAoGA;;;EA/FA,IAAA,GAAO,WAAA;EAmHP;;;EA9GA,OAAA;EAwHY;AAGd;;EAtHE,QAAA,GAAW,KAAA;EAsHsB;;;EAjHjC,WAAA;EAmHyB;;;;;EA5GzB,iBAAA;EA4GyB;AAG3B;;;;EAxGE,SAAA;EAwGsC;;;;;;;EA/FtC,GAAA;EA8GA;;;EAzGA,YAAA;EA8Ge;AAAA;AAGjB;EA5GE,UAAA;;;;EAKA,SAAA;EAyGiC;;;EApGjC,SAAA;EAoGE;;;EA/FF,eAAA;EAkGe;;;;;EA3Ff,QAAA;EAgGqB;;;EA3FrB,SAAA;EA2FoB;;;EAtFpB,SAAA;EAkFmD;;;EA7EnD,WAAA;EAiFqB;;;EA5ErB,SAAA;EA6Ea;;;EAxEb,aAAA;;;;EAKA,WAAA;;;;EAKA,QAAA;;;;EAKA,KAAA;;;;EAKA,YAAA;;;;EAKA,QAAA;;;;EAKA,YAAA;AAAA;AAAA,KAGU,oBAAA,GAAuB,qBAAA,GACjC,qBAAA;EACE,IAAA,EAAM,iBAAA;AAAA;AAAA,KAGE,yBAAA,GAA4B,IAAA,CACtC,YAAA,CACE,iBAAA;;;;EAaF,MAAA,EAAQ,MAAA;;;;EAKR,OAAA,EAAS,MAAA;AAAA;AAAA,KAGC,wBAAA,GAA2B,yBAAA,GACrC,yBAAA;EACE,IAAA,EAAM,yBAAA;AAAA;AAAA,UAGO,iBAAA,yBACS,wBAAA,GAA2B,wBAAA,UAGjD,kBAAA,CAAmB,eAAA,GACnB,kBAAA,CAAmB,eAAA;EACrB,IAAA,EAAM,OAAA;AAAA"}
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;;;;;;;;;;UAyCiB;;;;EAIf;;;;EAKA;;;;;;;EAQA;;;;;;;EAQA;;;;EAKA,SAAS,eAAe;;;;EAKxB,WAAW,eAAe;;;;EAK1B;;;;EAKA,OAAO;;;;EAKP;;;;EAKA,WAAW;;;;EAKX;;;;;;EAOA;;;;;;EAOA;;;;;;;;EASA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;;;EAOA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;KAGU,uBAAuB,wBACjC;EACE,MAAM;;KAGE,4BAA4B,KACtC,aACE;;;;EAaF,QAAQ;;;;EAKR,SAAS;;KAGC,2BAA2B,4BACrC;EACE,MAAM;;UAGO,kBACf,wBAAwB,2BAA2B,kCAGjD,mBAAmB,kBACnB,mBAAmB;EACrB,MAAM"}
@@ -4,7 +4,6 @@ import { NapiCli } from "@napi-rs/cli";
4
4
  import { AlloyPluginContext, AlloyPluginResolvedConfig, AlloyPluginUserConfig } from "@powerlines/plugin-alloy/types";
5
5
  import { BabelPluginContext, BabelPluginResolvedConfig, BabelPluginUserConfig } from "@powerlines/plugin-babel/types";
6
6
  import { RequiredKeys } from "@stryke/types/base";
7
-
8
7
  //#region src/types/plugin.d.ts
9
8
  /**
10
9
  * The options for the N-API Rust plugin.
@@ -1 +1 @@
1
- {"version":3,"file":"targets.d.cts","names":[],"sources":["../../src/types/targets.ts"],"mappings":";cAkBa,iBAAA;AAAA,KA2BD,YAAA,WAAuB,iBAAiB;AAAA,cAEvC,eAAA;AAAA,KAOD,QAAA,GACV,MAAA,CAAO,QAAQ;AAAA,KAGZ,UAAA;AAAA,UAiBY,MAAA;EACf,MAAA;EACA,eAAA;EACA,QAAA,EAAU,QAAA;EACV,IAAA,EAAM,UAAU;EAChB,GAAA;AAAA"}
1
+ {"version":3,"file":"targets.d.cts","names":[],"sources":["../../src/types/targets.ts"],"mappings":";cAkBa;KA2BD,uBAAuB;cAEtB;KAOD,WACV,OAAO;KAGJ;UAiBY;EACf;EACA;EACA,UAAU;EACV,MAAM;EACN"}
@@ -1 +1 @@
1
- {"version":3,"file":"wasm.d.cts","names":[],"sources":["../../src/types/wasm.ts"],"mappings":";;AAqBA;;UAAiB,kBAAA;EAAkB;;;EAIjC,EAAA;EAeA;;AAAU;EAVV,SAAA;EAgB0B;;;EAX1B,MAAA;EAsBA;;;EAjBA,UAAA;AAAA;;;;UAMe,WAAA;;;;;;EAMf,aAAA;;;;EAKA,aAAA;;;;EAKA,OAAA,EAAS,kBAAkB;AAAA"}
1
+ {"version":3,"file":"wasm.d.cts","names":[],"sources":["../../src/types/wasm.ts"],"mappings":";;;;UAqBiB;;;;EAIf;;;;EAKA;;;;EAKA;;;;EAKA;;;;;UAMe;;;;;;EAMf;;;;EAKA;;;;EAKA,SAAS"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-napi-rs",
3
- "version": "0.2.194",
3
+ "version": "0.2.196",
4
4
  "private": false,
5
5
  "description": "A package containing a Powerlines plugin for integrating with N-API Rust modules.",
6
6
  "keywords": ["napi-rs", "powerlines", "storm-software", "powerlines-plugin"],
@@ -137,9 +137,9 @@
137
137
  "@alloy-js/markdown": "^0.23.0",
138
138
  "@alloy-js/typescript": "^0.23.0",
139
139
  "@napi-rs/cli": "^3.7.2",
140
- "@powerlines/plugin-alloy": "0.26.234",
141
- "@powerlines/plugin-automd": "0.1.602",
142
- "@powerlines/plugin-plugin": "0.12.553",
140
+ "@powerlines/plugin-alloy": "^0.26.236",
141
+ "@powerlines/plugin-automd": "^0.1.604",
142
+ "@powerlines/plugin-plugin": "^0.12.555",
143
143
  "@stryke/convert": "^0.7.26",
144
144
  "@stryke/fs": "^0.33.96",
145
145
  "@stryke/path": "^0.29.22",
@@ -148,14 +148,14 @@
148
148
  "@stryke/types": "^0.12.23",
149
149
  "automd": "^0.4.3",
150
150
  "defu": "^6.1.7",
151
- "powerlines": "0.47.141"
151
+ "powerlines": "^0.47.143"
152
152
  },
153
153
  "devDependencies": {
154
154
  "@napi-rs/wasm-runtime": "^1.1.6",
155
- "@types/node": "^25.9.4"
155
+ "@types/node": "^25.9.5"
156
156
  },
157
157
  "peerDependencies": { "@napi-rs/wasm-runtime": ">=1.1.4" },
158
158
  "peerDependenciesMeta": { "@napi-rs/wasm-runtime": { "optional": true } },
159
159
  "publishConfig": { "access": "public" },
160
- "gitHead": "c2c932341c73ce708ac8e69c0d6c692ea41b4675"
160
+ "gitHead": "cea2b02d3fb6556ff2e53576b6a17787b4e28d67"
161
161
  }