@architect/inventory 3.4.3-RC.0 → 3.4.3-RC.1

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": "@architect/inventory",
3
- "version": "3.4.3-RC.0",
3
+ "version": "3.4.3-RC.1",
4
4
  "description": "Architect project resource enumeration utility",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -1,5 +1,6 @@
1
1
  let { join } = require('path')
2
2
  let { existsSync, readFileSync } = require('fs')
3
+ let isWin = process.platform.startsWith('win')
3
4
 
4
5
  module.exports = function getHandler ({ config, src, build, errors }) {
5
6
  let { handler, runtime, runtimeConfig } = config
@@ -21,7 +22,9 @@ module.exports = function getHandler ({ config, src, build, errors }) {
21
22
  }
22
23
  // Compiled to a binary
23
24
  else if (customRuntimeType === 'compiled') {
24
- handlerFile = join(build, runtimeConfig.buildSubpath || '', runtimeConfig.handlerFile || 'bootstrap')
25
+ /* istanbul ignore next */
26
+ let bootstrap = `bootstrap${isWin ? '.exe' : ''}`
27
+ handlerFile = join(build, runtimeConfig.buildSubpath || '', runtimeConfig.handlerFile || bootstrap)
25
28
  handlerMethod = null
26
29
  }
27
30
  // Interpreted