@positronic/cloudflare 0.0.13 → 0.0.14
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/src/dev-server.js +5 -5
- package/package.json +4 -4
package/dist/src/dev-server.js
CHANGED
|
@@ -953,7 +953,7 @@ export var CloudflareDevServer = /*#__PURE__*/ function() {
|
|
|
953
953
|
return _async_to_generator(function() {
|
|
954
954
|
var _this, // Capture and forward stdout
|
|
955
955
|
_wranglerProcess_stdout, // Capture and forward stderr
|
|
956
|
-
_wranglerProcess_stderr, serverDir, wranglerArgs, wranglerProcess;
|
|
956
|
+
_wranglerProcess_stderr, serverDir, wranglerArgs, serverPort, wranglerProcess;
|
|
957
957
|
return _ts_generator(this, function(_state) {
|
|
958
958
|
_this = this;
|
|
959
959
|
serverDir = path.join(this.projectRootDir, '.positronic');
|
|
@@ -962,9 +962,9 @@ export var CloudflareDevServer = /*#__PURE__*/ function() {
|
|
|
962
962
|
'dev',
|
|
963
963
|
'--x-remote-bindings'
|
|
964
964
|
];
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
965
|
+
// Always specify a port - use 8787 as default if not provided
|
|
966
|
+
serverPort = port || 8787;
|
|
967
|
+
wranglerArgs.push('--port', String(serverPort));
|
|
968
968
|
wranglerProcess = spawn('npx', [
|
|
969
969
|
'wrangler'
|
|
970
970
|
].concat(_to_consumable_array(wranglerArgs)), {
|
|
@@ -1008,7 +1008,7 @@ export var CloudflareDevServer = /*#__PURE__*/ function() {
|
|
|
1008
1008
|
});
|
|
1009
1009
|
return [
|
|
1010
1010
|
2,
|
|
1011
|
-
new ProcessServerHandle(wranglerProcess,
|
|
1011
|
+
new ProcessServerHandle(wranglerProcess, serverPort)
|
|
1012
1012
|
];
|
|
1013
1013
|
});
|
|
1014
1014
|
}).call(this);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@positronic/cloudflare",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"clean": "rm -rf tsconfig.tsbuildinfo dist"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@positronic/core": "^0.0.
|
|
35
|
-
"@positronic/spec": "^0.0.
|
|
36
|
-
"@positronic/template-new-project": "^0.0.
|
|
34
|
+
"@positronic/core": "^0.0.14",
|
|
35
|
+
"@positronic/spec": "^0.0.14",
|
|
36
|
+
"@positronic/template-new-project": "^0.0.14",
|
|
37
37
|
"aws4fetch": "^1.0.18",
|
|
38
38
|
"caz": "^2.0.0",
|
|
39
39
|
"cron-schedule": "^5.0.4",
|