vike 0.4.149-commit-041ee42 → 0.4.149-commit-d815556
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/cjs/node/plugin/plugins/commonConfig/assertResolveAlias.js +3 -0
- package/dist/cjs/node/plugin/plugins/importUserCode/v1-design/getVikeConfig/crawlPlusFiles.js +1 -1
- package/dist/cjs/utils/projectInfo.js +1 -1
- package/dist/esm/node/plugin/plugins/commonConfig/assertResolveAlias.js +3 -0
- package/dist/esm/node/plugin/plugins/importUserCode/v1-design/getVikeConfig/crawlPlusFiles.js +1 -1
- package/dist/esm/utils/projectInfo.d.ts +2 -2
- package/dist/esm/utils/projectInfo.js +1 -1
- package/package.json +1 -1
|
@@ -40,6 +40,9 @@ function assertResolveAlias(config) {
|
|
|
40
40
|
// Allow un-distinguishable aliases set by @preact/preset-vite
|
|
41
41
|
if (find.startsWith('react'))
|
|
42
42
|
return;
|
|
43
|
+
// Allow un-distinguishable aliases set by @vitejs/plugin-vue2 https://github.com/vikejs/vike/issues/1329
|
|
44
|
+
if (find === 'vue')
|
|
45
|
+
return;
|
|
43
46
|
{
|
|
44
47
|
const msg = `${errPrefix} defines an invalid ${picocolors_1.default.cyan('resolve.alias')}: a path alias cannot be the empty string ${picocolors_1.default.cyan("''")}`;
|
|
45
48
|
(0, utils_js_1.assertUsage)(find !== '', msg);
|
package/dist/cjs/node/plugin/plugins/importUserCode/v1-design/getVikeConfig/crawlPlusFiles.js
CHANGED
|
@@ -126,5 +126,5 @@ async function isUsingGit(userRootDir) {
|
|
|
126
126
|
async function runCmd(cmd, cwd) {
|
|
127
127
|
const res = await execA(cmd, { cwd });
|
|
128
128
|
(0, utils_js_1.assert)(res.stderr === '');
|
|
129
|
-
return res.stdout.toString().
|
|
129
|
+
return res.stdout.toString().split('\n').filter(Boolean);
|
|
130
130
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PROJECT_VERSION = exports.projectInfo = void 0;
|
|
4
4
|
const assertSingleInstance_js_1 = require("./assertSingleInstance.js");
|
|
5
|
-
const PROJECT_VERSION = '0.4.149-commit-
|
|
5
|
+
const PROJECT_VERSION = '0.4.149-commit-d815556';
|
|
6
6
|
exports.PROJECT_VERSION = PROJECT_VERSION;
|
|
7
7
|
const projectInfo = {
|
|
8
8
|
projectName: 'Vike',
|
|
@@ -35,6 +35,9 @@ function assertResolveAlias(config) {
|
|
|
35
35
|
// Allow un-distinguishable aliases set by @preact/preset-vite
|
|
36
36
|
if (find.startsWith('react'))
|
|
37
37
|
return;
|
|
38
|
+
// Allow un-distinguishable aliases set by @vitejs/plugin-vue2 https://github.com/vikejs/vike/issues/1329
|
|
39
|
+
if (find === 'vue')
|
|
40
|
+
return;
|
|
38
41
|
{
|
|
39
42
|
const msg = `${errPrefix} defines an invalid ${pc.cyan('resolve.alias')}: a path alias cannot be the empty string ${pc.cyan("''")}`;
|
|
40
43
|
assertUsage(find !== '', msg);
|
package/dist/esm/node/plugin/plugins/importUserCode/v1-design/getVikeConfig/crawlPlusFiles.js
CHANGED
|
@@ -120,5 +120,5 @@ async function isUsingGit(userRootDir) {
|
|
|
120
120
|
async function runCmd(cmd, cwd) {
|
|
121
121
|
const res = await execA(cmd, { cwd });
|
|
122
122
|
assert(res.stderr === '');
|
|
123
|
-
return res.stdout.toString().
|
|
123
|
+
return res.stdout.toString().split('\n').filter(Boolean);
|
|
124
124
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export { projectInfo };
|
|
2
2
|
export type { ProjectTag };
|
|
3
3
|
export { PROJECT_VERSION };
|
|
4
|
-
declare const PROJECT_VERSION: "0.4.149-commit-
|
|
4
|
+
declare const PROJECT_VERSION: "0.4.149-commit-d815556";
|
|
5
5
|
type PackageName = typeof projectInfo.npmPackageName;
|
|
6
6
|
type ProjectVersion = typeof projectInfo.projectVersion;
|
|
7
7
|
type ProjectTag = `[${PackageName}]` | `[${PackageName}@${ProjectVersion}]`;
|
|
8
8
|
declare const projectInfo: {
|
|
9
9
|
projectName: "Vike";
|
|
10
|
-
projectVersion: "0.4.149-commit-
|
|
10
|
+
projectVersion: "0.4.149-commit-d815556";
|
|
11
11
|
npmPackageName: "vike";
|
|
12
12
|
githubRepository: "https://github.com/vikejs/vike";
|
|
13
13
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { projectInfo };
|
|
2
2
|
export { PROJECT_VERSION };
|
|
3
3
|
import { onProjectInfo } from './assertSingleInstance.js';
|
|
4
|
-
const PROJECT_VERSION = '0.4.149-commit-
|
|
4
|
+
const PROJECT_VERSION = '0.4.149-commit-d815556';
|
|
5
5
|
const projectInfo = {
|
|
6
6
|
projectName: 'Vike',
|
|
7
7
|
projectVersion: PROJECT_VERSION,
|