firebase-tools 11.14.4 → 11.15.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.
@@ -56,10 +56,12 @@ exports.ALL_EXPERIMENTS = experiments({
56
56
  webframeworks: {
57
57
  shortDescription: "Native support for popular web frameworks",
58
58
  fullDescription: "Adds support for popular web frameworks such as Next.js " +
59
- "Nuxt, Netlify, Angular, and Vite-compatible frameworks. Firebase is " +
59
+ "Angular, React, Svelte, and Vite-compatible frameworks. Firebase is " +
60
60
  "committed to support these platforms long-term, but a manual migration " +
61
61
  "may be required when the non-experimental support for these frameworks " +
62
62
  "is released",
63
+ docsUri: "https://firebase.google.com/docs/hosting/frameworks-overview",
64
+ public: true,
63
65
  },
64
66
  pintags: {
65
67
  shortDescription: "Adds the pinTag option to Run and Functions rewrites",
@@ -98,8 +98,11 @@ async function ɵcodegenPublicDirectory(sourceDir, destDir) {
98
98
  (0, fs_extra_1.copy)(exportDetailJson.outDirectory, destDir);
99
99
  }
100
100
  else {
101
+ const publicPath = (0, path_1.join)(sourceDir, "public");
101
102
  await (0, promises_1.mkdir)((0, path_1.join)(destDir, "_next", "static"), { recursive: true });
102
- await (0, fs_extra_1.copy)((0, path_1.join)(sourceDir, "public"), destDir);
103
+ if (await (0, fs_extra_1.pathExists)(publicPath)) {
104
+ await (0, fs_extra_1.copy)(publicPath, destDir);
105
+ }
103
106
  await (0, fs_extra_1.copy)((0, path_1.join)(sourceDir, distDir, "static"), (0, path_1.join)(destDir, "_next", "static"));
104
107
  const serverPagesDir = (0, path_1.join)(sourceDir, distDir, "server", "pages");
105
108
  await (0, fs_extra_1.copy)(serverPagesDir, destDir, {
@@ -154,9 +157,11 @@ async function ɵcodegenFunctionsDirectory(sourceDir, destDir) {
154
157
  platform: "node",
155
158
  });
156
159
  }
157
- await (0, promises_1.mkdir)((0, path_1.join)(destDir, "public"));
160
+ if (await (0, fs_extra_1.pathExists)((0, path_1.join)(sourceDir, "public"))) {
161
+ await (0, promises_1.mkdir)((0, path_1.join)(destDir, "public"));
162
+ await (0, fs_extra_1.copy)((0, path_1.join)(sourceDir, "public"), (0, path_1.join)(destDir, "public"));
163
+ }
158
164
  await (0, fs_extra_1.mkdirp)((0, path_1.join)(destDir, distDir));
159
- await (0, fs_extra_1.copy)((0, path_1.join)(sourceDir, "public"), (0, path_1.join)(destDir, "public"));
160
165
  await (0, fs_extra_1.copy)((0, path_1.join)(sourceDir, distDir), (0, path_1.join)(destDir, distDir));
161
166
  return { packageJson, frameworksEntry: "next.js" };
162
167
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "firebase-tools",
3
- "version": "11.14.4",
3
+ "version": "11.15.0",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "firebase-tools",
9
- "version": "11.14.4",
9
+ "version": "11.15.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@google-cloud/pubsub": "^3.0.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firebase-tools",
3
- "version": "11.14.4",
3
+ "version": "11.15.0",
4
4
  "description": "Command-Line Interface for Firebase",
5
5
  "main": "./lib/index.js",
6
6
  "bin": {