@sveltejs/adapter-netlify 1.0.0-next.52 → 1.0.0-next.53

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.
Files changed (2) hide show
  1. package/index.js +3 -2
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { appendFileSync, existsSync, readFileSync, writeFileSync } from 'fs';
2
- import { join, resolve, posix } from 'path';
2
+ import { dirname, join, resolve, posix } from 'path';
3
3
  import { fileURLToPath } from 'url';
4
4
  import glob from 'tiny-glob/sync.js';
5
5
  import esbuild from 'esbuild';
@@ -62,7 +62,7 @@ export default function ({ split = false, edge = edgeSetInEnvVar } = {}) {
62
62
  if (split) {
63
63
  throw new Error('Cannot use `split: true` alongside `edge: true`');
64
64
  }
65
-
65
+
66
66
  await generate_edge_functions({ builder });
67
67
  } else {
68
68
  await generate_lambda_functions({ builder, esm, split, publish });
@@ -234,6 +234,7 @@ function generate_lambda_functions({ builder, publish, split, esm }) {
234
234
  if (existsSync('_redirects')) {
235
235
  builder.copy('_redirects', redirect_file);
236
236
  }
237
+ builder.mkdirp(dirname(redirect_file));
237
238
  appendFileSync(redirect_file, `\n\n${redirects.join('\n')}`);
238
239
  }
239
240
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/adapter-netlify",
3
- "version": "1.0.0-next.52",
3
+ "version": "1.0.0-next.53",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/sveltejs/kit",
@@ -31,7 +31,7 @@
31
31
  "@rollup/plugin-commonjs": "^21.0.0",
32
32
  "@rollup/plugin-json": "^4.1.0",
33
33
  "@rollup/plugin-node-resolve": "^13.0.5",
34
- "@sveltejs/kit": "1.0.0-next.317",
34
+ "@sveltejs/kit": "1.0.0-next.318",
35
35
  "rimraf": "^3.0.2",
36
36
  "rollup": "^2.58.0",
37
37
  "typescript": "^4.6.2",