build-strap 5.1.0 → 5.2.1-main.131
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 +2 -4
- package/src/orbstack.d.ts +2 -1
- package/src/orbstack.js +3 -2
- package/src/pkg.d.ts +7 -1
package/package.json
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "build-strap",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.2.1-main.131",
|
|
4
4
|
"description": "Node scripts for building things",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"
|
|
7
|
-
"Justin Murray <justin@murrayju.com>"
|
|
8
|
-
],
|
|
6
|
+
"author": "Justin Murray <justin@murrayju.com>",
|
|
9
7
|
"repository": {
|
|
10
8
|
"type": "git",
|
|
11
9
|
"url": "https://github.com/murrayju/build-strap"
|
package/src/orbstack.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { SpawnOptions, SpawnResult } from './cp';
|
|
2
|
+
export declare const ensureOrbStackInstalled: (options?: SpawnOptions) => Promise<SpawnResult | null>;
|
|
2
3
|
export declare const ensureOrbStackRunning: (timeoutSeconds?: number) => Promise<void>;
|
|
3
4
|
export declare const ensureOrbStackConfigured: (desiredConfig?: null | Record<string, unknown>) => Promise<void>;
|
package/src/orbstack.js
CHANGED
|
@@ -6,13 +6,14 @@ import { spawn } from './cp';
|
|
|
6
6
|
import { dockerIsRunning } from './docker';
|
|
7
7
|
import { cmdExists, isMac } from './env';
|
|
8
8
|
import { buildLog } from './run';
|
|
9
|
-
export const ensureOrbStackInstalled = async () => {
|
|
9
|
+
export const ensureOrbStackInstalled = async (options) => {
|
|
10
10
|
if (!isMac()) {
|
|
11
11
|
throw new Error('OrbStack is only supported on macOS');
|
|
12
12
|
}
|
|
13
13
|
if (!(await cmdExists('orb'))) {
|
|
14
|
-
|
|
14
|
+
return brew(['install', 'orbstack'], options);
|
|
15
15
|
}
|
|
16
|
+
return null;
|
|
16
17
|
};
|
|
17
18
|
export const ensureOrbStackRunning = async (timeoutSeconds = 600) => {
|
|
18
19
|
if (!(await dockerIsRunning())) {
|
package/src/pkg.d.ts
CHANGED
|
@@ -10,9 +10,15 @@ export interface BuildStrapConfig {
|
|
|
10
10
|
releaseBranch?: string;
|
|
11
11
|
repoType?: 'git' | 'hg';
|
|
12
12
|
}
|
|
13
|
+
export interface Person {
|
|
14
|
+
email?: string;
|
|
15
|
+
name: string;
|
|
16
|
+
url?: string;
|
|
17
|
+
}
|
|
13
18
|
export interface PackageJson {
|
|
14
|
-
|
|
19
|
+
author?: string | Person;
|
|
15
20
|
buildStrap: BuildStrapConfig;
|
|
21
|
+
contributors?: (string | Person)[];
|
|
16
22
|
dependencies?: Record<string, string>;
|
|
17
23
|
description?: string;
|
|
18
24
|
devDependencies?: Record<string, string>;
|