@sveltejs/kit 1.0.0-next.381 → 1.0.0-next.382

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/cli.js CHANGED
@@ -18,7 +18,7 @@ function handle_error(e) {
18
18
  process.exit(1);
19
19
  }
20
20
 
21
- const prog = sade('svelte-kit').version('1.0.0-next.381');
21
+ const prog = sade('svelte-kit').version('1.0.0-next.382');
22
22
 
23
23
  prog
24
24
  .command('package')
package/dist/vite.js CHANGED
@@ -269,9 +269,9 @@ const get_default_config = function ({ config, input, ssr, outDir }) {
269
269
  input,
270
270
  output: {
271
271
  format: 'esm',
272
- entryFileNames: ssr ? '[name].js' : 'immutable/[name]-[hash].js',
273
- chunkFileNames: 'immutable/chunks/[name]-[hash].js',
274
- assetFileNames: 'immutable/assets/[name]-[hash][extname]'
272
+ entryFileNames: ssr ? '[name].js' : `${config.kit.appDir}/immutable/[name]-[hash].js`,
273
+ chunkFileNames: `${config.kit.appDir}/immutable/chunks/[name]-[hash].js`,
274
+ assetFileNames: `${config.kit.appDir}/immutable/assets/[name]-[hash][extname]`
275
275
  },
276
276
  preserveEntrySignatures: 'strict'
277
277
  },
@@ -309,7 +309,7 @@ function assets_base(config) {
309
309
  // during `svelte-kit preview`, because we use a local asset path. This
310
310
  // may be fixed in Vite 3: https://github.com/vitejs/vite/issues/2009
311
311
  const { base, assets } = config.paths;
312
- return `${assets || base}/${config.appDir}/`;
312
+ return `${assets || base}/`;
313
313
  }
314
314
 
315
315
  /**
@@ -397,7 +397,7 @@ export class Server {
397
397
  manifest,
398
398
  method_override: ${s(config.kit.methodOverride)},
399
399
  paths: { base, assets },
400
- prefix: assets + '/${config.kit.appDir}/',
400
+ prefix: assets + '/',
401
401
  prerender: {
402
402
  default: ${config.kit.prerender.default},
403
403
  enabled: ${config.kit.prerender.enabled}
@@ -703,7 +703,7 @@ async function build_service_worker(
703
703
 
704
704
  export const build = [
705
705
  ${Array.from(build)
706
- .map((file) => `${s(`${config.kit.paths.base}/${config.kit.appDir}/${file}`)}`)
706
+ .map((file) => `${s(`${config.kit.paths.base}/${file}`)}`)
707
707
  .join(',\n\t\t\t\t')}
708
708
  ];
709
709
 
@@ -2951,7 +2951,7 @@ function kit() {
2951
2951
  paths = {
2952
2952
  build_dir: `${svelte_config.kit.outDir}/build`,
2953
2953
  output_dir: `${svelte_config.kit.outDir}/output`,
2954
- client_out_dir: `${svelte_config.kit.outDir}/output/client/${svelte_config.kit.appDir}`
2954
+ client_out_dir: `${svelte_config.kit.outDir}/output/client/`
2955
2955
  };
2956
2956
 
2957
2957
  if (is_build) {
@@ -3042,7 +3042,7 @@ function kit() {
3042
3042
  });
3043
3043
 
3044
3044
  fs__default.writeFileSync(
3045
- `${paths.client_out_dir}/version.json`,
3045
+ `${paths.client_out_dir}/${svelte_config.kit.appDir}/version.json`,
3046
3046
  JSON.stringify({ version: svelte_config.kit.version.name })
3047
3047
  );
3048
3048
 
@@ -3087,8 +3087,8 @@ function kit() {
3087
3087
 
3088
3088
  const files = new Set([
3089
3089
  ...static_files,
3090
- ...chunks.map((chunk) => `${svelte_config.kit.appDir}/${chunk.fileName}`),
3091
- ...assets.map((chunk) => `${svelte_config.kit.appDir}/${chunk.fileName}`)
3090
+ ...chunks.map((chunk) => chunk.fileName),
3091
+ ...assets.map((chunk) => chunk.fileName)
3092
3092
  ]);
3093
3093
 
3094
3094
  // TODO is this right?
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/kit",
3
- "version": "1.0.0-next.381",
3
+ "version": "1.0.0-next.382",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/sveltejs/kit",