@matter/create 0.12.4-alpha.0-20250213-1187f81eb → 0.12.4-alpha.0-20250217-b0bba5179
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/dist/esm/build.config.ts.js +2 -2
- package/dist/esm/cli.js +1 -1
- package/dist/esm/config.js +2 -2
- package/dist/esm/consumer-project.js +4 -4
- package/dist/esm/contributor-project.js +3 -3
- package/dist/esm/formatting.js +1 -1
- package/dist/esm/messages.js +1 -1
- package/dist/esm/new-project.js +1 -1
- package/dist/esm/run.d.ts +1 -1
- package/dist/esm/run.d.ts.map +1 -1
- package/dist/esm/run.js +1 -1
- package/dist/esm/usage.js +1 -1
- package/dist/templates/device-bridge-onoff/BridgedDevicesNode.ts +1 -1
- package/dist/templates/device-composed-onoff/ComposedDeviceNode.ts +1 -1
- package/dist/templates/device-multiple-onoff/MultiDeviceNode.ts +1 -1
- package/dist/templates/device-onoff/DeviceNode.ts +1 -1
- package/dist/templates/device-onoff-advanced/DeviceNodeFull.ts +1 -1
- package/dist/templates/device-sensor/SensorDeviceNode.ts +1 -1
- package/dist/templates/index.json +13 -13
- package/package.json +2 -2
- package/src/build.config.ts +2 -2
- package/src/cli.ts +1 -1
- package/src/config.ts +2 -2
- package/src/consumer-project.ts +4 -4
- package/src/contributor-project.ts +3 -3
- package/src/formatting.ts +1 -1
- package/src/messages.ts +1 -1
- package/src/new-project.ts +1 -1
- package/src/run.ts +1 -1
- package/src/usage.ts +1 -1
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Copyright 2022-2025 Matter.js Authors
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { mkdir, readFile, writeFile } from "fs/promises";
|
|
7
|
-
import { basename, dirname } from "path";
|
|
6
|
+
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
7
|
+
import { basename, dirname } from "node:path";
|
|
8
8
|
async function before({ project }) {
|
|
9
9
|
const examplesPkg = project.pkg.findPackage("@matter/examples");
|
|
10
10
|
const createPkg = project.pkg.findPackage("@matter/create");
|
package/dist/esm/cli.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2022-2025 Matter.js Authors
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { argv, exit, stdout } from "process";
|
|
6
|
+
import { argv, exit, stdout } from "node:process";
|
|
7
7
|
import { ConsumerProject } from "./consumer-project.js";
|
|
8
8
|
import { ContributorProject } from "./contributor-project.js";
|
|
9
9
|
import { bold } from "./formatting.js";
|
package/dist/esm/config.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Copyright 2022-2025 Matter.js Authors
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { readFile } from "fs/promises";
|
|
7
|
-
import { resolve } from "path";
|
|
6
|
+
import { readFile } from "node:fs/promises";
|
|
7
|
+
import { resolve } from "node:path";
|
|
8
8
|
const CREATE_DIR = resolve(import.meta.dirname, "../..");
|
|
9
9
|
const TEMPLATE_DIR = resolve(CREATE_DIR, "dist/templates");
|
|
10
10
|
let config;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Copyright 2022-2025 Matter.js Authors
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { execSync } from "child_process";
|
|
7
|
-
import { cp, mkdir, writeFile } from "fs/promises";
|
|
8
|
-
import { basename, resolve } from "path";
|
|
9
|
-
import { stderr } from "process";
|
|
6
|
+
import { execSync } from "node:child_process";
|
|
7
|
+
import { cp, mkdir, writeFile } from "node:fs/promises";
|
|
8
|
+
import { basename, resolve } from "node:path";
|
|
9
|
+
import { stderr } from "node:process";
|
|
10
10
|
import { Config, TEMPLATE_DIR } from "./config.js";
|
|
11
11
|
import { bold } from "./formatting.js";
|
|
12
12
|
import { notice } from "./messages.js";
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Copyright 2022-2025 Matter.js Authors
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { homedir } from "os";
|
|
7
|
-
import { join, resolve } from "path";
|
|
8
|
-
import { createInterface } from "readline/promises";
|
|
6
|
+
import { homedir } from "node:os";
|
|
7
|
+
import { join, resolve } from "node:path";
|
|
8
|
+
import { createInterface } from "node:readline/promises";
|
|
9
9
|
import { blue, bold, dim, fittedTextOf } from "./formatting.js";
|
|
10
10
|
import { error, info, notice } from "./messages.js";
|
|
11
11
|
import { createAndValidateDest, install, ProjectError } from "./new-project.js";
|
package/dist/esm/formatting.js
CHANGED
package/dist/esm/messages.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2022-2025 Matter.js Authors
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { stderr, stdout } from "process";
|
|
6
|
+
import { stderr, stdout } from "node:process";
|
|
7
7
|
import { bold, dim, fittedTextOf, green, red, visibleWidthOf, yellow } from "./formatting.js";
|
|
8
8
|
const WELCOME_TO = "\u{1F389} Welcome to";
|
|
9
9
|
const GRAPHIC = `
|
package/dist/esm/new-project.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2022-2025 Matter.js Authors
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { mkdir, readdir } from "fs/promises";
|
|
6
|
+
import { mkdir, readdir } from "node:fs/promises";
|
|
7
7
|
import { run } from "./run.js";
|
|
8
8
|
class ProjectError extends Error {
|
|
9
9
|
showUsage = false;
|
package/dist/esm/run.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2022-2025 Matter.js Authors
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { SpawnOptions, SpawnSyncOptions } from "child_process";
|
|
6
|
+
import { SpawnOptions, SpawnSyncOptions } from "node:child_process";
|
|
7
7
|
export declare function run(command: string, args?: string[], options?: SpawnOptions): Promise<void>;
|
|
8
8
|
export declare function git(args: string[], options: SpawnSyncOptions): Promise<void>;
|
|
9
9
|
//# sourceMappingURL=run.d.ts.map
|
package/dist/esm/run.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/run.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAS,YAAY,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/run.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAS,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3E,wBAAgB,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,YAAY,iBAyB3E;AAED,wBAAgB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,gBAAgB,iBAE5D"}
|
package/dist/esm/run.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2022-2025 Matter.js Authors
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { spawn } from "child_process";
|
|
6
|
+
import { spawn } from "node:child_process";
|
|
7
7
|
function run(command, args, options) {
|
|
8
8
|
return new Promise((resolve, reject) => {
|
|
9
9
|
let proc;
|
package/dist/esm/usage.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2022-2025 Matter.js Authors
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { stdout } from "process";
|
|
6
|
+
import { stdout } from "node:process";
|
|
7
7
|
import { Config } from "./config.js";
|
|
8
8
|
import { blue, bold, fittedTextOf, visibleWidthOf } from "./formatting.js";
|
|
9
9
|
import { welcome } from "./messages.js";
|
|
@@ -18,7 +18,7 @@ import { OnOffLightDevice } from "@matter/main/devices/on-off-light";
|
|
|
18
18
|
import { OnOffPlugInUnitDevice } from "@matter/main/devices/on-off-plug-in-unit";
|
|
19
19
|
import { AggregatorEndpoint } from "@matter/main/endpoints/aggregator";
|
|
20
20
|
import { logEndpoint } from "@matter/main/protocol";
|
|
21
|
-
import { execSync } from "child_process";
|
|
21
|
+
import { execSync } from "node:child_process";
|
|
22
22
|
|
|
23
23
|
/** Initialize configuration values */
|
|
24
24
|
const { isSocket, deviceName, vendorName, passcode, discriminator, vendorId, productName, productId, port, uniqueId } =
|
|
@@ -17,7 +17,7 @@ import { OnOffLightDevice } from "@matter/main/devices/on-off-light";
|
|
|
17
17
|
import { OnOffPlugInUnitDevice } from "@matter/main/devices/on-off-plug-in-unit";
|
|
18
18
|
import { logEndpoint } from "@matter/main/protocol";
|
|
19
19
|
import { DeviceTypeId, VendorId } from "@matter/main/types";
|
|
20
|
-
import { execSync } from "child_process";
|
|
20
|
+
import { execSync } from "node:child_process";
|
|
21
21
|
|
|
22
22
|
/** Initialize configuration values */
|
|
23
23
|
const { isSocket, deviceName, vendorName, passcode, discriminator, vendorId, productName, productId, port, uniqueId } =
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
import { OnOffLightDevice } from "@matter/main/devices/on-off-light";
|
|
26
26
|
import { OnOffPlugInUnitDevice } from "@matter/main/devices/on-off-plug-in-unit";
|
|
27
27
|
import { logEndpoint } from "@matter/main/protocol";
|
|
28
|
-
import { execSync } from "child_process";
|
|
28
|
+
import { execSync } from "node:child_process";
|
|
29
29
|
|
|
30
30
|
const devices = await getConfiguration();
|
|
31
31
|
for (let idx = 1; idx < devices.length; idx++) {
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "@matter/main";
|
|
24
24
|
import { OnOffLightDevice, OnOffPlugInUnitDevice } from "@matter/main/devices";
|
|
25
25
|
import { logEndpoint } from "@matter/main/protocol";
|
|
26
|
-
import { execSync } from "child_process";
|
|
26
|
+
import { execSync } from "node:child_process";
|
|
27
27
|
|
|
28
28
|
async function main() {
|
|
29
29
|
/** Initialize configuration values */
|
|
@@ -43,7 +43,7 @@ import { Ble, FabricAction, logEndpoint } from "@matter/main/protocol";
|
|
|
43
43
|
import { QrCode } from "@matter/main/types";
|
|
44
44
|
import { createFileLogger } from "@matter/nodejs";
|
|
45
45
|
import { NodeJsBle } from "@matter/nodejs-ble";
|
|
46
|
-
import { execSync } from "child_process";
|
|
46
|
+
import { execSync } from "node:child_process";
|
|
47
47
|
import { DummyThreadNetworkCommissioningServer } from "./cluster/DummyThreadNetworkCommissioningServer.js";
|
|
48
48
|
import { DummyWifiNetworkCommissioningServer } from "./cluster/DummyWifiNetworkCommissioningServer.js";
|
|
49
49
|
import {
|
|
@@ -16,7 +16,7 @@ import { HumiditySensorDevice } from "@matter/main/devices/humidity-sensor";
|
|
|
16
16
|
import { TemperatureSensorDevice } from "@matter/main/devices/temperature-sensor";
|
|
17
17
|
import { logEndpoint } from "@matter/main/protocol";
|
|
18
18
|
import { DeviceTypeId, VendorId } from "@matter/main/types";
|
|
19
|
-
import { execSync } from "child_process";
|
|
19
|
+
import { execSync } from "node:child_process";
|
|
20
20
|
|
|
21
21
|
async function main() {
|
|
22
22
|
/** Initialize configuration values */
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
{
|
|
6
6
|
"name": "controller",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@matter/main": "~0.12.4-alpha.0-
|
|
9
|
-
"@matter/nodejs-ble": "~0.12.4-alpha.0-
|
|
10
|
-
"@project-chip/matter.js": "~0.12.4-alpha.0-
|
|
8
|
+
"@matter/main": "~0.12.4-alpha.0-20250217-b0bba5179",
|
|
9
|
+
"@matter/nodejs-ble": "~0.12.4-alpha.0-20250217-b0bba5179",
|
|
10
|
+
"@project-chip/matter.js": "~0.12.4-alpha.0-20250217-b0bba5179"
|
|
11
11
|
},
|
|
12
12
|
"description": "Controller example to commission and connect devices",
|
|
13
13
|
"entrypoint": "ControllerNode.ts"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
{
|
|
16
16
|
"name": "device-bridge-onoff",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@matter/main": "~0.12.4-alpha.0-
|
|
18
|
+
"@matter/main": "~0.12.4-alpha.0-20250217-b0bba5179"
|
|
19
19
|
},
|
|
20
20
|
"description": "Bridge for multiple OnOff light/sockets with a CLI command execution interface",
|
|
21
21
|
"entrypoint": "BridgedDevicesNode.ts"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
{
|
|
24
24
|
"name": "device-composed-onoff",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@matter/main": "~0.12.4-alpha.0-
|
|
26
|
+
"@matter/main": "~0.12.4-alpha.0-20250217-b0bba5179"
|
|
27
27
|
},
|
|
28
28
|
"description": "Composed device for multiple OnOff light/sockets with a CLI command execution interface",
|
|
29
29
|
"entrypoint": "ComposedDeviceNode.ts"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
{
|
|
32
32
|
"name": "device-composed-wc-light",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@matter/main": "~0.12.4-alpha.0-
|
|
34
|
+
"@matter/main": "~0.12.4-alpha.0-20250217-b0bba5179"
|
|
35
35
|
},
|
|
36
36
|
"description": "Composed device with Window covering and a light endpoint that logs changes",
|
|
37
37
|
"entrypoint": "IlluminatedRollerShade.ts"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
{
|
|
40
40
|
"name": "device-measuring-socket",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@matter/main": "~0.12.4-alpha.0-
|
|
42
|
+
"@matter/main": "~0.12.4-alpha.0-20250217-b0bba5179"
|
|
43
43
|
},
|
|
44
44
|
"description": "Socket device that reports random Energy and Power measurements",
|
|
45
45
|
"entrypoint": "MeasuredSocketDevice.ts"
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
{
|
|
60
60
|
"name": "device-onoff-advanced",
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@matter/nodejs": "~0.12.4-alpha.0-
|
|
63
|
-
"@matter/nodejs-ble": "~0.12.4-alpha.0-
|
|
64
|
-
"@matter/main": "~0.12.4-alpha.0-
|
|
62
|
+
"@matter/nodejs": "~0.12.4-alpha.0-20250217-b0bba5179",
|
|
63
|
+
"@matter/nodejs-ble": "~0.12.4-alpha.0-20250217-b0bba5179",
|
|
64
|
+
"@matter/main": "~0.12.4-alpha.0-20250217-b0bba5179"
|
|
65
65
|
},
|
|
66
66
|
"description": "OnOff light/socket device with BLE support and advanced API usage",
|
|
67
67
|
"entrypoint": "DeviceNodeFull.ts"
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
{
|
|
70
70
|
"name": "device-onoff-light",
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@matter/main": "~0.12.4-alpha.0-
|
|
72
|
+
"@matter/main": "~0.12.4-alpha.0-20250217-b0bba5179"
|
|
73
73
|
},
|
|
74
74
|
"description": "OnOff light example which logs the state changes to the console",
|
|
75
75
|
"entrypoint": "LightDevice.ts"
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
{
|
|
78
78
|
"name": "device-sensor",
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@matter/main": "~0.12.4-alpha.0-
|
|
80
|
+
"@matter/main": "~0.12.4-alpha.0-20250217-b0bba5179"
|
|
81
81
|
},
|
|
82
82
|
"description": "Temperature/Humidity sensor with a CLI command interface to get the value",
|
|
83
83
|
"entrypoint": "SensorDeviceNode.ts"
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
{
|
|
86
86
|
"name": "device-simple",
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@matter/main": "~0.12.4-alpha.0-
|
|
88
|
+
"@matter/main": "~0.12.4-alpha.0-20250217-b0bba5179"
|
|
89
89
|
},
|
|
90
90
|
"description": "A simple on/off device",
|
|
91
91
|
"entrypoint": "main.ts"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@matter/create",
|
|
3
|
-
"version": "0.12.4-alpha.0-
|
|
3
|
+
"version": "0.12.4-alpha.0-20250217-b0bba5179",
|
|
4
4
|
"description": "Matter.js skeleton project generator",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/project-chip/matter.js#readme",
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@matter/tools": "0.12.4-alpha.0-
|
|
35
|
+
"@matter/tools": "0.12.4-alpha.0-20250217-b0bba5179",
|
|
36
36
|
"@types/node": "^22.10.10",
|
|
37
37
|
"@types/tar-stream": "^3.1.3"
|
|
38
38
|
},
|
package/src/build.config.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import { Project } from "@matter/tools";
|
|
8
|
-
import { mkdir, readFile, writeFile } from "fs/promises";
|
|
9
|
-
import { basename, dirname } from "path";
|
|
8
|
+
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
9
|
+
import { basename, dirname } from "node:path";
|
|
10
10
|
import { Config, Template } from "./config.js";
|
|
11
11
|
|
|
12
12
|
/**
|
package/src/cli.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2022-2025 Matter.js Authors
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { argv, exit, stdout } from "process";
|
|
6
|
+
import { argv, exit, stdout } from "node:process";
|
|
7
7
|
import { ConsumerProject } from "./consumer-project.js";
|
|
8
8
|
import { ContributorProject } from "./contributor-project.js";
|
|
9
9
|
import { bold } from "./formatting.js";
|
package/src/config.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { readFile } from "fs/promises";
|
|
8
|
-
import { resolve } from "path";
|
|
7
|
+
import { readFile } from "node:fs/promises";
|
|
8
|
+
import { resolve } from "node:path";
|
|
9
9
|
|
|
10
10
|
const CREATE_DIR = resolve(import.meta.dirname, "../..");
|
|
11
11
|
export const TEMPLATE_DIR = resolve(CREATE_DIR, "dist/templates");
|
package/src/consumer-project.ts
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { execSync } from "child_process";
|
|
8
|
-
import { cp, mkdir, writeFile } from "fs/promises";
|
|
9
|
-
import { basename, resolve } from "path";
|
|
10
|
-
import { stderr } from "process";
|
|
7
|
+
import { execSync } from "node:child_process";
|
|
8
|
+
import { cp, mkdir, writeFile } from "node:fs/promises";
|
|
9
|
+
import { basename, resolve } from "node:path";
|
|
10
|
+
import { stderr } from "node:process";
|
|
11
11
|
import { Config, Template, TEMPLATE_DIR } from "./config.js";
|
|
12
12
|
import { bold } from "./formatting.js";
|
|
13
13
|
import { notice } from "./messages.js";
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { homedir } from "os";
|
|
8
|
-
import { join, resolve } from "path";
|
|
9
|
-
import { createInterface } from "readline/promises";
|
|
7
|
+
import { homedir } from "node:os";
|
|
8
|
+
import { join, resolve } from "node:path";
|
|
9
|
+
import { createInterface } from "node:readline/promises";
|
|
10
10
|
import { blue, bold, dim, fittedTextOf } from "./formatting.js";
|
|
11
11
|
import { error, info, notice } from "./messages.js";
|
|
12
12
|
import { createAndValidateDest, install, ProjectError } from "./new-project.js";
|
package/src/formatting.ts
CHANGED
package/src/messages.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { stderr, stdout } from "process";
|
|
7
|
+
import { stderr, stdout } from "node:process";
|
|
8
8
|
import { bold, dim, fittedTextOf, green, red, visibleWidthOf, yellow } from "./formatting.js";
|
|
9
9
|
|
|
10
10
|
const WELCOME_TO = "🎉 Welcome to";
|
package/src/new-project.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { mkdir, readdir } from "fs/promises";
|
|
7
|
+
import { mkdir, readdir } from "node:fs/promises";
|
|
8
8
|
import type { ConsumerProject } from "./consumer-project.js";
|
|
9
9
|
import type { ContributorProject } from "./contributor-project.js";
|
|
10
10
|
import { run } from "./run.js";
|
package/src/run.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { spawn, SpawnOptions, SpawnSyncOptions } from "child_process";
|
|
7
|
+
import { spawn, SpawnOptions, SpawnSyncOptions } from "node:child_process";
|
|
8
8
|
|
|
9
9
|
export function run(command: string, args?: string[], options?: SpawnOptions) {
|
|
10
10
|
return new Promise<void>((resolve, reject) => {
|
package/src/usage.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { stdout } from "process";
|
|
7
|
+
import { stdout } from "node:process";
|
|
8
8
|
import { Config } from "./config.js";
|
|
9
9
|
import { blue, bold, fittedTextOf, visibleWidthOf } from "./formatting.js";
|
|
10
10
|
import { welcome } from "./messages.js";
|