@astrojs/cloudflare 6.2.2 → 6.2.3

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.
@@ -1,5 +1,4 @@
1
- @astrojs/cloudflare:build: cache hit, replaying output 627ca52425ee75b5
2
- @astrojs/cloudflare:build: 
3
- @astrojs/cloudflare:build: > @astrojs/cloudflare@6.2.2 build /home/runner/work/astro/astro/packages/integrations/cloudflare
4
- @astrojs/cloudflare:build: > astro-scripts build "src/**/*.ts" && tsc
5
- @astrojs/cloudflare:build: 
1
+
2
+ > @astrojs/cloudflare@6.2.3 build /home/runner/work/astro/astro/packages/integrations/cloudflare
3
+ > astro-scripts build "src/**/*.ts" && tsc
4
+
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @astrojs/cloudflare
2
2
 
3
+ ## 6.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#6222](https://github.com/withastro/astro/pull/6222) [`081b2402c`](https://github.com/withastro/astro/commit/081b2402cfb48b5eb8dbd02664d8af2f7c798edf) Thanks [@AirBorne04](https://github.com/AirBorne04)! - add option to compile unminified code
8
+
9
+ - Updated dependencies [[`b89042553`](https://github.com/withastro/astro/commit/b89042553ec45d5f6bc71747e0f3470ba969e679)]:
10
+ - astro@2.3.2
11
+
3
12
  ## 6.2.2
4
13
 
5
14
  ### Patch Changes
package/README.md CHANGED
@@ -108,10 +108,28 @@ By default, `@astrojs/cloudflare` will generate a `_routes.json` file that lists
108
108
 
109
109
  ## Troubleshooting
110
110
 
111
+
111
112
  For help, check out the `#support` channel on [Discord](https://astro.build/chat). Our friendly Support Squad members are here to help!
112
113
 
113
114
  You can also check our [Astro Integration Documentation][astro-integration] for more on integrations.
114
115
 
116
+ ### Meaningful error messages
117
+
118
+ Currently, errors during running your application in Wrangler are not very useful, due to the minification of your code. For better debugging, you can add `vite.build.minify = false` setting to your `astro.config.js`
119
+
120
+ ```
121
+ export default defineConfig({
122
+ adapter: cloudflare(),
123
+ output: 'server',
124
+
125
+ vite: {
126
+ build: {
127
+ minify: false
128
+ }
129
+ }
130
+ });
131
+ ```
132
+
115
133
  ## Contributing
116
134
 
117
135
  This package is maintained by Astro's Core team. You're welcome to submit an issue or PR!
package/dist/index.js CHANGED
@@ -67,6 +67,7 @@ function createIntegration(args) {
67
67
  }
68
68
  },
69
69
  "astro:build:done": async ({ pages }) => {
70
+ var _a, _b;
70
71
  const entryPath = fileURLToPath(new URL(_buildConfig.serverEntry, _buildConfig.server));
71
72
  const entryUrl = new URL(_buildConfig.serverEntry, _config.outDir);
72
73
  const buildPath = fileURLToPath(entryUrl);
@@ -79,7 +80,7 @@ function createIntegration(args) {
79
80
  allowOverwrite: true,
80
81
  format: "esm",
81
82
  bundle: true,
82
- minify: true,
83
+ minify: ((_b = (_a = _config.vite) == null ? void 0 : _a.build) == null ? void 0 : _b.minify) !== false,
83
84
  banner: {
84
85
  js: SHIM
85
86
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@astrojs/cloudflare",
3
3
  "description": "Deploy your site to Cloudflare Workers/Pages",
4
- "version": "6.2.2",
4
+ "version": "6.2.3",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
7
7
  "author": "withastro",
@@ -32,15 +32,15 @@
32
32
  "tiny-glob": "^0.2.9"
33
33
  },
34
34
  "peerDependencies": {
35
- "astro": "^2.1.4"
35
+ "astro": "^2.3.2"
36
36
  },
37
37
  "devDependencies": {
38
- "astro": "2.1.4",
39
- "astro-scripts": "0.0.14",
40
38
  "chai": "^4.3.6",
41
39
  "cheerio": "^1.0.0-rc.11",
42
40
  "mocha": "^9.2.2",
43
- "wrangler": "^2.0.23"
41
+ "wrangler": "^2.0.23",
42
+ "astro": "2.3.2",
43
+ "astro-scripts": "0.0.14"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "astro-scripts build \"src/**/*.ts\" && tsc",
package/src/index.ts CHANGED
@@ -103,7 +103,7 @@ export default function createIntegration(args?: Options): AstroIntegration {
103
103
  allowOverwrite: true,
104
104
  format: 'esm',
105
105
  bundle: true,
106
- minify: true,
106
+ minify: _config.vite?.build?.minify !== false,
107
107
  banner: {
108
108
  js: SHIM,
109
109
  },
@@ -6,9 +6,9 @@ case `uname` in
6
6
  esac
7
7
 
8
8
  if [ -z "$NODE_PATH" ]; then
9
- export NODE_PATH="/home/runner/work/astro/astro/node_modules/.pnpm/node_modules"
9
+ export NODE_PATH="/home/runner/work/astro/astro/packages/astro/node_modules:/home/runner/work/astro/astro/packages/node_modules:/home/runner/work/astro/astro/node_modules:/home/runner/work/astro/node_modules:/home/runner/work/node_modules:/home/runner/node_modules:/home/node_modules:/node_modules:/home/runner/work/astro/astro/node_modules/.pnpm/node_modules"
10
10
  else
11
- export NODE_PATH="$NODE_PATH:/home/runner/work/astro/astro/node_modules/.pnpm/node_modules"
11
+ export NODE_PATH="/home/runner/work/astro/astro/packages/astro/node_modules:/home/runner/work/astro/astro/packages/node_modules:/home/runner/work/astro/astro/node_modules:/home/runner/work/astro/node_modules:/home/runner/work/node_modules:/home/runner/node_modules:/home/node_modules:/node_modules:/home/runner/work/astro/astro/node_modules/.pnpm/node_modules:$NODE_PATH"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
14
  exec "$basedir/node" "$basedir/../../../../../../../astro/astro.js" "$@"
@@ -6,9 +6,9 @@ case `uname` in
6
6
  esac
7
7
 
8
8
  if [ -z "$NODE_PATH" ]; then
9
- export NODE_PATH="/home/runner/work/astro/astro/node_modules/.pnpm/node_modules"
9
+ export NODE_PATH="/home/runner/work/astro/astro/packages/astro/node_modules:/home/runner/work/astro/astro/packages/node_modules:/home/runner/work/astro/astro/node_modules:/home/runner/work/astro/node_modules:/home/runner/work/node_modules:/home/runner/node_modules:/home/node_modules:/node_modules:/home/runner/work/astro/astro/node_modules/.pnpm/node_modules"
10
10
  else
11
- export NODE_PATH="$NODE_PATH:/home/runner/work/astro/astro/node_modules/.pnpm/node_modules"
11
+ export NODE_PATH="/home/runner/work/astro/astro/packages/astro/node_modules:/home/runner/work/astro/astro/packages/node_modules:/home/runner/work/astro/astro/node_modules:/home/runner/work/astro/node_modules:/home/runner/work/node_modules:/home/runner/node_modules:/home/node_modules:/node_modules:/home/runner/work/astro/astro/node_modules/.pnpm/node_modules:$NODE_PATH"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
14
  exec "$basedir/node" "$basedir/../../../../../../../astro/astro.js" "$@"
@@ -6,9 +6,9 @@ case `uname` in
6
6
  esac
7
7
 
8
8
  if [ -z "$NODE_PATH" ]; then
9
- export NODE_PATH="/home/runner/work/astro/astro/node_modules/.pnpm/node_modules"
9
+ export NODE_PATH="/home/runner/work/astro/astro/packages/astro/node_modules:/home/runner/work/astro/astro/packages/node_modules:/home/runner/work/astro/astro/node_modules:/home/runner/work/astro/node_modules:/home/runner/work/node_modules:/home/runner/node_modules:/home/node_modules:/node_modules:/home/runner/work/astro/astro/node_modules/.pnpm/node_modules"
10
10
  else
11
- export NODE_PATH="$NODE_PATH:/home/runner/work/astro/astro/node_modules/.pnpm/node_modules"
11
+ export NODE_PATH="/home/runner/work/astro/astro/packages/astro/node_modules:/home/runner/work/astro/astro/packages/node_modules:/home/runner/work/astro/astro/node_modules:/home/runner/work/astro/node_modules:/home/runner/work/node_modules:/home/runner/node_modules:/home/node_modules:/node_modules:/home/runner/work/astro/astro/node_modules/.pnpm/node_modules:$NODE_PATH"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
14
  exec "$basedir/node" "$basedir/../../../../../../../astro/astro.js" "$@"