altd 0.0.3 → 0.0.4

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/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { Command } from 'commander';
3
- import pkg from './package.json' assert { type: 'json' };
3
+ import pkg from '../package.json' assert { type: 'json' };
4
4
  import AccessLogTailDispatcher from './altd.js';
5
5
 
6
6
  const program = new Command();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "altd",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Access log tail dispatcher",
5
5
  "type": "module",
6
6
  "bin": {
package/scripts/build.js CHANGED
@@ -9,7 +9,9 @@ const distDir = join(projectRoot, 'dist');
9
9
  await mkdir(distDir, { recursive: true });
10
10
 
11
11
  const indexSource = await readFile(join(projectRoot, 'index.js'), 'utf8');
12
- const indexOutput = indexSource.replace('./src/altd.js', './altd.js');
12
+ const indexOutput = indexSource
13
+ .replace('./src/altd.js', './altd.js')
14
+ .replace('./package.json', '../package.json');
13
15
 
14
16
  await writeFile(join(distDir, 'index.js'), indexOutput);
15
17
  await copyFile(join(projectRoot, 'src', 'altd.js'), join(distDir, 'altd.js'));