@pezkuwi/dev 0.84.2 → 0.85.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/README.md +44 -44
  2. package/config/eslint.js +1 -1
  3. package/config/eslint.rules.js +7 -7
  4. package/config/prettier.cjs +1 -1
  5. package/config/rollup.js +4 -4
  6. package/config/tsconfig.json +2 -2
  7. package/config/typedoc.cjs +2 -2
  8. package/package.json +24 -24
  9. package/scripts/{polkadot-ci-ghact-build.mjs → pezkuwi-ci-ghact-build.mjs} +12 -12
  10. package/scripts/{polkadot-ci-ghact-docs.mjs → pezkuwi-ci-ghact-docs.mjs} +3 -3
  11. package/scripts/{polkadot-ci-ghpages-force.mjs → pezkuwi-ci-ghpages-force.mjs} +2 -2
  12. package/scripts/{polkadot-dev-build-docs.mjs → pezkuwi-dev-build-docs.mjs} +2 -2
  13. package/scripts/{polkadot-dev-build-ts.mjs → pezkuwi-dev-build-ts.mjs} +22 -22
  14. package/scripts/{polkadot-dev-circular.mjs → pezkuwi-dev-circular.mjs} +2 -2
  15. package/scripts/{polkadot-dev-clean-build.mjs → pezkuwi-dev-clean-build.mjs} +2 -2
  16. package/scripts/{polkadot-dev-contrib.mjs → pezkuwi-dev-contrib.mjs} +2 -2
  17. package/scripts/{polkadot-dev-copy-dir.mjs → pezkuwi-dev-copy-dir.mjs} +2 -2
  18. package/scripts/{polkadot-dev-copy-to.mjs → pezkuwi-dev-copy-to.mjs} +2 -2
  19. package/scripts/{polkadot-dev-deno-map.mjs → pezkuwi-dev-deno-map.mjs} +2 -2
  20. package/scripts/{polkadot-dev-run-lint.mjs → pezkuwi-dev-run-lint.mjs} +4 -4
  21. package/scripts/{polkadot-dev-run-node-ts.mjs → pezkuwi-dev-run-node-ts.mjs} +2 -2
  22. package/scripts/{polkadot-dev-run-test.mjs → pezkuwi-dev-run-test.mjs} +6 -6
  23. package/scripts/{polkadot-dev-version.mjs → pezkuwi-dev-version.mjs} +2 -2
  24. package/scripts/{polkadot-dev-yarn-only.mjs → pezkuwi-dev-yarn-only.mjs} +1 -1
  25. package/scripts/{polkadot-exec-eslint.mjs → pezkuwi-exec-eslint.mjs} +1 -1
  26. package/scripts/{polkadot-exec-ghpages.mjs → pezkuwi-exec-ghpages.mjs} +1 -1
  27. package/scripts/{polkadot-exec-ghrelease.mjs → pezkuwi-exec-ghrelease.mjs} +1 -1
  28. package/scripts/{polkadot-exec-node-test.mjs → pezkuwi-exec-node-test.mjs} +2 -2
  29. package/scripts/{polkadot-exec-rollup.mjs → pezkuwi-exec-rollup.mjs} +1 -1
  30. package/scripts/{polkadot-exec-tsc.mjs → pezkuwi-exec-tsc.mjs} +1 -1
  31. package/scripts/{polkadot-exec-webpack.mjs → pezkuwi-exec-webpack.mjs} +1 -1
  32. package/scripts/util.mjs +8 -8
  33. package/tsconfig.build.tsbuildinfo +1 -0
  34. package/tsconfig.config.tsbuildinfo +1 -0
  35. package/tsconfig.scripts.tsbuildinfo +1 -0
  36. package/tsconfig.spec.tsbuildinfo +1 -0
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // Copyright 2017-2025 @polkadot/dev authors & contributors
2
+ // Copyright 2017-2025 @pezkuwi/dev authors & contributors
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
 
5
5
  import JSON5 from 'json5';
@@ -16,7 +16,7 @@ import { copyDirSync, copyFileSync, DENO_EXT_PRE, DENO_LND_PRE, DENO_POL_PRE, en
16
16
  const WP_CONFIGS = ['js', 'cjs'].map((e) => `webpack.config.${e}`);
17
17
  const RL_CONFIGS = ['js', 'mjs', 'cjs'].map((e) => `rollup.config.${e}`);
18
18
 
19
- logBin('polkadot-dev-build-ts');
19
+ logBin('pezkuwi-dev-build-ts');
20
20
 
21
21
  exitFatalEngine();
22
22
 
@@ -45,7 +45,7 @@ const IGNORE_IMPORTS = [
45
45
  function buildWebpack () {
46
46
  const config = WP_CONFIGS.find((c) => fs.existsSync(path.join(process.cwd(), c)));
47
47
 
48
- execPm(`polkadot-exec-webpack --config ${config} --mode production`);
48
+ execPm(`pezkuwi-exec-webpack --config ${config} --mode production`);
49
49
  }
50
50
 
51
51
  /**
@@ -143,7 +143,7 @@ function adjustJsPath (_pkgCwd, _pkgJson, dir, f, _isDeclare) {
143
143
  }
144
144
 
145
145
  /**
146
- * Adjust all @polkadot imports to have .ts extensions (for Deno)
146
+ * Adjust all @pezkuwi imports to have .ts extensions (for Deno)
147
147
  *
148
148
  * @param {string} pkgCwd
149
149
  * @param {PkgJson} pkgJson
@@ -153,11 +153,11 @@ function adjustJsPath (_pkgCwd, _pkgJson, dir, f, _isDeclare) {
153
153
  * @returns {string | null}
154
154
  */
155
155
  function adjustDenoPath (pkgCwd, pkgJson, dir, f, isDeclare) {
156
- if (f.startsWith('@polkadot')) {
156
+ if (f.startsWith('@pezkuwi')) {
157
157
  const parts = f.split('/');
158
158
  const thisPkg = parts.slice(0, 2).join('/');
159
159
  const subPath = parts.slice(2).join('/');
160
- const pjsPath = `${DENO_POL_PRE}/${thisPkg.replace('@polkadot/', '')}`;
160
+ const pjsPath = `${DENO_POL_PRE}/${thisPkg.replace('@pezkuwi/', '')}`;
161
161
 
162
162
  if (subPath.includes("' assert { type:")) {
163
163
  // these are for type asserts, we keep the assert
@@ -303,7 +303,7 @@ function adjustDenoPath (pkgCwd, pkgJson, dir, f, isDeclare) {
303
303
  //
304
304
  // FIXME We cannot enable this until there is support for git deps
305
305
  // https://github.com/denoland/deno/issues/18557
306
- // This is used by @zondax/ledger-substrate
306
+ // This is used by @zondax/ledger-bizinikiwi
307
307
  // return `npm:${depName}@${depVersion}${depPath || ''}`;
308
308
  } else {
309
309
  exitFatal(`Unknown Deno versioned package '${f}' inside ${pkgJson.name}`);
@@ -671,12 +671,12 @@ function tweakCjsPaths () {
671
671
  // actually should only care about packageInfo, so add this one explicitly. If we
672
672
  // do use path-imports for others, rather adjust them at that specific point
673
673
  // .replace(
674
- // /require\("@polkadot\/([a-z-]*)\/(.*)"\)/g,
675
- // 'require("@polkadot/$1/cjs/$2")'
674
+ // /require\("@pezkuwi\/([a-z-]*)\/(.*)"\)/g,
675
+ // 'require("@pezkuwi/$1/cjs/$2")'
676
676
  // )
677
677
  .replace(
678
- /require\("@polkadot\/([a-z-]*)\/packageInfo"\)/g,
679
- 'require("@polkadot/$1/cjs/packageInfo")'
678
+ /require\("@pezkuwi\/([a-z-]*)\/packageInfo"\)/g,
679
+ 'require("@pezkuwi/$1/cjs/packageInfo")'
680
680
  )
681
681
  );
682
682
  });
@@ -1080,7 +1080,7 @@ function lintInput (dir) {
1080
1080
  // This does have negative effects - proper forks that add their own source
1081
1081
  // file will also be caught in the net, i.e. we expect all files to conform
1082
1082
  if (n === 0 && (
1083
- !/\/\/ Copyright .* @polkadot\//.test(l) &&
1083
+ !/\/\/ Copyright .* @pezkuwi\//.test(l) &&
1084
1084
  !/\/\/ Auto-generated via `/.test(l) &&
1085
1085
  !/#!\/usr\/bin\/env node/.test(l)
1086
1086
  )) {
@@ -1282,7 +1282,7 @@ async function buildJs (compileType, repoPath, dir, locals) {
1282
1282
  const pkgJson = JSON.parse(fs.readFileSync(path.join(process.cwd(), './package.json'), 'utf-8'));
1283
1283
  const { name, version } = pkgJson;
1284
1284
 
1285
- if (!name.startsWith('@polkadot/')) {
1285
+ if (!name.startsWith('@pezkuwi/')) {
1286
1286
  return;
1287
1287
  }
1288
1288
 
@@ -1299,16 +1299,16 @@ async function buildJs (compileType, repoPath, dir, locals) {
1299
1299
 
1300
1300
  if (!fs.existsSync(path.join(process.cwd(), '.skip-build'))) {
1301
1301
  const srcHeader = `// Copyright 2017-${new Date().getFullYear()} ${name} authors & contributors\n// SPDX-License-Identifier: Apache-2.0\n`;
1302
- const genHeader = `${srcHeader}\n// Do not edit, auto-generated by @polkadot/dev\n`;
1302
+ const genHeader = `${srcHeader}\n// Do not edit, auto-generated by @pezkuwi/dev\n`;
1303
1303
 
1304
1304
  fs.writeFileSync(path.join(process.cwd(), 'src/packageInfo.ts'), `${genHeader}\nexport const packageInfo = { name: '${name}', path: 'auto', type: 'auto', version: '${version}' };\n`);
1305
1305
 
1306
- if (!name.startsWith('@polkadot/x-')) {
1307
- if (!name.startsWith('@polkadot/dev')) {
1306
+ if (!name.startsWith('@pezkuwi/x-')) {
1307
+ if (!name.startsWith('@pezkuwi/dev')) {
1308
1308
  const detectOld = path.join(process.cwd(), 'src/detectPackage.ts');
1309
1309
  const detectOther = path.join(process.cwd(), 'src/detectOther.ts');
1310
1310
  const detectThis = path.join(process.cwd(), 'src/packageDetect.ts');
1311
- const withDetectImport = name !== '@polkadot/util';
1311
+ const withDetectImport = name !== '@pezkuwi/util';
1312
1312
 
1313
1313
  /** @type {string[]} */
1314
1314
  let otherImports = withDetectImport
@@ -1331,7 +1331,7 @@ async function buildJs (compileType, repoPath, dir, locals) {
1331
1331
  }
1332
1332
 
1333
1333
  if (withDetectImport) {
1334
- // for @polkadot/util this file contains the detection logic, keep it
1334
+ // for @pezkuwi/util this file contains the detection logic, keep it
1335
1335
  fs.rmSync(detectOld, { force: true });
1336
1336
  }
1337
1337
 
@@ -1446,7 +1446,7 @@ async function main () {
1446
1446
  }
1447
1447
  }
1448
1448
 
1449
- execPm('polkadot-dev-clean-build');
1449
+ execPm('pezkuwi-dev-clean-build');
1450
1450
 
1451
1451
  const pkg = JSON.parse(fs.readFileSync(path.join(process.cwd(), './package.json'), 'utf-8'));
1452
1452
 
@@ -1465,7 +1465,7 @@ async function main () {
1465
1465
  .split('.git')[0];
1466
1466
 
1467
1467
  orderPackageJson(repoPath, null, pkg);
1468
- execPm('polkadot-exec-tsc --build tsconfig.build.json');
1468
+ execPm('pezkuwi-exec-tsc --build tsconfig.build.json');
1469
1469
 
1470
1470
  process.chdir('packages');
1471
1471
 
@@ -1483,7 +1483,7 @@ async function main () {
1483
1483
  for (const dir of dirs) {
1484
1484
  const { name } = JSON.parse(fs.readFileSync(path.join(process.cwd(), dir, './package.json'), 'utf-8'));
1485
1485
 
1486
- if (name.startsWith('@polkadot/')) {
1486
+ if (name.startsWith('@pezkuwi/')) {
1487
1487
  locals.push([dir, name]);
1488
1488
  }
1489
1489
  }
@@ -1502,7 +1502,7 @@ async function main () {
1502
1502
  findUnusedTsConfig();
1503
1503
 
1504
1504
  if (RL_CONFIGS.some((c) => fs.existsSync(path.join(process.cwd(), c)))) {
1505
- execPm('polkadot-exec-rollup --config');
1505
+ execPm('pezkuwi-exec-rollup --config');
1506
1506
  }
1507
1507
 
1508
1508
  if (pkg.scripts) {
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // Copyright 2017-2025 @polkadot/dev authors & contributors
2
+ // Copyright 2017-2025 @pezkuwi/dev authors & contributors
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
 
5
5
  // @ts-expect-error For scripts we don't include @types/* definitions
@@ -7,7 +7,7 @@ import madge from 'madge';
7
7
 
8
8
  import { exitFatal, logBin } from './util.mjs';
9
9
 
10
- logBin('polkadot-dev-circular');
10
+ logBin('pezkuwi-dev-circular');
11
11
 
12
12
  const res = await madge('./', { fileExtensions: ['ts', 'tsx'] });
13
13
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // Copyright 2017-2025 @polkadot/dev authors & contributors
2
+ // Copyright 2017-2025 @pezkuwi/dev authors & contributors
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
 
5
5
  import fs from 'node:fs';
@@ -10,7 +10,7 @@ import { logBin, PATHS_BUILD, rimrafSync } from './util.mjs';
10
10
  const PKGS = path.join(process.cwd(), 'packages');
11
11
  const DIRS = PATHS_BUILD.map((d) => `build${d}`);
12
12
 
13
- logBin('polkadot-dev-clean-build');
13
+ logBin('pezkuwi-dev-clean-build');
14
14
 
15
15
  /**
16
16
  * @internal
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // Copyright 2017-2025 @polkadot/dev authors & contributors
2
+ // Copyright 2017-2025 @pezkuwi/dev authors & contributors
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
 
5
5
  import fs from 'node:fs';
@@ -9,7 +9,7 @@ import { execGit, logBin, mkdirpSync } from './util.mjs';
9
9
  const tmpDir = 'packages/build';
10
10
  const tmpFile = `${tmpDir}/CONTRIBUTORS`;
11
11
 
12
- logBin('polkadot-dev-contrib');
12
+ logBin('pezkuwi-dev-contrib');
13
13
 
14
14
  mkdirpSync(tmpDir);
15
15
  execGit(`shortlog master -e -n -s > ${tmpFile}`);
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // Copyright 2017-2025 @polkadot/dev authors & contributors
2
+ // Copyright 2017-2025 @pezkuwi/dev authors & contributors
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
 
5
5
  import { copyDirSync, exitFatal, logBin } from './util.mjs';
@@ -26,7 +26,7 @@ for (let i = 0; i < argv.length; i++) {
26
26
  const sources = args.slice(0, args.length - 1);
27
27
  const dest = args[args.length - 1];
28
28
 
29
- logBin('polkadot-dev-copy-dir');
29
+ logBin('pezkuwi-dev-copy-dir');
30
30
 
31
31
  if (!sources || !dest) {
32
32
  exitFatal('Expected at least one <source>... and one <destination> argument');
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // Copyright 2017-2025 @polkadot/dev authors & contributors
2
+ // Copyright 2017-2025 @pezkuwi/dev authors & contributors
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
 
5
5
  import fs from 'node:fs';
@@ -9,7 +9,7 @@ import { copyDirSync, execPm, exitFatal, logBin, mkdirpSync, rimrafSync } from '
9
9
 
10
10
  const args = process.argv.slice(2);
11
11
 
12
- logBin('polkadot-dev-copy-to');
12
+ logBin('pezkuwi-dev-copy-to');
13
13
 
14
14
  if (args.length !== 1) {
15
15
  exitFatal('Expected one <destination> argument');
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // Copyright 2017-2025 @polkadot/dev authors & contributors
2
+ // Copyright 2017-2025 @pezkuwi/dev authors & contributors
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
 
5
5
  import fs from 'node:fs';
@@ -18,7 +18,7 @@ const [e, i] = fs
18
18
  }, [[], {}]);
19
19
 
20
20
  if (!fs.existsSync('mod.ts')) {
21
- 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
21
+ 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
22
22
  /* eslint-disable import/extensions */\n\n${e.join('\n')}\n`);
23
23
  }
24
24
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // Copyright 2017-2025 @polkadot/dev authors & contributors
2
+ // Copyright 2017-2025 @pezkuwi/dev authors & contributors
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
 
5
5
  import process from 'node:process';
@@ -9,7 +9,7 @@ import { __dirname, execPm, GITHUB_REPO, logBin } from './util.mjs';
9
9
 
10
10
  const TS_CONFIG_BUILD = true;
11
11
 
12
- logBin('polkadot-dev-run-lint');
12
+ logBin('pezkuwi-dev-run-lint');
13
13
 
14
14
  // Since yargs can also be a promise, we just relax the type here completely
15
15
  const argv = await yargs(process.argv.slice(2))
@@ -32,9 +32,9 @@ if (!argv['skip-eslint']) {
32
32
  ? ''
33
33
  : '--fix';
34
34
 
35
- execPm(`polkadot-exec-eslint ${extra} ${process.cwd()}`);
35
+ execPm(`pezkuwi-exec-eslint ${extra} ${process.cwd()}`);
36
36
  }
37
37
 
38
38
  if (!argv['skip-tsc']) {
39
- execPm(`polkadot-exec-tsc --noEmit --emitDeclarationOnly false --pretty${TS_CONFIG_BUILD ? ' --project tsconfig.build.json' : ''}`);
39
+ execPm(`pezkuwi-exec-tsc --noEmit --emitDeclarationOnly false --pretty${TS_CONFIG_BUILD ? ' --project tsconfig.build.json' : ''}`);
40
40
  }
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
- // Copyright 2017-2025 @polkadot/dev authors & contributors
2
+ // Copyright 2017-2025 @pezkuwi/dev authors & contributors
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
 
5
5
  import { execNodeTs, logBin } from './util.mjs';
6
6
 
7
- logBin('polkadot-run-node-ts');
7
+ logBin('pezkuwi-run-node-ts');
8
8
 
9
9
  execNodeTs(process.argv.slice(2).join(' '));
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // Copyright 2017-2025 @polkadot/dev authors & contributors
2
+ // Copyright 2017-2025 @pezkuwi/dev authors & contributors
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
 
5
5
  import process from 'node:process';
@@ -13,7 +13,7 @@ const EXT_B = ['ts', 'tsx', 'js', 'jsx', 'cjs', 'mjs'];
13
13
  // The actual extensions we are looking for
14
14
  const EXTS = EXT_A.reduce((/** @type {string[]} */ exts, s) => exts.concat(...EXT_B.map((e) => `.${s}.${e}`)), []);
15
15
 
16
- logBin('polkadot-dev-run-test');
16
+ logBin('pezkuwi-dev-run-test');
17
17
 
18
18
  exitFatalEngine();
19
19
 
@@ -32,7 +32,7 @@ let isDev = false;
32
32
 
33
33
  for (let i = 0; i < args.length; i++) {
34
34
  switch (args[i]) {
35
- // when running inside a dev environment, specifically @polkadot/dev
35
+ // when running inside a dev environment, specifically @pezkuwi/dev
36
36
  case '--dev-build':
37
37
  isDev = true;
38
38
  break;
@@ -148,16 +148,16 @@ if (files.length === 0) {
148
148
  }
149
149
 
150
150
  try {
151
- const allFlags = `${importPath('@polkadot/dev/scripts/polkadot-exec-node-test.mjs')} ${[...cmd, ...files].join(' ')}`;
151
+ const allFlags = `${importPath('@pezkuwi/dev/scripts/pezkuwi-exec-node-test.mjs')} ${[...cmd, ...files].join(' ')}`;
152
152
 
153
153
  nodeFlags.push('--require');
154
154
  nodeFlags.push(
155
155
  isDev
156
156
  ? `./packages/dev-test/build/cjs/${testEnv}.js`
157
- : `@polkadot/dev-test/${testEnv}`
157
+ : `@pezkuwi/dev-test/${testEnv}`
158
158
  );
159
159
 
160
- execNodeTs(allFlags, nodeFlags, false, isDev ? './packages/dev-ts/build/testCached.js' : '@polkadot/dev-ts/testCached');
160
+ execNodeTs(allFlags, nodeFlags, false, isDev ? './packages/dev-ts/build/testCached.js' : '@pezkuwi/dev-ts/testCached');
161
161
  } catch {
162
162
  process.exit(1);
163
163
  }
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // Copyright 2017-2025 @polkadot/dev authors & contributors
2
+ // Copyright 2017-2025 @pezkuwi/dev authors & contributors
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
 
5
5
  import fs from 'node:fs';
@@ -112,7 +112,7 @@ function addX () {
112
112
  return true;
113
113
  }
114
114
 
115
- logBin('polkadot-dev-version');
115
+ logBin('pezkuwi-dev-version');
116
116
 
117
117
  const isX = removeX();
118
118
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // Copyright 2017-2025 @polkadot/dev authors & contributors
2
+ // Copyright 2017-2025 @pezkuwi/dev authors & contributors
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
 
5
5
  import process from 'node:process';
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // Copyright 2017-2025 @polkadot/dev authors & contributors
2
+ // Copyright 2017-2025 @pezkuwi/dev authors & contributors
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
 
5
5
  import { importRelative } from './util.mjs';
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // Copyright 2017-2025 @polkadot/dev authors & contributors
2
+ // Copyright 2017-2025 @pezkuwi/dev authors & contributors
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
 
5
5
  import { importRelative } from './util.mjs';
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // Copyright 2017-2025 @polkadot/dev authors & contributors
2
+ // Copyright 2017-2025 @pezkuwi/dev authors & contributors
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
 
5
5
  import { importRelative } from './util.mjs';
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // Copyright 2017-2025 @polkadot/dev authors & contributors
2
+ // Copyright 2017-2025 @pezkuwi/dev authors & contributors
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
 
5
5
  // For Node 18, earliest usable is 18.14:
@@ -186,7 +186,7 @@ function complete () {
186
186
 
187
187
  if (typeof r === 'string') {
188
188
  console.log(r); // Node.js <= 18.14
189
- } else if (r.file && r.file.includes('@polkadot/dev/scripts')) {
189
+ } else if (r.file && r.file.includes('@pezkuwi/dev/scripts')) {
190
190
  // Ignore internal diagnostics
191
191
  } else {
192
192
  if (lastFilename !== r.file) {
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // Copyright 2017-2025 @polkadot/dev authors & contributors
2
+ // Copyright 2017-2025 @pezkuwi/dev authors & contributors
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
 
5
5
  import { execViaNode } from './util.mjs';
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // Copyright 2017-2025 @polkadot/dev authors & contributors
2
+ // Copyright 2017-2025 @pezkuwi/dev authors & contributors
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
 
5
5
  import { importDirect } from './util.mjs';
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // Copyright 2017-2025 @polkadot/dev authors & contributors
2
+ // Copyright 2017-2025 @pezkuwi/dev authors & contributors
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
 
5
5
  import { importDirect } from './util.mjs';
package/scripts/util.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2025 @polkadot/dev authors & contributors
1
+ // Copyright 2017-2025 @pezkuwi/dev authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  import cp from 'node:child_process';
@@ -19,8 +19,8 @@ export const DENO_EXT_PRE = 'https://esm.sh';
19
19
  /** Deno prefix for built-ins */
20
20
  export const DENO_LND_PRE = 'https://deno.land';
21
21
 
22
- /** Deno prefix for the polkadot package */
23
- export const DENO_POL_PRE = `${DENO_LND_PRE}/x/polkadot`;
22
+ /** Deno prefix for the pezkuwi package */
23
+ export const DENO_POL_PRE = `${DENO_LND_PRE}/x/pezkuwi`;
24
24
 
25
25
  /** The GH user that we use for actions */
26
26
  export const GITHUB_USER = 'github-actions[bot]';
@@ -100,7 +100,7 @@ export function copyDirSync (src, dest, include, exclude) {
100
100
  export function denoCreateDir (name) {
101
101
  // aligns with name above - since we have sub-paths, we only return
102
102
  // the actual path inside packages/* (i.e. the last part of the name)
103
- return name.replace('@polkadot/', '');
103
+ return name.replace('@pezkuwi/', '');
104
104
  }
105
105
 
106
106
  /**
@@ -172,7 +172,7 @@ export function execSync (cmd, noLog) {
172
172
  * @param {boolean} [noLog]
173
173
  * @param {string} [loaderPath]
174
174
  **/
175
- export function execNodeTs (cmd, nodeFlags = [], noLog, loaderPath = '@polkadot/dev-ts/cached') {
175
+ export function execNodeTs (cmd, nodeFlags = [], noLog, loaderPath = '@pezkuwi/dev-ts/cached') {
176
176
  const loadersGlo = [];
177
177
  const loadersLoc = [];
178
178
  const otherFlags = [];
@@ -399,7 +399,7 @@ export function exitFatalEngine () {
399
399
 
400
400
  console.error(`
401
401
  Technical explanation: For a development environment all projects in
402
- the @polkadot famility uses node:test in their operation. Currently the
402
+ the @pezkuwi famility uses node:test in their operation. Currently the
403
403
  minimum required version of Node is thus set at the first first version
404
404
  with operational support, hence this limitation. Additionally only LTS
405
405
  Node versions are supported.
@@ -421,7 +421,7 @@ export function exitFatalYarn () {
421
421
  `${BLANK}\n FATAL: The use of yarn is required, install via npm is not supported.\n${BLANK}`
422
422
  );
423
423
  console.error(`
424
- Technical explanation: All the projects in the @polkadot' family use
424
+ Technical explanation: All the projects in the @pezkuwi' family use
425
425
  yarn specific configs and assume yarn for build operations and locks.
426
426
 
427
427
  If yarn is not available, you can get it from https://yarnpkg.com/
@@ -504,7 +504,7 @@ export function topoSort (dirs) {
504
504
  const deps = JSON.parse(json).dependencies;
505
505
 
506
506
  return dirs
507
- .filter((d) => d !== dir && deps && Object.keys(deps).includes(`@polkadot/${d}`))
507
+ .filter((d) => d !== dir && deps && Object.keys(deps).includes(`@pezkuwi/${d}`))
508
508
  .map((d) => [dir, d]);
509
509
  }).flat();
510
510