chore: import upstream snapshot with attribution
i18n - Build Validation / Validate i18n Builds (24) (push) Has been cancelled
CI - Node.js / Lint (24) (push) Has been cancelled
CI - Node.js / Build (24) (push) Has been cancelled
CI - Node.js / Test (24) (push) Has been cancelled
CI - Node.js / Test - Upcoming Changes (24) (push) Has been cancelled
CI - Node.js / Test - i18n (italian, 24) (push) Has been cancelled
CI - Node.js / Test - i18n (portuguese, 24) (push) Has been cancelled
CD - Docker - GHCR Images / Build and Push Images (push) Has been cancelled
i18n - Build Validation / Validate i18n Builds (24) (push) Has been cancelled
CI - Node.js / Lint (24) (push) Has been cancelled
CI - Node.js / Build (24) (push) Has been cancelled
CI - Node.js / Test (24) (push) Has been cancelled
CI - Node.js / Test - Upcoming Changes (24) (push) Has been cancelled
CI - Node.js / Test - i18n (italian, 24) (push) Has been cancelled
CI - Node.js / Test - i18n (portuguese, 24) (push) Has been cancelled
CD - Docker - GHCR Images / Build and Push Images (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import { cpSync, mkdirSync, rmSync } from 'node:fs';
|
||||
import { resolve } from 'node:path';
|
||||
|
||||
import { version as workerVersion } from '@freecodecamp/browser-scripts/package.json';
|
||||
import { version as helperVersion } from '@freecodecamp/curriculum-helpers/package.json';
|
||||
|
||||
const __dirname = import.meta.dirname;
|
||||
|
||||
const distDir = resolve(__dirname, 'dist');
|
||||
|
||||
const destJsDir = resolve(distDir, './js');
|
||||
|
||||
rmSync(distDir, { recursive: true, force: true });
|
||||
mkdirSync(destJsDir, { recursive: true });
|
||||
|
||||
cpSync(
|
||||
resolve(__dirname, './node_modules/sass.js/dist/sass.sync.js'),
|
||||
resolve(destJsDir, 'workers', workerVersion, 'sass.sync.js')
|
||||
);
|
||||
cpSync(
|
||||
resolve(
|
||||
__dirname,
|
||||
'./node_modules/@freecodecamp/curriculum-helpers/dist/test-runner'
|
||||
),
|
||||
resolve(destJsDir, `test-runner/${helperVersion}/`),
|
||||
{ recursive: true }
|
||||
);
|
||||
Reference in New Issue
Block a user