@ereo/deploy-cloudflare 0.2.37 → 0.2.38
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/index.d.ts.map +1 -1
- package/dist/index.js +18 -13
- package/package.json +2 -2
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,0CAA0C;AAC1C,MAAM,WAAW,gBAAgB;IAC/B,8CAA8C;IAC9C,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,iBAAiB;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qBAAqB;IACrB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,4BAA4B;IAC5B,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,8BAA8B;IAC9B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED,wCAAwC;AACxC,wBAAgB,UAAU,CAAC,MAAM,GAAE,gBAAqB,GAAG,OAAO,CAAC,eAAe,CAAC,CAMlF;AAED,2CAA2C;AAC3C,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,0CAA0C;AAC1C,MAAM,WAAW,gBAAgB;IAC/B,8CAA8C;IAC9C,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,iBAAiB;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qBAAqB;IACrB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,4BAA4B;IAC5B,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,8BAA8B;IAC9B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED,wCAAwC;AACxC,wBAAgB,UAAU,CAAC,MAAM,GAAE,gBAAqB,GAAG,OAAO,CAAC,eAAe,CAAC,CAMlF;AAED,2CAA2C;AAC3C,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAyBrE;AAED,eAAe,UAAU,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -8,23 +8,28 @@ function cloudflare(config = {}) {
|
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
10
|
function generateWranglerToml(config) {
|
|
11
|
-
const
|
|
11
|
+
const lines = [
|
|
12
|
+
'name = "ereo-app"',
|
|
13
|
+
'compatibility_date = "2024-01-01"',
|
|
14
|
+
'main = "dist/server.js"'
|
|
15
|
+
];
|
|
16
|
+
if (config.routes) {
|
|
17
|
+
for (const route of config.routes) {
|
|
18
|
+
lines.push("");
|
|
19
|
+
lines.push("[[routes]]");
|
|
20
|
+
lines.push(`pattern = "${route}"`);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
12
23
|
if (config.kvNamespaces) {
|
|
13
24
|
for (const ns of config.kvNamespaces) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
25
|
+
lines.push("");
|
|
26
|
+
lines.push("[[kv_namespaces]]");
|
|
27
|
+
lines.push(`binding = "${ns}"`);
|
|
28
|
+
lines.push('id = "your-namespace-id"');
|
|
17
29
|
}
|
|
18
30
|
}
|
|
19
|
-
return `
|
|
20
|
-
|
|
21
|
-
main = "dist/server.js"
|
|
22
|
-
|
|
23
|
-
${config.routes ? `routes = ${JSON.stringify(config.routes)}` : ""}
|
|
24
|
-
|
|
25
|
-
${bindings.join(`
|
|
26
|
-
|
|
27
|
-
`)}
|
|
31
|
+
return lines.join(`
|
|
32
|
+
`) + `
|
|
28
33
|
`;
|
|
29
34
|
}
|
|
30
35
|
var src_default = cloudflare;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ereo/deploy-cloudflare",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.38",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Enoch Kujem Abassey",
|
|
6
6
|
"homepage": "https://ereojs.github.io/ereoJS",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"typecheck": "tsc --noEmit"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@ereo/core": "
|
|
36
|
+
"@ereo/core": "workspace:*"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/bun": "^1.1.0",
|