fix: update header pattern to allow 'authors & contributors' suffix

This commit is contained in:
2026-01-08 01:35:27 +03:00
parent 49a6fd372f
commit 60f7beb120
70 changed files with 246 additions and 246 deletions
@@ -1,5 +1,5 @@
#!/usr/bin/env node
// Copyright 2017-2025 @polkadot/dev authors & contributors
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
// SPDX-License-Identifier: Apache-2.0
import fs from 'node:fs';
@@ -12,10 +12,10 @@ import { copyDirSync, copyFileSync, denoCreateDir, execGit, execPm, execSync, ex
/** @typedef {Record<string, any>} ChangelogMap */
logBin('polkadot-ci-ghact-build');
logBin('pezkuwi-ci-ghact-build');
const DENO_REPO = 'polkadot-js/build-deno.land';
const BUND_REPO = 'polkadot-js/build-bundle';
const DENO_REPO = 'pezkuwi-js/build-deno.land';
const BUND_REPO = 'pezkuwi-js/build-bundle';
const repo = `${GITHUB_TOKEN_URL}/${GITHUB_REPO}.git`;
const denoRepo = `${GITHUB_TOKEN_URL}/${DENO_REPO}.git`;
@@ -305,14 +305,14 @@ function commitClone (repo, clone, names) {
}
/**
* Publishes a specific package to polkadot-js bundles
* Publishes a specific package to pezkuwi-js bundles
*
* @returns {void}
*/
function bundlePublishPkg () {
const { name, version } = npmGetJson();
const dirName = name.split('/')[1];
const bundName = `bundle-polkadot-${dirName}.js`;
const bundName = `bundle-pezkuwi-${dirName}.js`;
const srcPath = path.join('build', bundName);
const dstDir = path.join('../..', bundClone);
@@ -333,7 +333,7 @@ function bundlePublishPkg () {
}
/**
* Publishes all packages to polkadot-js bundles
* Publishes all packages to pezkuwi-js bundles
*
* @returns {void}
*/
@@ -419,7 +419,7 @@ function verBump () {
if (argv['skip-beta'] || patch === '0') {
// don't allow beta versions
execPm('polkadot-dev-version patch');
execPm('pezkuwi-dev-version patch');
withNpm = true;
} else if (tag || currentVersion === lastVersion) {
// if we don't want to publish, add an X before passing
@@ -430,7 +430,7 @@ function verBump () {
}
// beta version, just continue the stream of betas
execPm('polkadot-dev-version pre');
execPm('pezkuwi-dev-version pre');
} else {
// manually set, got for publish
withNpm = true;
@@ -440,7 +440,7 @@ function verBump () {
npmSetVersionFields();
rmFile('.123trigger');
execPm('polkadot-dev-contrib');
execPm('pezkuwi-dev-contrib');
execGit('add --all .');
}
@@ -484,7 +484,7 @@ skip-checks: true"`);
? `--assets ${process.env['GH_RELEASE_FILES']}`
: '';
execPm(`polkadot-exec-ghrelease --draft ${files} --yes`);
execPm(`pezkuwi-exec-ghrelease --draft ${files} --yes`);
}
}
@@ -526,7 +526,7 @@ getFlags();
verBump();
// perform the actual CI build
execPm('polkadot-dev-clean-build');
execPm('pezkuwi-dev-clean-build');
execPm('lint');
execPm('test');
execPm('build');
@@ -1,14 +1,14 @@
#!/usr/bin/env node
// Copyright 2017-2025 @polkadot/dev authors & contributors
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { execPm, GITHUB_REPO, GITHUB_TOKEN_URL, gitSetup, logBin } from './util.mjs';
const repo = `${GITHUB_TOKEN_URL}/${GITHUB_REPO}.git`;
logBin('polkadot-ci-ghact-docs');
logBin('pezkuwi-ci-ghact-docs');
gitSetup();
execPm('run docs');
execPm(`polkadot-exec-ghpages --dotfiles --repo ${repo} --dist ${process.env['GH_PAGES_SRC']} --dest .`, true);
execPm(`pezkuwi-exec-ghpages --dotfiles --repo ${repo} --dist ${process.env['GH_PAGES_SRC']} --dest .`, true);
@@ -1,12 +1,12 @@
#!/usr/bin/env node
// Copyright 2017-2025 @polkadot/dev authors & contributors
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
// SPDX-License-Identifier: Apache-2.0
import fs from 'node:fs';
import { execGit, logBin } from './util.mjs';
logBin('polkadot-ci-ghpages-force');
logBin('pezkuwi-ci-ghpages-force');
// ensure we are on master
execGit('checkout master');
@@ -1,5 +1,5 @@
#!/usr/bin/env node
// Copyright 2017-2025 @polkadot/dev authors & contributors
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
// SPDX-License-Identifier: Apache-2.0
import fs from 'node:fs';
@@ -7,7 +7,7 @@ import path from 'node:path';
import { copyDirSync, logBin, rimrafSync } from './util.mjs';
logBin('polkadot-dev-build-docs');
logBin('pezkuwi-dev-build-docs');
let docRoot = path.join(process.cwd(), 'docs');
@@ -1,5 +1,5 @@
#!/usr/bin/env node
// Copyright 2017-2025 @polkadot/dev authors & contributors
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
// SPDX-License-Identifier: Apache-2.0
import JSON5 from 'json5';
@@ -16,7 +16,7 @@ import { copyDirSync, copyFileSync, DENO_EXT_PRE, DENO_LND_PRE, DENO_POL_PRE, en
const WP_CONFIGS = ['js', 'cjs'].map((e) => `webpack.config.${e}`);
const RL_CONFIGS = ['js', 'mjs', 'cjs'].map((e) => `rollup.config.${e}`);
logBin('polkadot-dev-build-ts');
logBin('pezkuwi-dev-build-ts');
exitFatalEngine();
@@ -45,7 +45,7 @@ const IGNORE_IMPORTS = [
function buildWebpack () {
const config = WP_CONFIGS.find((c) => fs.existsSync(path.join(process.cwd(), c)));
execPm(`polkadot-exec-webpack --config ${config} --mode production`);
execPm(`pezkuwi-exec-webpack --config ${config} --mode production`);
}
/**
@@ -143,7 +143,7 @@ function adjustJsPath (_pkgCwd, _pkgJson, dir, f, _isDeclare) {
}
/**
* Adjust all @polkadot imports to have .ts extensions (for Deno)
* Adjust all @pezkuwi imports to have .ts extensions (for Deno)
*
* @param {string} pkgCwd
* @param {PkgJson} pkgJson
@@ -153,11 +153,11 @@ function adjustJsPath (_pkgCwd, _pkgJson, dir, f, _isDeclare) {
* @returns {string | null}
*/
function adjustDenoPath (pkgCwd, pkgJson, dir, f, isDeclare) {
if (f.startsWith('@polkadot')) {
if (f.startsWith('@pezkuwi')) {
const parts = f.split('/');
const thisPkg = parts.slice(0, 2).join('/');
const subPath = parts.slice(2).join('/');
const pjsPath = `${DENO_POL_PRE}/${thisPkg.replace('@polkadot/', '')}`;
const pjsPath = `${DENO_POL_PRE}/${thisPkg.replace('@pezkuwi/', '')}`;
if (subPath.includes("' assert { type:")) {
// these are for type asserts, we keep the assert
@@ -303,7 +303,7 @@ function adjustDenoPath (pkgCwd, pkgJson, dir, f, isDeclare) {
//
// FIXME We cannot enable this until there is support for git deps
// https://github.com/denoland/deno/issues/18557
// This is used by @zondax/ledger-substrate
// This is used by @zondax/ledger-bizinikiwi
// return `npm:${depName}@${depVersion}${depPath || ''}`;
} else {
exitFatal(`Unknown Deno versioned package '${f}' inside ${pkgJson.name}`);
@@ -671,12 +671,12 @@ function tweakCjsPaths () {
// actually should only care about packageInfo, so add this one explicitly. If we
// do use path-imports for others, rather adjust them at that specific point
// .replace(
// /require\("@polkadot\/([a-z-]*)\/(.*)"\)/g,
// 'require("@polkadot/$1/cjs/$2")'
// /require\("@pezkuwi\/([a-z-]*)\/(.*)"\)/g,
// 'require("@pezkuwi/$1/cjs/$2")'
// )
.replace(
/require\("@polkadot\/([a-z-]*)\/packageInfo"\)/g,
'require("@polkadot/$1/cjs/packageInfo")'
/require\("@pezkuwi\/([a-z-]*)\/packageInfo"\)/g,
'require("@pezkuwi/$1/cjs/packageInfo")'
)
);
});
@@ -1080,7 +1080,7 @@ function lintInput (dir) {
// This does have negative effects - proper forks that add their own source
// file will also be caught in the net, i.e. we expect all files to conform
if (n === 0 && (
!/\/\/ Copyright .* @polkadot\//.test(l) &&
!/\/\/ Copyright .* @pezkuwi\//.test(l) &&
!/\/\/ Auto-generated via `/.test(l) &&
!/#!\/usr\/bin\/env node/.test(l)
)) {
@@ -1282,7 +1282,7 @@ async function buildJs (compileType, repoPath, dir, locals) {
const pkgJson = JSON.parse(fs.readFileSync(path.join(process.cwd(), './package.json'), 'utf-8'));
const { name, version } = pkgJson;
if (!name.startsWith('@polkadot/')) {
if (!name.startsWith('@pezkuwi/')) {
return;
}
@@ -1299,16 +1299,16 @@ async function buildJs (compileType, repoPath, dir, locals) {
if (!fs.existsSync(path.join(process.cwd(), '.skip-build'))) {
const srcHeader = `// Copyright 2017-${new Date().getFullYear()} ${name} authors & contributors\n// SPDX-License-Identifier: Apache-2.0\n`;
const genHeader = `${srcHeader}\n// Do not edit, auto-generated by @polkadot/dev\n`;
const genHeader = `${srcHeader}\n// Do not edit, auto-generated by @pezkuwi/dev\n`;
fs.writeFileSync(path.join(process.cwd(), 'src/packageInfo.ts'), `${genHeader}\nexport const packageInfo = { name: '${name}', path: 'auto', type: 'auto', version: '${version}' };\n`);
if (!name.startsWith('@polkadot/x-')) {
if (!name.startsWith('@polkadot/dev')) {
if (!name.startsWith('@pezkuwi/x-')) {
if (!name.startsWith('@pezkuwi/dev')) {
const detectOld = path.join(process.cwd(), 'src/detectPackage.ts');
const detectOther = path.join(process.cwd(), 'src/detectOther.ts');
const detectThis = path.join(process.cwd(), 'src/packageDetect.ts');
const withDetectImport = name !== '@polkadot/util';
const withDetectImport = name !== '@pezkuwi/util';
/** @type {string[]} */
let otherImports = withDetectImport
@@ -1331,7 +1331,7 @@ async function buildJs (compileType, repoPath, dir, locals) {
}
if (withDetectImport) {
// for @polkadot/util this file contains the detection logic, keep it
// for @pezkuwi/util this file contains the detection logic, keep it
fs.rmSync(detectOld, { force: true });
}
@@ -1446,7 +1446,7 @@ async function main () {
}
}
execPm('polkadot-dev-clean-build');
execPm('pezkuwi-dev-clean-build');
const pkg = JSON.parse(fs.readFileSync(path.join(process.cwd(), './package.json'), 'utf-8'));
@@ -1465,7 +1465,7 @@ async function main () {
.split('.git')[0];
orderPackageJson(repoPath, null, pkg);
execPm('polkadot-exec-tsc --build tsconfig.build.json');
execPm('pezkuwi-exec-tsc --build tsconfig.build.json');
process.chdir('packages');
@@ -1483,7 +1483,7 @@ async function main () {
for (const dir of dirs) {
const { name } = JSON.parse(fs.readFileSync(path.join(process.cwd(), dir, './package.json'), 'utf-8'));
if (name.startsWith('@polkadot/')) {
if (name.startsWith('@pezkuwi/')) {
locals.push([dir, name]);
}
}
@@ -1502,7 +1502,7 @@ async function main () {
findUnusedTsConfig();
if (RL_CONFIGS.some((c) => fs.existsSync(path.join(process.cwd(), c)))) {
execPm('polkadot-exec-rollup --config');
execPm('pezkuwi-exec-rollup --config');
}
if (pkg.scripts) {
@@ -1,5 +1,5 @@
#!/usr/bin/env node
// Copyright 2017-2025 @polkadot/dev authors & contributors
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
// SPDX-License-Identifier: Apache-2.0
// @ts-expect-error For scripts we don't include @types/* definitions
@@ -7,7 +7,7 @@ import madge from 'madge';
import { exitFatal, logBin } from './util.mjs';
logBin('polkadot-dev-circular');
logBin('pezkuwi-dev-circular');
const res = await madge('./', { fileExtensions: ['ts', 'tsx'] });
@@ -1,5 +1,5 @@
#!/usr/bin/env node
// Copyright 2017-2025 @polkadot/dev authors & contributors
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
// SPDX-License-Identifier: Apache-2.0
import fs from 'node:fs';
@@ -10,7 +10,7 @@ import { logBin, PATHS_BUILD, rimrafSync } from './util.mjs';
const PKGS = path.join(process.cwd(), 'packages');
const DIRS = PATHS_BUILD.map((d) => `build${d}`);
logBin('polkadot-dev-clean-build');
logBin('pezkuwi-dev-clean-build');
/**
* @internal
@@ -1,5 +1,5 @@
#!/usr/bin/env node
// Copyright 2017-2025 @polkadot/dev authors & contributors
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
// SPDX-License-Identifier: Apache-2.0
import fs from 'node:fs';
@@ -9,7 +9,7 @@ import { execGit, logBin, mkdirpSync } from './util.mjs';
const tmpDir = 'packages/build';
const tmpFile = `${tmpDir}/CONTRIBUTORS`;
logBin('polkadot-dev-contrib');
logBin('pezkuwi-dev-contrib');
mkdirpSync(tmpDir);
execGit(`shortlog master -e -n -s > ${tmpFile}`);
@@ -1,5 +1,5 @@
#!/usr/bin/env node
// Copyright 2017-2025 @polkadot/dev authors & contributors
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { copyDirSync, exitFatal, logBin } from './util.mjs';
@@ -26,7 +26,7 @@ for (let i = 0; i < argv.length; i++) {
const sources = args.slice(0, args.length - 1);
const dest = args[args.length - 1];
logBin('polkadot-dev-copy-dir');
logBin('pezkuwi-dev-copy-dir');
if (!sources || !dest) {
exitFatal('Expected at least one <source>... and one <destination> argument');
@@ -1,5 +1,5 @@
#!/usr/bin/env node
// Copyright 2017-2025 @polkadot/dev authors & contributors
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
// SPDX-License-Identifier: Apache-2.0
import fs from 'node:fs';
@@ -9,7 +9,7 @@ import { copyDirSync, execPm, exitFatal, logBin, mkdirpSync, rimrafSync } from '
const args = process.argv.slice(2);
logBin('polkadot-dev-copy-to');
logBin('pezkuwi-dev-copy-to');
if (args.length !== 1) {
exitFatal('Expected one <destination> argument');
@@ -1,5 +1,5 @@
#!/usr/bin/env node
// Copyright 2017-2025 @polkadot/dev authors & contributors
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
// SPDX-License-Identifier: Apache-2.0
import fs from 'node:fs';
@@ -18,7 +18,7 @@ const [e, i] = fs
}, [[], {}]);
if (!fs.existsSync('mod.ts')) {
fs.writeFileSync('mod.ts', `// Copyright 2017-${new Date().getFullYear()} @polkadot/dev authors & contributors\n// SPDX-License-Identifier: Apache-2.0\n\n// auto-generated via polkadot-dev-deno-map, do not edit\n\n// This is a Deno file, so we can allow .ts imports
fs.writeFileSync('mod.ts', `// Copyright 2017-${new Date().getFullYear()} @pezkuwi/dev authors & contributors\n// SPDX-License-Identifier: Apache-2.0\n\n// auto-generated via pezkuwi-dev-deno-map, do not edit\n\n// This is a Deno file, so we can allow .ts imports
/* eslint-disable import/extensions */\n\n${e.join('\n')}\n`);
}
@@ -1,5 +1,5 @@
#!/usr/bin/env node
// Copyright 2017-2025 @polkadot/dev authors & contributors
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
// SPDX-License-Identifier: Apache-2.0
import process from 'node:process';
@@ -9,7 +9,7 @@ import { __dirname, execPm, GITHUB_REPO, logBin } from './util.mjs';
const TS_CONFIG_BUILD = true;
logBin('polkadot-dev-run-lint');
logBin('pezkuwi-dev-run-lint');
// Since yargs can also be a promise, we just relax the type here completely
const argv = await yargs(process.argv.slice(2))
@@ -32,9 +32,9 @@ if (!argv['skip-eslint']) {
? ''
: '--fix';
execPm(`polkadot-exec-eslint ${extra} ${process.cwd()}`);
execPm(`pezkuwi-exec-eslint ${extra} ${process.cwd()}`);
}
if (!argv['skip-tsc']) {
execPm(`polkadot-exec-tsc --noEmit --emitDeclarationOnly false --pretty${TS_CONFIG_BUILD ? ' --project tsconfig.build.json' : ''}`);
execPm(`pezkuwi-exec-tsc --noEmit --emitDeclarationOnly false --pretty${TS_CONFIG_BUILD ? ' --project tsconfig.build.json' : ''}`);
}
@@ -1,9 +1,9 @@
#!/usr/bin/env node
// Copyright 2017-2025 @polkadot/dev authors & contributors
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { execNodeTs, logBin } from './util.mjs';
logBin('polkadot-run-node-ts');
logBin('pezkuwi-run-node-ts');
execNodeTs(process.argv.slice(2).join(' '));
@@ -1,5 +1,5 @@
#!/usr/bin/env node
// Copyright 2017-2025 @polkadot/dev authors & contributors
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
// SPDX-License-Identifier: Apache-2.0
import process from 'node:process';
@@ -13,7 +13,7 @@ const EXT_B = ['ts', 'tsx', 'js', 'jsx', 'cjs', 'mjs'];
// The actual extensions we are looking for
const EXTS = EXT_A.reduce((/** @type {string[]} */ exts, s) => exts.concat(...EXT_B.map((e) => `.${s}.${e}`)), []);
logBin('polkadot-dev-run-test');
logBin('pezkuwi-dev-run-test');
exitFatalEngine();
@@ -32,7 +32,7 @@ let isDev = false;
for (let i = 0; i < args.length; i++) {
switch (args[i]) {
// when running inside a dev environment, specifically @polkadot/dev
// when running inside a dev environment, specifically @pezkuwi/dev
case '--dev-build':
isDev = true;
break;
@@ -148,16 +148,16 @@ if (files.length === 0) {
}
try {
const allFlags = `${importPath('@polkadot/dev/scripts/polkadot-exec-node-test.mjs')} ${[...cmd, ...files].join(' ')}`;
const allFlags = `${importPath('@pezkuwi/dev/scripts/pezkuwi-exec-node-test.mjs')} ${[...cmd, ...files].join(' ')}`;
nodeFlags.push('--require');
nodeFlags.push(
isDev
? `./packages/dev-test/build/cjs/${testEnv}.js`
: `@polkadot/dev-test/${testEnv}`
: `@pezkuwi/dev-test/${testEnv}`
);
execNodeTs(allFlags, nodeFlags, false, isDev ? './packages/dev-ts/build/testCached.js' : '@polkadot/dev-ts/testCached');
execNodeTs(allFlags, nodeFlags, false, isDev ? './packages/dev-ts/build/testCached.js' : '@pezkuwi/dev-ts/testCached');
} catch {
process.exit(1);
}
@@ -1,5 +1,5 @@
#!/usr/bin/env node
// Copyright 2017-2025 @polkadot/dev authors & contributors
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
// SPDX-License-Identifier: Apache-2.0
import fs from 'node:fs';
@@ -112,7 +112,7 @@ function addX () {
return true;
}
logBin('polkadot-dev-version');
logBin('pezkuwi-dev-version');
const isX = removeX();
@@ -1,5 +1,5 @@
#!/usr/bin/env node
// Copyright 2017-2025 @polkadot/dev authors & contributors
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
// SPDX-License-Identifier: Apache-2.0
import process from 'node:process';
@@ -1,5 +1,5 @@
#!/usr/bin/env node
// Copyright 2017-2025 @polkadot/dev authors & contributors
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { importRelative } from './util.mjs';
@@ -1,5 +1,5 @@
#!/usr/bin/env node
// Copyright 2017-2025 @polkadot/dev authors & contributors
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { importRelative } from './util.mjs';
@@ -1,5 +1,5 @@
#!/usr/bin/env node
// Copyright 2017-2025 @polkadot/dev authors & contributors
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { importRelative } from './util.mjs';
@@ -1,5 +1,5 @@
#!/usr/bin/env node
// Copyright 2017-2025 @polkadot/dev authors & contributors
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
// SPDX-License-Identifier: Apache-2.0
// For Node 18, earliest usable is 18.14:
@@ -186,7 +186,7 @@ function complete () {
if (typeof r === 'string') {
console.log(r); // Node.js <= 18.14
} else if (r.file && r.file.includes('@polkadot/dev/scripts')) {
} else if (r.file && r.file.includes('@pezkuwi/dev/scripts')) {
// Ignore internal diagnostics
} else {
if (lastFilename !== r.file) {
@@ -1,5 +1,5 @@
#!/usr/bin/env node
// Copyright 2017-2025 @polkadot/dev authors & contributors
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { execViaNode } from './util.mjs';
@@ -1,5 +1,5 @@
#!/usr/bin/env node
// Copyright 2017-2025 @polkadot/dev authors & contributors
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { importDirect } from './util.mjs';
@@ -1,5 +1,5 @@
#!/usr/bin/env node
// Copyright 2017-2025 @polkadot/dev authors & contributors
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { importDirect } from './util.mjs';
+8 -8
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2025 @polkadot/dev authors & contributors
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
// SPDX-License-Identifier: Apache-2.0
import cp from 'node:child_process';
@@ -19,8 +19,8 @@ export const DENO_EXT_PRE = 'https://esm.sh';
/** Deno prefix for built-ins */
export const DENO_LND_PRE = 'https://deno.land';
/** Deno prefix for the polkadot package */
export const DENO_POL_PRE = `${DENO_LND_PRE}/x/polkadot`;
/** Deno prefix for the pezkuwi package */
export const DENO_POL_PRE = `${DENO_LND_PRE}/x/pezkuwi`;
/** The GH user that we use for actions */
export const GITHUB_USER = 'github-actions[bot]';
@@ -100,7 +100,7 @@ export function copyDirSync (src, dest, include, exclude) {
export function denoCreateDir (name) {
// aligns with name above - since we have sub-paths, we only return
// the actual path inside packages/* (i.e. the last part of the name)
return name.replace('@polkadot/', '');
return name.replace('@pezkuwi/', '');
}
/**
@@ -172,7 +172,7 @@ export function execSync (cmd, noLog) {
* @param {boolean} [noLog]
* @param {string} [loaderPath]
**/
export function execNodeTs (cmd, nodeFlags = [], noLog, loaderPath = '@polkadot/dev-ts/cached') {
export function execNodeTs (cmd, nodeFlags = [], noLog, loaderPath = '@pezkuwi/dev-ts/cached') {
const loadersGlo = [];
const loadersLoc = [];
const otherFlags = [];
@@ -399,7 +399,7 @@ export function exitFatalEngine () {
console.error(`
Technical explanation: For a development environment all projects in
the @polkadot famility uses node:test in their operation. Currently the
the @pezkuwi famility uses node:test in their operation. Currently the
minimum required version of Node is thus set at the first first version
with operational support, hence this limitation. Additionally only LTS
Node versions are supported.
@@ -421,7 +421,7 @@ export function exitFatalYarn () {
`${BLANK}\n FATAL: The use of yarn is required, install via npm is not supported.\n${BLANK}`
);
console.error(`
Technical explanation: All the projects in the @polkadot' family use
Technical explanation: All the projects in the @pezkuwi' family use
yarn specific configs and assume yarn for build operations and locks.
If yarn is not available, you can get it from https://yarnpkg.com/
@@ -504,7 +504,7 @@ export function topoSort (dirs) {
const deps = JSON.parse(json).dependencies;
return dirs
.filter((d) => d !== dir && deps && Object.keys(deps).includes(`@polkadot/${d}`))
.filter((d) => d !== dir && deps && Object.keys(deps).includes(`@pezkuwi/${d}`))
.map((d) => [dir, d]);
}).flat();