vowel 0.1.7 → 0.1.8

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vowel",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "bin": "./bin.js",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
package/server.js CHANGED
@@ -13,8 +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
+
16
19
  // Check if this is a user (process argument) or package dev (cwd)
17
- const $home = isBuild ? join(process.cwd(), 'content') : directory;
20
+ const $home = isBuild ? process.cwd() : directory;
18
21
 
19
22
  const define = {
20
23
  $home
@@ -3,8 +3,6 @@
3
3
 
4
4
  let { folder, segments, child } = $props();
5
5
 
6
- console.log({ folder });
7
-
8
6
  // There's definitely a better way to filter this
9
7
  function filterFolder(folder) {
10
8
  const filteredFolder = {};
@@ -20,7 +18,6 @@
20
18
  </script>
21
19
 
22
20
  {#if Object.keys(evergreen).some((key) => key !== '$' && key !== '_')}
23
- {@const dummy = console.log({ evergreen })}
24
21
  <nav class="top-bar">
25
22
  {#if !child}
26
23
  <a aria-current={isActiveLink(segments)} href={evergreen?.url || evergreen['$']?.url}
package/svelte.config.js CHANGED
@@ -6,11 +6,8 @@ const args = mri(process.argv);
6
6
 
7
7
  const isDev = args._.includes('dev');
8
8
 
9
- const demoDir = process.cwd() + '/content';
10
- // const NPMRunDev = process.argv[2] === 'dev';
11
- // const isBuild = process.argv[2] === 'build';
12
- const receivedHomePath = isDev || args.build ? false : args.directory;
13
- const homeDir = receivedHomePath || demoDir;
9
+ const homeDir = isDev || args.build ? false : args.directory;
10
+
14
11
  const relativePathToHome = path.relative(process.cwd(), homeDir);
15
12
 
16
13
  /** @type {import('@sveltejs/kit').Config} */