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 +1 -1
- package/package.json +1 -1
- package/scripts/build.js +3 -1
package/dist/index.js
CHANGED
package/package.json
CHANGED
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
|
|
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'));
|