Compare commits

...

2 Commits

Author SHA1 Message Date
calebboyd 9906df8d55 chore: bump rc6 2017-09-13 19:08:44 -05:00
calebboyd d685ec21e5 fix: custom bundle resolution 2017-09-13 19:07:54 -05:00
4 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ compile({
- If a string is provided it must be a valid relative module path
and should provide an export with the following signature:
```typescript
export function createBundle (options: NexeOptions): Promise<string>`
export function createBundle (options: NexeOptions): Promise<string>
```
- default: true
- #### `name: string`
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "nexe",
"description": "Create a single executable out of your Node.js application",
"license": "MIT",
"version": "2.0.0-rc.5",
"version": "2.0.0-rc.6",
"contributors": [
"Craig Condon <craig.j.condon@gmail.com> (http://crcn.io)",
"Jared Allard <jaredallard@outlook.com>",
+1 -1
View File
@@ -6,7 +6,7 @@ import { getTarget, NexeTarget } from './target'
import { EOL } from 'os'
import * as c from 'chalk'
export const nexeVersion = '2.0.0-rc.5'
export const nexeVersion = '2.0.0-rc.6'
export interface NexePatch {
(compiler: NexeCompiler, next: () => Promise<void>): Promise<void>
+2 -1
View File
@@ -1,6 +1,7 @@
import { NexeCompiler } from '../compiler'
import { FuseBox, JSONPlugin, CSSPlugin, HTMLPlugin, QuantumPlugin } from 'fuse-box'
import { readFileAsync, writeFileAsync } from '../util'
import { resolve } from 'path'
import NativeModulePlugin from '../bundling/fuse-native-module-plugin'
import { NexeOptions } from '../options'
@@ -46,7 +47,7 @@ export default async function bundle(compiler: NexeCompiler, next: any) {
let producer = createBundle
if (typeof compiler.options.bundle === 'string') {
producer = require(compiler.options.bundle).createBundle
producer = require(resolve(compiler.options.cwd, compiler.options.bundle)).createBundle
}
compiler.input = await producer(compiler.options)