rasengan 1.0.0-beta.10 → 1.0.0-beta.11
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/lib/cjs/cli/index.js
CHANGED
|
@@ -122,10 +122,6 @@ program
|
|
|
122
122
|
(0, execa_1.execa)("cp", ["node_modules/rasengan/lib/esm/server/functions/vercel/vercel.json", "."], {
|
|
123
123
|
stdio: "inherit",
|
|
124
124
|
});
|
|
125
|
-
// Removing index.d.ts and index.js.map files from the api folder
|
|
126
|
-
(0, execa_1.execa)("rm", ["api/index.d.ts"], {
|
|
127
|
-
stdio: "inherit",
|
|
128
|
-
});
|
|
129
125
|
}
|
|
130
126
|
else if (hostingStrategy === "netlify") { }
|
|
131
127
|
});
|
package/lib/cjs/config/index.js
CHANGED
|
@@ -127,14 +127,14 @@ exports.defineConfig = defineConfig;
|
|
|
127
127
|
var adaptPath = function (paths) {
|
|
128
128
|
// Check if we are in dev mode or prod
|
|
129
129
|
var isProduction = process.env.NODE_ENV === "production";
|
|
130
|
-
var prefix = isProduction ? "
|
|
130
|
+
var prefix = isProduction ? "./../../" : "";
|
|
131
131
|
// Chech if the path is an array
|
|
132
132
|
var isArray = Array.isArray(paths);
|
|
133
133
|
// If the path is an array
|
|
134
134
|
if (isArray) {
|
|
135
|
-
return paths.map(function (path) { return "".concat(prefix).concat(path); });
|
|
135
|
+
return paths.map(function (path) { return "".concat(process.cwd(), "/").concat(prefix).concat(path); });
|
|
136
136
|
}
|
|
137
137
|
// If the path is a string
|
|
138
|
-
return "".concat(prefix).concat(paths);
|
|
138
|
+
return "".concat(process.cwd(), "/").concat(prefix).concat(paths);
|
|
139
139
|
};
|
|
140
140
|
exports.adaptPath = adaptPath;
|
package/lib/esm/cli/index.js
CHANGED
|
@@ -117,10 +117,6 @@ program
|
|
|
117
117
|
execa("cp", ["node_modules/rasengan/lib/esm/server/functions/vercel/vercel.json", "."], {
|
|
118
118
|
stdio: "inherit",
|
|
119
119
|
});
|
|
120
|
-
// Removing index.d.ts and index.js.map files from the api folder
|
|
121
|
-
execa("rm", ["api/index.d.ts"], {
|
|
122
|
-
stdio: "inherit",
|
|
123
|
-
});
|
|
124
120
|
}
|
|
125
121
|
else if (hostingStrategy === "netlify") { }
|
|
126
122
|
});
|
package/lib/esm/config/index.js
CHANGED
|
@@ -123,13 +123,13 @@ export var defineConfig = function (loadedConfig) {
|
|
|
123
123
|
export var adaptPath = function (paths) {
|
|
124
124
|
// Check if we are in dev mode or prod
|
|
125
125
|
var isProduction = process.env.NODE_ENV === "production";
|
|
126
|
-
var prefix = isProduction ? "
|
|
126
|
+
var prefix = isProduction ? "./../../" : "";
|
|
127
127
|
// Chech if the path is an array
|
|
128
128
|
var isArray = Array.isArray(paths);
|
|
129
129
|
// If the path is an array
|
|
130
130
|
if (isArray) {
|
|
131
|
-
return paths.map(function (path) { return "".concat(prefix).concat(path); });
|
|
131
|
+
return paths.map(function (path) { return "".concat(process.cwd(), "/").concat(prefix).concat(path); });
|
|
132
132
|
}
|
|
133
133
|
// If the path is a string
|
|
134
|
-
return "".concat(prefix).concat(paths);
|
|
134
|
+
return "".concat(process.cwd(), "/").concat(prefix).concat(paths);
|
|
135
135
|
};
|