vowel 0.1.8 → 0.1.10
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/package.json +1 -1
- package/server.js +4 -4
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -13,14 +13,11 @@ const __dirname = fileURLToPath(new URL('.', import.meta.url));
|
|
|
13
13
|
// If this is not a build, read the process argument
|
|
14
14
|
const arg = !isBuild ? process.argv[2] : false;
|
|
15
15
|
|
|
16
|
-
console.log({ directory });
|
|
17
|
-
console.log({ process: process.cwd() });
|
|
18
|
-
|
|
19
16
|
// Check if this is a user (process argument) or package dev (cwd)
|
|
20
17
|
const $home = isBuild ? process.cwd() : directory;
|
|
21
18
|
|
|
22
19
|
const define = {
|
|
23
|
-
$home
|
|
20
|
+
$home: directory
|
|
24
21
|
};
|
|
25
22
|
|
|
26
23
|
const config = {
|
|
@@ -40,6 +37,7 @@ const vercelDefaults = {
|
|
|
40
37
|
};
|
|
41
38
|
|
|
42
39
|
async function buildProject() {
|
|
40
|
+
console.log('Building...');
|
|
43
41
|
const outputDir = join($home[0], '.output');
|
|
44
42
|
const vercelConfigPath = join($home[0], 'vercel.json');
|
|
45
43
|
const vercelDirPath = join($home[0], '.vercel');
|
|
@@ -54,6 +52,8 @@ async function buildProject() {
|
|
|
54
52
|
|
|
55
53
|
await build(config);
|
|
56
54
|
|
|
55
|
+
console.log('Build completed.');
|
|
56
|
+
|
|
57
57
|
if (projectData !== null) {
|
|
58
58
|
await mkdir(vercelDirPath, { recursive: true });
|
|
59
59
|
await writeFile(projectJsonPath, JSON.stringify(projectData, null, 2), 'utf-8');
|