django-vue3-admin-web/node_modules/aws-crt/scripts/tsc.js
2025-10-20 21:21:14 +08:00

21 lines
519 B
JavaScript

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
const fs = require("fs");
const child_process = require("child_process");
function run(cmd) {
console.log(`> ${cmd}`)
child_process.execSync(cmd, {
stdio: "inherit"
});
}
// Run TSC
run('npx tsc -p tsconfig.json')
run('npx tsc -p tsconfig.browser.json');
// Copy the binding declaration file over verbatim
fs.copyFileSync('lib/native/binding.d.ts', 'dist/native/binding.d.ts');