Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9962630ace | |||
| 232e1005e6 | |||
| 9f22309949 | |||
| cf8e6ff393 |
Generated
+3930
-436
File diff suppressed because it is too large
Load Diff
+13
-6
@@ -2,7 +2,7 @@
|
||||
"name": "nexe",
|
||||
"description": "Create a single executable out of your Node.js application",
|
||||
"license": "MIT",
|
||||
"version": "4.0.0-beta.16",
|
||||
"version": "4.0.0-beta.18",
|
||||
"contributors": [
|
||||
"Craig Condon <craig.j.condon@gmail.com> (http://crcn.io)",
|
||||
"Jared Allard <jaredallard@outlook.com>",
|
||||
@@ -32,6 +32,13 @@
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
},
|
||||
"mocha": {
|
||||
"spec": "./test/**/*.spec.ts",
|
||||
"checkLeaks": true,
|
||||
"require": [
|
||||
"ts-node/register"
|
||||
]
|
||||
},
|
||||
"dependencies": {
|
||||
"@calebboyd/semaphore": "^1.3.1",
|
||||
"app-builder": "^6.2.2",
|
||||
@@ -39,14 +46,14 @@
|
||||
"chalk": "^2.4.2",
|
||||
"cherow": "1.6.9",
|
||||
"download": "^8.0.0",
|
||||
"globby": "^11.0.1",
|
||||
"globby": "^11.0.2",
|
||||
"got": "^11.8.1",
|
||||
"minimist": "^1.2.5",
|
||||
"mkdirp": "^1.0.4",
|
||||
"multistream": "^4.0.1",
|
||||
"ora": "^3.4.0",
|
||||
"pify": "^5.0.0",
|
||||
"resolve-dependencies": "^6.0.4",
|
||||
"resolve-dependencies": "^6.0.5",
|
||||
"rimraf": "^3.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
@@ -56,15 +63,15 @@
|
||||
"@types/got": "^9.6.11",
|
||||
"@types/minimist": "^1.2.1",
|
||||
"@types/mkdirp": "^1.0.1",
|
||||
"@types/mocha": "^7",
|
||||
"@types/mocha": "^8.2.1",
|
||||
"@types/multistream": "^2.1.1",
|
||||
"@types/ora": "^3.2.0",
|
||||
"@types/pify": "5.0.0",
|
||||
"@types/rimraf": "3.0.0",
|
||||
"@types/semver": "^7.3.4",
|
||||
"chai": "^4.2.0",
|
||||
"chai": "^4.3.0",
|
||||
"execa": "^5.0.0",
|
||||
"mocha": "^7",
|
||||
"mocha": "^8.3.0",
|
||||
"prettier": "^2.2.1",
|
||||
"ts-node": "^8.9.0",
|
||||
"tslint": "^6.1.1",
|
||||
|
||||
+4
-7
@@ -110,13 +110,7 @@ export class NexeCompiler {
|
||||
//SOMEDAY iterate over multiple targets with `--outDir`
|
||||
this.targets = options.targets as NexeTarget[]
|
||||
this.target = this.targets[0]
|
||||
if (
|
||||
!(
|
||||
options.remote.startsWith('http://') ||
|
||||
options.remote.startsWith('https://') ||
|
||||
options.remote.startsWith('file://')
|
||||
)
|
||||
) {
|
||||
if (!/https?\:\/\//.test(options.remote)) {
|
||||
throw new NexeError(
|
||||
`Invalid remote URI scheme (must be http, https, or file): ${options.remote}`
|
||||
)
|
||||
@@ -198,6 +192,9 @@ export class NexeCompiler {
|
||||
}
|
||||
|
||||
public getNodeExecutableLocation(target?: NexeTarget) {
|
||||
if (this.options.asset) {
|
||||
return resolve(this.options.cwd, this.options.asset)
|
||||
}
|
||||
if (target) {
|
||||
return join(this.options.temp, target.toString())
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@ export interface NexeOptions {
|
||||
targets: (string | NexeTarget)[]
|
||||
name: string
|
||||
remote: string
|
||||
asset: string
|
||||
cwd: string
|
||||
fs: boolean | string[]
|
||||
flags: string[]
|
||||
@@ -77,6 +78,7 @@ const alias = {
|
||||
i: 'input',
|
||||
o: 'output',
|
||||
v: 'version',
|
||||
a: 'asset',
|
||||
t: 'target',
|
||||
b: 'build',
|
||||
n: 'name',
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@ import { getUnBuiltReleases, getLatestGitRelease } from '../lib/releases'
|
||||
import { runDockerBuild } from './docker'
|
||||
import { getTarget, targetsEqual, NexeTarget } from '../lib/target'
|
||||
import { pathExistsAsync, readFileAsync, execFileAsync, semverGt } from '../lib/util'
|
||||
import got = require('got')
|
||||
import got from 'got'
|
||||
import { cpus } from 'os'
|
||||
|
||||
const env = process.env,
|
||||
@@ -86,7 +86,7 @@ async function build() {
|
||||
return
|
||||
}
|
||||
await got(gitRelease.upload_url.split('{')[0], {
|
||||
query: { name: target.toString() },
|
||||
searchParams: { name: target.toString() },
|
||||
body: await readFileAsync(output),
|
||||
headers: {
|
||||
...headers,
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
./test/**/*.spec.ts
|
||||
--check-leaks
|
||||
--require ts-node/register
|
||||
--recursive
|
||||
Reference in New Issue
Block a user