@mcp-tool-kit/shared 0.1.3 → 0.1.5
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/projectSetup.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { registerHandlebarsHelpers } from "./handlebars/register.js";
|
|
2
|
-
import {
|
|
3
|
-
import { access, constants, cp, mkdir, readFile, readdir, rename, rmdir, stat, unlink, writeFile } from "fs/promises";
|
|
4
|
-
import { join } from "path";
|
|
5
|
-
import {
|
|
2
|
+
import { spawn } from "node:child_process";
|
|
3
|
+
import { access, constants, cp, mkdir, readFile, readdir, rename, rmdir, stat, unlink, writeFile } from "node:fs/promises";
|
|
4
|
+
import { join } from "node:path";
|
|
5
|
+
import { setTimeout as sleep } from "node:timers/promises";
|
|
6
6
|
import Handlebars from "handlebars";
|
|
7
7
|
|
|
8
8
|
//#region src/projectSetup.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { setTimeout as sleep } from 'timers/promises';
|
|
1
|
+
import { setTimeout as sleep } from 'node:timers/promises';
|
|
2
2
|
export declare function fileExists(path: string): Promise<boolean>;
|
|
3
3
|
export declare function installDependencies(currentDir: string): Promise<void>;
|
|
4
4
|
export declare function createProject(targetPath: string, templatePath: string, templateData: {
|