create-react-router 7.6.3 → 7.7.0-pre.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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # `create-react-router`
2
2
 
3
+ ## 7.7.0-pre.1
4
+
5
+ ## 7.7.0-pre.0
6
+
7
+ ### Minor Changes
8
+
9
+ - Add Deno as a supported and detectable package manager. Note that this detection will only work with Deno versions 2.0.5 and above. If you are using an older version version of Deno then you must specify the --package-manager CLI flag set to `deno`. ([#12327](https://github.com/remix-run/react-router/pull/12327))
10
+
3
11
  ## 7.6.3
4
12
 
5
13
  _No changes_
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * create-react-router v7.6.3
3
+ * create-react-router v7.7.0-pre.1
4
4
  *
5
5
  * Copyright (c) Remix Software Inc.
6
6
  *
@@ -49,7 +49,7 @@ var semver = __toESM(require("semver"));
49
49
  var import_sort_package_json = __toESM(require("sort-package-json"));
50
50
 
51
51
  // package.json
52
- var version = "7.6.3";
52
+ var version = "7.7.0-pre.1";
53
53
 
54
54
  // prompt.ts
55
55
  var import_node_process3 = __toESM(require("process"));
@@ -1612,7 +1612,7 @@ ${color.warning(
1612
1612
  showInstallOutput,
1613
1613
  noMotion,
1614
1614
  pkgManager: validatePackageManager(
1615
- pkgManager ?? // npm, pnpm, Yarn, and Bun set the user agent environment variable that can be used
1615
+ pkgManager ?? // npm, pnpm, Yarn, Bun and Deno (v2.0.5+) set the user agent environment variable that can be used
1616
1616
  // to determine which package manager ran the command.
1617
1617
  (import_node_process6.default.env.npm_config_user_agent ?? "npm").split("/")[0]
1618
1618
  ),
@@ -1910,14 +1910,9 @@ ${prefix}Join the community at ${color.cyan(`https://rmx.as/discord`)}
1910
1910
  );
1911
1911
  await sleep(200);
1912
1912
  }
1913
- var packageManagerExecScript = {
1914
- npm: "npx",
1915
- yarn: "yarn",
1916
- pnpm: "pnpm exec",
1917
- bun: "bunx"
1918
- };
1913
+ var validPackageManagers = ["npm", "yarn", "pnpm", "bun", "deno"];
1919
1914
  function validatePackageManager(pkgManager) {
1920
- return packageManagerExecScript.hasOwnProperty(pkgManager) ? pkgManager : "npm";
1915
+ return validPackageManagers.find((name) => pkgManager === name) ?? "npm";
1921
1916
  }
1922
1917
  async function installDependencies({
1923
1918
  pkgManager,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-react-router",
3
- "version": "7.6.3",
3
+ "version": "7.7.0-pre.1",
4
4
  "description": "Create a new React Router app",
5
5
  "homepage": "https://reactrouter.com",
6
6
  "bugs": {
@@ -48,6 +48,7 @@
48
48
  "devDependencies": {
49
49
  "@types/gunzip-maybe": "^1.4.0",
50
50
  "@types/recursive-readdir": "^2.2.1",
51
+ "@types/semver": "^7.7.0",
51
52
  "@types/tar-fs": "^2.0.1",
52
53
  "esbuild": "0.25.0",
53
54
  "esbuild-register": "^3.6.0",