fix: cache for build vs target
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
||||
"name": "nexe",
|
||||
"description": "Create a single executable out of your Node.js application",
|
||||
"license": "MIT",
|
||||
"version": "2.0.0-rc.3",
|
||||
"version": "2.0.0-rc.4",
|
||||
"contributors": [
|
||||
"Craig Condon <craig.j.condon@gmail.com> (http://crcn.io)",
|
||||
"Jared Allard <jaredallard@outlook.com>",
|
||||
|
||||
+1
-1
@@ -191,7 +191,7 @@ export class NexeCompiler {
|
||||
async compileAsync(target: NexeTarget) {
|
||||
const step = (this.compileStep = this.log.step('Compiling result'))
|
||||
const build = this.options.build
|
||||
const location = this.getNodeExecutableLocation(target)
|
||||
const location = this.getNodeExecutableLocation(build ? undefined : target)
|
||||
let binary = (await pathExistsAsync(location)) ? createReadStream(location) : null
|
||||
const header = this._generateHeader()
|
||||
if (!build && !binary) {
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ import { getTarget, NexeTarget } from './target'
|
||||
import { EOL } from 'os'
|
||||
import * as chalk from 'chalk'
|
||||
|
||||
export const nexeVersion = '2.0.0-rc.3'
|
||||
export const nexeVersion = '2.0.0-rc.4'
|
||||
|
||||
export interface NexePatch {
|
||||
(compiler: NexeCompiler, next: () => Promise<void>): Promise<void>
|
||||
|
||||
Reference in New Issue
Block a user