Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function package ( platform ) {
// sharp: https://github.com/lovell/sharp/releases
// lipvips: https://github.com/lovell/sharp-libvips/releases/
await fetch( platform, [ 'ffmpeg', 'rethinkdb', 'libvips', 'sharp' ] );
const buildFolder = `builds/${ platform }/`;
await reset( buildFolder );
await tsc( __dirname, {
...JSON.parse( ( await fs.readFile( 'tsconfig.json', 'utf8' ) ) ).compilerOptions
} );
await pkg( [ '.', '--target', getPackageHost( platform ), '--out-path', buildFolder ] );
for ( let native of nativeFolders ) {
await makeDir( path.join( buildFolder, native ) );
await src( path.join( native, '**/*' ), { base: "." } )
.dest( buildFolder )
.exec();
}
await copy(
'./lib/Extensions',
async tsc() {
await tsc("src", {
target: "esnext"
});
}
async tsc(){
await tsc("src", {
target : "esnext"
});
}
task("tsc", async () => {
await tsc("src", {
target: "esnext",
declaration: true,
outDir: "dist/"
});
});
task("tsc", async () => {
await tsc("src", {
target : "esnext",
declaration : true,
outDir : "dist/"
});
});