mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
refactor: clean up build_package.js and remove unused imports
chore: update .gitignore to remove Python cache entries
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
import { execSync, spawnSync } from 'node:child_process';
|
||||
import { execSync } from 'node:child_process';
|
||||
import { writeFileSync } from 'node:fs';
|
||||
import { join } from 'node:path';
|
||||
|
||||
@@ -27,15 +27,7 @@ if (!process.cwd().includes('packages')) {
|
||||
}
|
||||
|
||||
// build typescript files
|
||||
const tscResult = spawnSync('tsc', ['--build'], { stdio: 'inherit' });
|
||||
|
||||
if (tscResult.status !== 0) {
|
||||
const failureReason =
|
||||
tscResult.status !== null
|
||||
? `exit code ${tscResult.status}`
|
||||
: `signal ${tscResult.signal ?? 'unknown'}`;
|
||||
console.warn(`tsc --build completed with warnings (${failureReason}).`);
|
||||
}
|
||||
execSync('tsc --build', { stdio: 'inherit' });
|
||||
|
||||
// copy .{md,json} files
|
||||
execSync('node ../../scripts/copy_files.js', { stdio: 'inherit' });
|
||||
|
||||
Reference in New Issue
Block a user