create-message-kit 1.1.7-beta.28 → 1.1.7-beta.30

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.
Files changed (2) hide show
  1. package/index.js +3 -9
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -22,11 +22,6 @@ program
22
22
  // Add Yarn 4 check at the start of the action
23
23
  const pkgManager = await detectPackageManager();
24
24
 
25
- if (pkgManager.startsWith("yarn@4")) {
26
- //log.error("Yarn 4 is not supported. Please use bun, npm, or yarn v1");
27
- //process.exit(1);
28
- }
29
-
30
25
  log.info(pc.cyan(`Welcome to MessageKit CLI v${version}!`));
31
26
  const coolLogo = `
32
27
  ███╗ ███╗███████╗███████╗███████╗ █████╗ ██████╗ ███████╗██╗ ██╗██╗████████╗
@@ -82,16 +77,14 @@ async function addPackagejson(destDir, name, pkgManager) {
82
77
  dependencies: {
83
78
  "@xmtp/message-kit": "latest",
84
79
  },
85
- devDependencies: {
86
- typescript: "^5.4.5",
87
- },
88
80
  engines: {
89
81
  node: ">=20",
90
82
  },
91
83
  };
92
84
 
93
85
  if (pkgManager.startsWith("yarn")) {
94
- packageTemplate.packageManager = pkgManager; // Add .yarnrc.yml to disable PnP mode
86
+ packageTemplate.packageManager = `${pkgManager}@${version}`;
87
+ // Add .yarnrc.yml to disable PnP mode
95
88
  fs.writeFileSync(
96
89
  resolve(destDir, ".yarnrc.yml"),
97
90
  "nodeLinker: node-modules\n",
@@ -215,6 +208,7 @@ async function detectPackageManager() {
215
208
  pkgManager === "yarn" &&
216
209
  process.env.npm_config_user_agent?.includes("yarn/4")
217
210
  ) {
211
+ console.log(process.env.npm_config_user_agent);
218
212
  return "yarn@4";
219
213
  }
220
214
  return pkgManager;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-message-kit",
3
- "version": "1.1.7-beta.28",
3
+ "version": "1.1.7-beta.30",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "index.js",