@art-work/cli 0.1.0 → 0.1.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/README.md +2 -2
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/private/normalizeRecordPaths.d.ts +2 -2
- package/dist/config/private/normalizeRecordPaths.d.ts.map +1 -1
- package/dist/config/types.d.ts +4 -10
- package/dist/config/types.d.ts.map +1 -1
- package/dist/index.js +10 -10
- package/dist/private/resources/checkout/readCheckoutRecord.d.ts +2 -2
- package/dist/private/resources/checkout/readCheckoutRecord.d.ts.map +1 -1
- package/dist/private/resources/namespace/readNamespaceRecord.d.ts +2 -2
- package/dist/private/resources/namespace/readNamespaceRecord.d.ts.map +1 -1
- package/dist/private/resources/package/readPackageRecord.d.ts +2 -2
- package/dist/private/resources/package/readPackageRecord.d.ts.map +1 -1
- package/dist/private/resources/project/readProjectRecord.d.ts +2 -2
- package/dist/private/resources/project/readProjectRecord.d.ts.map +1 -1
- package/dist/private/resources/repository/readRepositoryRecord.d.ts +2 -2
- package/dist/private/resources/repository/readRepositoryRecord.d.ts.map +1 -1
- package/dist/test/helpers/records/createRecordFile.d.ts +2 -2
- package/dist/test/helpers/records/createRecordFile.d.ts.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @art-
|
|
1
|
+
# @art-work/cli
|
|
2
2
|
|
|
3
3
|
**Purpose:** Operate and monitor multi-repository development environments.
|
|
4
4
|
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
## Installation
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
npm install -g @art-
|
|
20
|
+
npm install -g @art-work/cli
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
## Usage
|
package/dist/config/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FSRecordsPath } from '@art-lib/fs-records';
|
|
2
2
|
import { PartialWorkspaceConfig } from '../types';
|
|
3
|
-
export declare function normalizeRecordPaths(records: PartialWorkspaceConfig['records']):
|
|
3
|
+
export declare function normalizeRecordPaths(records: PartialWorkspaceConfig['records']): FSRecordsPath[];
|
|
4
4
|
//# sourceMappingURL=normalizeRecordPaths.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizeRecordPaths.d.ts","sourceRoot":"","sources":["../../../src/config/private/normalizeRecordPaths.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"normalizeRecordPaths.d.ts","sourceRoot":"","sources":["../../../src/config/private/normalizeRecordPaths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAUlD,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,sBAAsB,CAAC,SAAS,CAAC,GAAG,aAAa,EAAE,CAsBhG"}
|
package/dist/config/types.d.ts
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
base: string;
|
|
3
|
-
pattern: string | string[];
|
|
4
|
-
ignored: string[];
|
|
5
|
-
excluded: string[];
|
|
6
|
-
gitignore: boolean;
|
|
7
|
-
}
|
|
1
|
+
import { FSRecordsPath } from '@art-lib/fs-records';
|
|
8
2
|
export interface WorkspaceConfig {
|
|
9
3
|
root: {
|
|
10
4
|
path: string;
|
|
@@ -17,15 +11,15 @@ export interface WorkspaceConfig {
|
|
|
17
11
|
template: string;
|
|
18
12
|
};
|
|
19
13
|
records: {
|
|
20
|
-
paths:
|
|
14
|
+
paths: FSRecordsPath[];
|
|
21
15
|
};
|
|
22
16
|
}
|
|
23
17
|
export interface PartialWorkspaceConfig {
|
|
24
18
|
root?: Partial<WorkspaceConfig['root']>;
|
|
25
19
|
clone?: Partial<WorkspaceConfig['clone']>;
|
|
26
20
|
checkouts?: Partial<WorkspaceConfig['checkouts']>;
|
|
27
|
-
records?: Partial<
|
|
28
|
-
paths?: Partial<
|
|
21
|
+
records?: Partial<FSRecordsPath> & {
|
|
22
|
+
paths?: Partial<FSRecordsPath>[];
|
|
29
23
|
};
|
|
30
24
|
}
|
|
31
25
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/config/types.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/config/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,MAAM,WAAW,eAAe;IAC/B,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACvB,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACxB,SAAS,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9C,OAAO,EAAE;QAAE,KAAK,EAAE,aAAa,EAAE,CAAA;KAAE,CAAC;CACpC;AAED,MAAM,WAAW,sBAAsB;IACtC,IAAI,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC;IACxC,KAAK,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC;IAC1C,SAAS,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC,CAAC;IAClD,OAAO,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG;QAAE,KAAK,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,EAAE,CAAA;KAAE,CAAC;CACxE"}
|
package/dist/index.js
CHANGED
|
@@ -247,10 +247,10 @@ function presentOperationsReport(log) {
|
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
// src/private/resources/checkout/loadCheckoutRecords.ts
|
|
250
|
-
import { findRecordFiles } from "@art-
|
|
250
|
+
import { findRecordFiles } from "@art-lib/fs-records";
|
|
251
251
|
|
|
252
252
|
// src/private/resources/checkout/readCheckoutRecord.ts
|
|
253
|
-
import { readRecordFileContent } from "@art-
|
|
253
|
+
import { readRecordFileContent } from "@art-lib/fs-records";
|
|
254
254
|
async function readCheckoutRecord(file) {
|
|
255
255
|
const fileWithContents = file.content ? file : await readRecordFileContent(file);
|
|
256
256
|
if (!fileWithContents.content) {
|
|
@@ -311,10 +311,10 @@ async function loadCheckoutRecords(ctx, repos) {
|
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
// src/private/resources/repository/loadRepositoryRecords.ts
|
|
314
|
-
import { findRecordFiles as findRecordFiles2 } from "@art-
|
|
314
|
+
import { findRecordFiles as findRecordFiles2 } from "@art-lib/fs-records";
|
|
315
315
|
|
|
316
316
|
// src/private/resources/repository/readRepositoryRecord.ts
|
|
317
|
-
import { readRecordFileContent as readRecordFileContent2 } from "@art-
|
|
317
|
+
import { readRecordFileContent as readRecordFileContent2 } from "@art-lib/fs-records";
|
|
318
318
|
async function readRepositoryRecord(file) {
|
|
319
319
|
const fileWithContents = file.content ? file : await readRecordFileContent2(file);
|
|
320
320
|
if (!fileWithContents.content) {
|
|
@@ -1351,10 +1351,10 @@ function getRepositoryCheckoutPackages(checkoutPath, graph) {
|
|
|
1351
1351
|
}
|
|
1352
1352
|
|
|
1353
1353
|
// src/private/resources/namespace/loadNamespaceRecords.ts
|
|
1354
|
-
import { findRecordFiles as findRecordFiles3 } from "@art-
|
|
1354
|
+
import { findRecordFiles as findRecordFiles3 } from "@art-lib/fs-records";
|
|
1355
1355
|
|
|
1356
1356
|
// src/private/resources/namespace/readNamespaceRecord.ts
|
|
1357
|
-
import { readRecordFileContent as readRecordFileContent3 } from "@art-
|
|
1357
|
+
import { readRecordFileContent as readRecordFileContent3 } from "@art-lib/fs-records";
|
|
1358
1358
|
async function readNamespaceRecord(file) {
|
|
1359
1359
|
const fileWithContents = file.content ? file : await readRecordFileContent3(file);
|
|
1360
1360
|
if (!fileWithContents.content) {
|
|
@@ -1388,10 +1388,10 @@ async function loadNamespaceRecords(config, checkoutPath) {
|
|
|
1388
1388
|
}
|
|
1389
1389
|
|
|
1390
1390
|
// src/private/resources/package/loadPackageRecords.ts
|
|
1391
|
-
import { findRecordFiles as findRecordFiles4 } from "@art-
|
|
1391
|
+
import { findRecordFiles as findRecordFiles4 } from "@art-lib/fs-records";
|
|
1392
1392
|
|
|
1393
1393
|
// src/private/resources/package/readPackageRecord.ts
|
|
1394
|
-
import { readRecordFileContent as readRecordFileContent4 } from "@art-
|
|
1394
|
+
import { readRecordFileContent as readRecordFileContent4 } from "@art-lib/fs-records";
|
|
1395
1395
|
async function readPackageRecord(file) {
|
|
1396
1396
|
const fileWithContents = file.content ? file : await readRecordFileContent4(file);
|
|
1397
1397
|
if (!fileWithContents.content) {
|
|
@@ -1421,10 +1421,10 @@ async function loadPackageRecords(config, checkoutPath) {
|
|
|
1421
1421
|
}
|
|
1422
1422
|
|
|
1423
1423
|
// src/private/resources/project/loadProjectRecords.ts
|
|
1424
|
-
import { findRecordFiles as findRecordFiles5 } from "@art-
|
|
1424
|
+
import { findRecordFiles as findRecordFiles5 } from "@art-lib/fs-records";
|
|
1425
1425
|
|
|
1426
1426
|
// src/private/resources/project/readProjectRecord.ts
|
|
1427
|
-
import { readRecordFileContent as readRecordFileContent5 } from "@art-
|
|
1427
|
+
import { readRecordFileContent as readRecordFileContent5 } from "@art-lib/fs-records";
|
|
1428
1428
|
async function readProjectRecord(file) {
|
|
1429
1429
|
const fileWithContents = file.content ? file : await readRecordFileContent5(file);
|
|
1430
1430
|
if (!fileWithContents.content) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type FSRecordFile } from '@art-lib/fs-records';
|
|
2
2
|
import type { CheckoutRecord } from '../types';
|
|
3
|
-
export declare function readCheckoutRecord(file:
|
|
3
|
+
export declare function readCheckoutRecord(file: FSRecordFile): Promise<CheckoutRecord | null>;
|
|
4
4
|
//# sourceMappingURL=readCheckoutRecord.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readCheckoutRecord.d.ts","sourceRoot":"","sources":["../../../../src/private/resources/checkout/readCheckoutRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"readCheckoutRecord.d.ts","sourceRoot":"","sources":["../../../../src/private/resources/checkout/readCheckoutRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAyB,MAAM,qBAAqB,CAAC;AAE/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CA8B3F"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type FSRecordFile } from '@art-lib/fs-records';
|
|
2
2
|
import type { NamespaceRecord } from '../types';
|
|
3
|
-
export declare function readNamespaceRecord(file:
|
|
3
|
+
export declare function readNamespaceRecord(file: FSRecordFile): Promise<NamespaceRecord | null>;
|
|
4
4
|
//# sourceMappingURL=readNamespaceRecord.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readNamespaceRecord.d.ts","sourceRoot":"","sources":["../../../../src/private/resources/namespace/readNamespaceRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"readNamespaceRecord.d.ts","sourceRoot":"","sources":["../../../../src/private/resources/namespace/readNamespaceRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAyB,MAAM,qBAAqB,CAAC;AAE/E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,CA+B7F"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type FSRecordFile } from '@art-lib/fs-records';
|
|
2
2
|
import type { PackageRecord } from '../types';
|
|
3
|
-
export declare function readPackageRecord(file:
|
|
3
|
+
export declare function readPackageRecord(file: FSRecordFile): Promise<PackageRecord | null>;
|
|
4
4
|
//# sourceMappingURL=readPackageRecord.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readPackageRecord.d.ts","sourceRoot":"","sources":["../../../../src/private/resources/package/readPackageRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"readPackageRecord.d.ts","sourceRoot":"","sources":["../../../../src/private/resources/package/readPackageRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAyB,MAAM,qBAAqB,CAAC;AAE/E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAuBzF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type FSRecordFile } from '@art-lib/fs-records';
|
|
2
2
|
import type { ProjectRecord } from '../types';
|
|
3
|
-
export declare function readProjectRecord(file:
|
|
3
|
+
export declare function readProjectRecord(file: FSRecordFile): Promise<ProjectRecord | null>;
|
|
4
4
|
//# sourceMappingURL=readProjectRecord.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readProjectRecord.d.ts","sourceRoot":"","sources":["../../../../src/private/resources/project/readProjectRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"readProjectRecord.d.ts","sourceRoot":"","sources":["../../../../src/private/resources/project/readProjectRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAyB,MAAM,qBAAqB,CAAC;AAE/E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CA+BzF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type FSRecordFile } from '@art-lib/fs-records';
|
|
2
2
|
import type { RepositoryRecord } from '../types';
|
|
3
|
-
export declare function readRepositoryRecord(file:
|
|
3
|
+
export declare function readRepositoryRecord(file: FSRecordFile): Promise<RepositoryRecord | null>;
|
|
4
4
|
//# sourceMappingURL=readRepositoryRecord.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readRepositoryRecord.d.ts","sourceRoot":"","sources":["../../../../src/private/resources/repository/readRepositoryRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"readRepositoryRecord.d.ts","sourceRoot":"","sources":["../../../../src/private/resources/repository/readRepositoryRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAyB,MAAM,qBAAqB,CAAC;AAE/E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CA6B/F"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function createRecordFile(searchPath: string, filename: string):
|
|
1
|
+
import type { FSRecordFile } from '@art-lib/fs-records';
|
|
2
|
+
export declare function createRecordFile(searchPath: string, filename: string): FSRecordFile;
|
|
3
3
|
//# sourceMappingURL=createRecordFile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createRecordFile.d.ts","sourceRoot":"","sources":["../../../../src/test/helpers/records/createRecordFile.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"createRecordFile.d.ts","sourceRoot":"","sources":["../../../../src/test/helpers/records/createRecordFile.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,YAAY,CASnF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@art-work/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "CLI for discovering projects, inspecting and synchronizing checkouts, linking resources, and executing commands across them.",
|
|
5
5
|
"author": "Noodlestan Collective",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"ci": "npm run lint && npm run build && npm run test"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@art-
|
|
46
|
+
"@art-lib/fs-records": "^0.0.1",
|
|
47
47
|
"commander": "^12.0.0",
|
|
48
48
|
"esbuild": "^0.28.0",
|
|
49
49
|
"simple-git": "^3.24.0"
|