@napi-rs/cli 3.1.3 → 3.1.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@napi-rs/cli",
3
- "version": "3.1.3",
3
+ "version": "3.1.4",
4
4
  "description": "Cli tools for napi-rs",
5
5
  "author": "LongYinan <lynweklm@gmail.com>",
6
6
  "homepage": "https://github.com/napi-rs/napi-rs",
package/src/api/build.ts CHANGED
@@ -980,7 +980,8 @@ export type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array
980
980
  this.config.binaryName,
981
981
  this.config.packageName,
982
982
  idents,
983
- this.config.packageJson.version,
983
+ // in npm preversion hook
984
+ process.env.npm_new_version ?? this.config.packageJson.version,
984
985
  )
985
986
 
986
987
  try {