freestyle-sandboxes 0.0.32 → 0.0.33
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/dist/utils/index.cjs +8 -2
- package/dist/utils/index.d.cts +4 -6
- package/dist/utils/index.d.mts +4 -6
- package/dist/utils/index.mjs +8 -2
- package/package.json +1 -1
- package/src/utils/index.ts +13 -5
package/dist/utils/index.cjs
CHANGED
|
@@ -46,7 +46,10 @@ const prepareDirForDeployment = async (directory) => {
|
|
|
46
46
|
console.error(`Error reading file ${relativePath}:`, error);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
return
|
|
49
|
+
return {
|
|
50
|
+
kind: "files",
|
|
51
|
+
files
|
|
52
|
+
};
|
|
50
53
|
};
|
|
51
54
|
const prepareDirForDeploymentSync = (directory) => {
|
|
52
55
|
const files = {};
|
|
@@ -68,7 +71,10 @@ const prepareDirForDeploymentSync = (directory) => {
|
|
|
68
71
|
console.error(`Error reading file ${relativePath}:`, error);
|
|
69
72
|
}
|
|
70
73
|
}
|
|
71
|
-
return
|
|
74
|
+
return {
|
|
75
|
+
kind: "files",
|
|
76
|
+
files
|
|
77
|
+
};
|
|
72
78
|
};
|
|
73
79
|
const prepareNextJsForDeployment = async (directory) => {
|
|
74
80
|
const publicDir = path__namespace.join(directory, "public");
|
package/dist/utils/index.d.cts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as DeploymentSource } from '../types.gen-BCdfx7yt.js';
|
|
2
2
|
|
|
3
|
-
declare const prepareDirForDeployment: (directory: string) => Promise<
|
|
4
|
-
declare const prepareDirForDeploymentSync: (directory: string) =>
|
|
5
|
-
[key: string]: FreestyleFile;
|
|
6
|
-
};
|
|
3
|
+
declare const prepareDirForDeployment: (directory: string) => Promise<DeploymentSource>;
|
|
4
|
+
declare const prepareDirForDeploymentSync: (directory: string) => DeploymentSource;
|
|
7
5
|
/**
|
|
8
6
|
* This is in beta, and may not work as expected. **SUBJECT TO CHANGE.**
|
|
9
7
|
*/
|
|
10
|
-
declare const prepareNextJsForDeployment: (directory: string) => Promise<
|
|
8
|
+
declare const prepareNextJsForDeployment: (directory: string) => Promise<DeploymentSource>;
|
|
11
9
|
|
|
12
10
|
export { prepareDirForDeployment, prepareDirForDeploymentSync, prepareNextJsForDeployment };
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as DeploymentSource } from '../types.gen-BCdfx7yt.js';
|
|
2
2
|
|
|
3
|
-
declare const prepareDirForDeployment: (directory: string) => Promise<
|
|
4
|
-
declare const prepareDirForDeploymentSync: (directory: string) =>
|
|
5
|
-
[key: string]: FreestyleFile;
|
|
6
|
-
};
|
|
3
|
+
declare const prepareDirForDeployment: (directory: string) => Promise<DeploymentSource>;
|
|
4
|
+
declare const prepareDirForDeploymentSync: (directory: string) => DeploymentSource;
|
|
7
5
|
/**
|
|
8
6
|
* This is in beta, and may not work as expected. **SUBJECT TO CHANGE.**
|
|
9
7
|
*/
|
|
10
|
-
declare const prepareNextJsForDeployment: (directory: string) => Promise<
|
|
8
|
+
declare const prepareNextJsForDeployment: (directory: string) => Promise<DeploymentSource>;
|
|
11
9
|
|
|
12
10
|
export { prepareDirForDeployment, prepareDirForDeploymentSync, prepareNextJsForDeployment };
|
package/dist/utils/index.mjs
CHANGED
|
@@ -23,7 +23,10 @@ const prepareDirForDeployment = async (directory) => {
|
|
|
23
23
|
console.error(`Error reading file ${relativePath}:`, error);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
return
|
|
26
|
+
return {
|
|
27
|
+
kind: "files",
|
|
28
|
+
files
|
|
29
|
+
};
|
|
27
30
|
};
|
|
28
31
|
const prepareDirForDeploymentSync = (directory) => {
|
|
29
32
|
const files = {};
|
|
@@ -45,7 +48,10 @@ const prepareDirForDeploymentSync = (directory) => {
|
|
|
45
48
|
console.error(`Error reading file ${relativePath}:`, error);
|
|
46
49
|
}
|
|
47
50
|
}
|
|
48
|
-
return
|
|
51
|
+
return {
|
|
52
|
+
kind: "files",
|
|
53
|
+
files
|
|
54
|
+
};
|
|
49
55
|
};
|
|
50
56
|
const prepareNextJsForDeployment = async (directory) => {
|
|
51
57
|
const publicDir = path.join(directory, "public");
|
package/package.json
CHANGED
package/src/utils/index.ts
CHANGED
|
@@ -6,7 +6,7 @@ import * as path from "path";
|
|
|
6
6
|
|
|
7
7
|
export const prepareDirForDeployment = async (
|
|
8
8
|
directory: string
|
|
9
|
-
): Promise<sandbox_openapi.
|
|
9
|
+
): Promise<sandbox_openapi.DeploymentSource> => {
|
|
10
10
|
const files: sandbox_openapi.FreestyleDeployWebPayload["files"] = {};
|
|
11
11
|
|
|
12
12
|
const patterns = await glob("**/*", {
|
|
@@ -29,10 +29,15 @@ export const prepareDirForDeployment = async (
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
return
|
|
32
|
+
return {
|
|
33
|
+
kind: "files",
|
|
34
|
+
files,
|
|
35
|
+
};
|
|
33
36
|
};
|
|
34
37
|
|
|
35
|
-
export const prepareDirForDeploymentSync = (
|
|
38
|
+
export const prepareDirForDeploymentSync = (
|
|
39
|
+
directory: string
|
|
40
|
+
): sandbox_openapi.DeploymentSource => {
|
|
36
41
|
const files: sandbox_openapi.FreestyleDeployWebPayload["files"] = {};
|
|
37
42
|
|
|
38
43
|
const patterns = globSync("**/*", {
|
|
@@ -55,7 +60,10 @@ export const prepareDirForDeploymentSync = (directory: string) => {
|
|
|
55
60
|
}
|
|
56
61
|
}
|
|
57
62
|
|
|
58
|
-
return
|
|
63
|
+
return {
|
|
64
|
+
kind: "files",
|
|
65
|
+
files,
|
|
66
|
+
};
|
|
59
67
|
};
|
|
60
68
|
|
|
61
69
|
/**
|
|
@@ -63,7 +71,7 @@ export const prepareDirForDeploymentSync = (directory: string) => {
|
|
|
63
71
|
*/
|
|
64
72
|
export const prepareNextJsForDeployment = async (
|
|
65
73
|
directory: string
|
|
66
|
-
): Promise<sandbox_openapi.
|
|
74
|
+
): Promise<sandbox_openapi.DeploymentSource> => {
|
|
67
75
|
const publicDir = path.join(directory, "public");
|
|
68
76
|
const nextPublicDestination = path.join(directory, ".next/standalone/public");
|
|
69
77
|
|