mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-09-11 04:00:38 +00:00
11 lines
530 B
JavaScript
11 lines
530 B
JavaScript
/** Link the downloaded platform artifact for dependency-free ABI tests. */
|
|
import fs from 'node:fs';
|
|
import path from 'node:path';
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
const packages = fileURLToPath(new URL('../packages/', import.meta.url));
|
|
const platform = `${process.platform}-${process.arch}`;
|
|
const parent = path.join(packages, 'entry/node_modules/@deepseek-ai');
|
|
fs.mkdirSync(parent, { recursive: true });
|
|
fs.symlinkSync(path.join(packages, platform), path.join(parent, `node-addon-system-${platform}`), 'junction');
|