npm-pkgbuild 11.0.2 → 11.0.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": "npm-pkgbuild",
3
- "version": "11.0.2",
3
+ "version": "11.0.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -135,6 +135,7 @@ const toBeSkipped = new RegExp(
135
135
  "\\.ts",
136
136
  "\\.mts",
137
137
  "\\.d\\.ts",
138
+ "\\.debug\\.js",
138
139
  "\\.coffee",
139
140
  "tsdoc-metadata\\.json",
140
141
  "\\.orig",
@@ -184,7 +184,10 @@ export class RPM extends Packager {
184
184
  }
185
185
 
186
186
  await cp(
187
- join(tmpdir, "RPMS", properties.arch, this.packageFileName),
187
+ join(tmpdir, "RPMS",
188
+ // TODO handle arrays ?
189
+ Array.isArray(properties.arch) ? properties.arch[0] : properties.arch,
190
+ this.packageFileName),
188
191
  packageFile,
189
192
  { preserveTimestamps: true }
190
193
  );