@powerlines/plugin-napi-rs 0.2.194 → 0.2.195

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
@@ -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;
@@ -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,MAAA;IACR,IAAA,GAAO,iBAAiB;EAAA;AAAA;;;;;;cASf,MAAA,oBAA2B,iBAAA,GAAoB,iBAAA,EAC1D,OAAA,GAAS,iBAAA,KAsQJ,MAAA,CAAO,QAAA"}
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;
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.195",
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.235",
141
+ "@powerlines/plugin-automd": "0.1.603",
142
+ "@powerlines/plugin-plugin": "0.12.554",
143
143
  "@stryke/convert": "^0.7.26",
144
144
  "@stryke/fs": "^0.33.96",
145
145
  "@stryke/path": "^0.29.22",
@@ -148,7 +148,7 @@
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.142"
152
152
  },
153
153
  "devDependencies": {
154
154
  "@napi-rs/wasm-runtime": "^1.1.6",
@@ -157,5 +157,5 @@
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": "237e375dd938a17d2d363344b4d2c38c0173a76e"
161
161
  }