init-xmcp 0.7.1 → 0.8.0
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/.turbo/turbo-build.log
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# init-xmcp
|
|
2
2
|
|
|
3
|
+
## 0.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- b7a2b3c: Move the development compiler into `@xmcp-dev/compiler` so production `xmcp` installs contain only the self-contained runtime. Existing `xmcp dev`, `xmcp build`, and `xmcp create` commands remain available through a runtime-package shim, but projects must add `@xmcp-dev/compiler` as a development dependency.
|
|
8
|
+
|
|
3
9
|
## 0.7.1
|
|
4
10
|
|
|
5
11
|
## 0.7.0
|
package/dist/helpers/install.js
CHANGED
|
@@ -31,11 +31,12 @@ export function detectPackageManager(projectPath) {
|
|
|
31
31
|
*/
|
|
32
32
|
export async function install(projectPath, packageManager, version) {
|
|
33
33
|
const dependencies = [`xmcp@${version}`, "zod"];
|
|
34
|
+
const compiler = `@xmcp-dev/compiler@${version}`;
|
|
34
35
|
const commands = {
|
|
35
|
-
npm: `npm install ${dependencies.join(" ")}`,
|
|
36
|
-
pnpm: `pnpm add ${dependencies.join(" ")}`,
|
|
37
|
-
yarn: `yarn add ${dependencies.join(" ")}`,
|
|
38
|
-
bun: `bun add ${dependencies.join(" ")}`,
|
|
36
|
+
npm: `npm install ${dependencies.join(" ")} && npm install --save-dev ${compiler}`,
|
|
37
|
+
pnpm: `pnpm add ${dependencies.join(" ")} && pnpm add --save-dev ${compiler}`,
|
|
38
|
+
yarn: `yarn add ${dependencies.join(" ")} && yarn add --dev ${compiler}`,
|
|
39
|
+
bun: `bun add ${dependencies.join(" ")} && bun add --dev ${compiler}`,
|
|
39
40
|
};
|
|
40
41
|
try {
|
|
41
42
|
console.log(chalk.blue(`\nInstalling dependencies using ${packageManager}...`));
|
|
@@ -11,6 +11,8 @@ export function updatePackageJson(projectPath) {
|
|
|
11
11
|
if (!packageJson.scripts) {
|
|
12
12
|
packageJson.scripts = {};
|
|
13
13
|
}
|
|
14
|
+
packageJson.devDependencies = packageJson.devDependencies ?? {};
|
|
15
|
+
packageJson.devDependencies["@xmcp-dev/compiler"] ??= "latest";
|
|
14
16
|
// prepend commands to existing scripts - prevent overwriting
|
|
15
17
|
if (packageJson.scripts.build) {
|
|
16
18
|
packageJson.scripts.build = `xmcp build && ${packageJson.scripts.build}`;
|
package/package.json
CHANGED
package/src/helpers/install.ts
CHANGED
|
@@ -42,12 +42,13 @@ export async function install(
|
|
|
42
42
|
version: string
|
|
43
43
|
) {
|
|
44
44
|
const dependencies = [`xmcp@${version}`, "zod"];
|
|
45
|
+
const compiler = `@xmcp-dev/compiler@${version}`;
|
|
45
46
|
|
|
46
47
|
const commands = {
|
|
47
|
-
npm: `npm install ${dependencies.join(" ")}`,
|
|
48
|
-
pnpm: `pnpm add ${dependencies.join(" ")}`,
|
|
49
|
-
yarn: `yarn add ${dependencies.join(" ")}`,
|
|
50
|
-
bun: `bun add ${dependencies.join(" ")}`,
|
|
48
|
+
npm: `npm install ${dependencies.join(" ")} && npm install --save-dev ${compiler}`,
|
|
49
|
+
pnpm: `pnpm add ${dependencies.join(" ")} && pnpm add --save-dev ${compiler}`,
|
|
50
|
+
yarn: `yarn add ${dependencies.join(" ")} && yarn add --dev ${compiler}`,
|
|
51
|
+
bun: `bun add ${dependencies.join(" ")} && bun add --dev ${compiler}`,
|
|
51
52
|
};
|
|
52
53
|
|
|
53
54
|
try {
|
|
@@ -14,6 +14,9 @@ export function updatePackageJson(projectPath: string): void {
|
|
|
14
14
|
packageJson.scripts = {};
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
packageJson.devDependencies = packageJson.devDependencies ?? {};
|
|
18
|
+
packageJson.devDependencies["@xmcp-dev/compiler"] ??= "latest";
|
|
19
|
+
|
|
17
20
|
// prepend commands to existing scripts - prevent overwriting
|
|
18
21
|
if (packageJson.scripts.build) {
|
|
19
22
|
packageJson.scripts.build = `xmcp build && ${packageJson.scripts.build}`;
|