vike 0.4.142-commit-937cb3b → 0.4.142-commit-ebf6e2d

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.
@@ -53,7 +53,7 @@ function buildConfig() {
53
53
  },
54
54
  async writeBundle(options, bundle) {
55
55
  const manifestEntry = bundle[manifestTempFile];
56
- if (generateManifest) {
56
+ if (generateManifest && manifestEntry) {
57
57
  (0, utils_js_1.assert)(manifestEntry);
58
58
  const { dir } = options;
59
59
  (0, utils_js_1.assert)(dir);
@@ -64,9 +64,6 @@ function buildConfig() {
64
64
  const manifestFilePathNew = path_1.default.join(dir, '..', 'assets.json');
65
65
  await promises_1.default.rename(manifestFilePathOld, manifestFilePathNew);
66
66
  }
67
- else {
68
- (0, utils_js_1.assert)(!manifestEntry);
69
- }
70
67
  }
71
68
  };
72
69
  }
@@ -76,5 +76,5 @@ function assertEsm(userViteRoot) {
76
76
  }
77
77
  (0, utils_js_1.assert)(dir.endsWith('/'));
78
78
  dir = picocolors_1.default.dim(dir);
79
- (0, utils_js_1.assertWarning)(packageJson.type === 'module', `We recommend setting ${dir}package.json#type to "module" (and therefore writing ESM code instead of CJS code), see https://vike.dev/CJS`, { onlyOnce: true });
79
+ (0, utils_js_1.assertWarning)(packageJson.type === 'module', `We recommend setting ${dir}package.json#type to "module", see https://vike.dev/CJS`, { onlyOnce: true });
80
80
  }
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.projectInfo = void 0;
4
4
  const assertSingleInstance_js_1 = require("./assertSingleInstance.js");
5
- const PROJECT_VERSION = '0.4.142-commit-937cb3b';
5
+ const PROJECT_VERSION = '0.4.142-commit-ebf6e2d';
6
6
  const projectInfo = {
7
7
  projectName: 'Vike',
8
8
  projectVersion: PROJECT_VERSION,
@@ -50,7 +50,7 @@ function buildConfig() {
50
50
  },
51
51
  async writeBundle(options, bundle) {
52
52
  const manifestEntry = bundle[manifestTempFile];
53
- if (generateManifest) {
53
+ if (generateManifest && manifestEntry) {
54
54
  assert(manifestEntry);
55
55
  const { dir } = options;
56
56
  assert(dir);
@@ -61,9 +61,6 @@ function buildConfig() {
61
61
  const manifestFilePathNew = path.join(dir, '..', 'assets.json');
62
62
  await fs.rename(manifestFilePathOld, manifestFilePathNew);
63
63
  }
64
- else {
65
- assert(!manifestEntry);
66
- }
67
64
  }
68
65
  };
69
66
  }
@@ -70,5 +70,5 @@ function assertEsm(userViteRoot) {
70
70
  }
71
71
  assert(dir.endsWith('/'));
72
72
  dir = pc.dim(dir);
73
- assertWarning(packageJson.type === 'module', `We recommend setting ${dir}package.json#type to "module" (and therefore writing ESM code instead of CJS code), see https://vike.dev/CJS`, { onlyOnce: true });
73
+ assertWarning(packageJson.type === 'module', `We recommend setting ${dir}package.json#type to "module", see https://vike.dev/CJS`, { onlyOnce: true });
74
74
  }
@@ -5,7 +5,7 @@ type ProjectVersion = typeof projectInfo.projectVersion;
5
5
  type ProjectTag = `[${PackageName}]` | `[${PackageName}@${ProjectVersion}]`;
6
6
  declare const projectInfo: {
7
7
  projectName: "Vike";
8
- projectVersion: "0.4.142-commit-937cb3b";
8
+ projectVersion: "0.4.142-commit-ebf6e2d";
9
9
  npmPackageName: "vike";
10
10
  githubRepository: "https://github.com/vikejs/vike";
11
11
  };
@@ -1,6 +1,6 @@
1
1
  export { projectInfo };
2
2
  import { onProjectInfo } from './assertSingleInstance.js';
3
- const PROJECT_VERSION = '0.4.142-commit-937cb3b';
3
+ const PROJECT_VERSION = '0.4.142-commit-ebf6e2d';
4
4
  const projectInfo = {
5
5
  projectName: 'Vike',
6
6
  projectVersion: PROJECT_VERSION,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike",
3
- "version": "0.4.142-commit-937cb3b",
3
+ "version": "0.4.142-commit-ebf6e2d",
4
4
  "scripts": {
5
5
  "dev": "tsc --watch",
6
6
  "build": "rimraf dist/ && pnpm run build:esm && pnpm run build:cjs",