udpate
This commit is contained in:
@@ -40,6 +40,28 @@ await Bun.build({
|
||||
},
|
||||
external,
|
||||
});
|
||||
|
||||
await Bun.build({
|
||||
target: 'node',
|
||||
format: 'esm',
|
||||
entrypoints: [w('./src/main.ts')],
|
||||
outdir: w('./dist'),
|
||||
naming: {
|
||||
entry: 'assistant-opencode.js',
|
||||
},
|
||||
define: {
|
||||
ENVISION_VERSION: JSON.stringify(pkg.version),
|
||||
},
|
||||
external,
|
||||
});
|
||||
|
||||
const dts = 'dts -i src/main.ts -o assistant-opencode.d.ts';
|
||||
Bun.spawnSync({
|
||||
cmd: ['sh', '-c', dts],
|
||||
cwd: __dirname,
|
||||
stdout: 'inherit',
|
||||
stderr: 'inherit',
|
||||
});
|
||||
// const copyDist = ['dist', 'bin'];
|
||||
const copyDist = ['dist'];
|
||||
export const copyFileToEnvision = async () => {
|
||||
|
||||
Reference in New Issue
Block a user