@pezkuwi/dev-test 0.84.3 → 0.85.1

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 (44) hide show
  1. package/README.md +5 -5
  2. package/cjs/env/expect.d.ts +2 -2
  3. package/cjs/env/expect.js +2 -2
  4. package/cjs/env/jest.d.ts +1 -1
  5. package/cjs/env/jest.js +1 -1
  6. package/cjs/rootJs/augmented.d.ts +2 -2
  7. package/config/eslint.rules.js +2 -2
  8. package/config/prettier.cjs +1 -1
  9. package/config/rollup.js +2 -2
  10. package/config/tsconfig.json +2 -2
  11. package/config/typedoc.cjs +2 -2
  12. package/env/expect.d.ts +2 -2
  13. package/env/expect.js +2 -2
  14. package/env/jest.d.ts +1 -1
  15. package/env/jest.js +1 -1
  16. package/globals.cjs +1 -1
  17. package/globals.d.ts +1 -1
  18. package/package.json +4 -4
  19. package/rootJs/augmented.d.ts +2 -2
  20. package/scripts/{polkadot-ci-ghact-build.mjs → pezkuwi-ci-ghact-build.mjs} +11 -11
  21. package/scripts/{polkadot-ci-ghact-docs.mjs → pezkuwi-ci-ghact-docs.mjs} +2 -2
  22. package/scripts/{polkadot-ci-ghpages-force.mjs → pezkuwi-ci-ghpages-force.mjs} +1 -1
  23. package/scripts/{polkadot-dev-build-docs.mjs → pezkuwi-dev-build-docs.mjs} +1 -1
  24. package/scripts/{polkadot-dev-build-ts.mjs → pezkuwi-dev-build-ts.mjs} +6 -6
  25. package/scripts/{polkadot-dev-circular.mjs → pezkuwi-dev-circular.mjs} +1 -1
  26. package/scripts/{polkadot-dev-clean-build.mjs → pezkuwi-dev-clean-build.mjs} +1 -1
  27. package/scripts/{polkadot-dev-contrib.mjs → pezkuwi-dev-contrib.mjs} +1 -1
  28. package/scripts/{polkadot-dev-copy-dir.mjs → pezkuwi-dev-copy-dir.mjs} +1 -1
  29. package/scripts/{polkadot-dev-copy-to.mjs → pezkuwi-dev-copy-to.mjs} +1 -1
  30. package/scripts/{polkadot-dev-deno-map.mjs → pezkuwi-dev-deno-map.mjs} +1 -1
  31. package/scripts/{polkadot-dev-run-lint.mjs → pezkuwi-dev-run-lint.mjs} +3 -3
  32. package/scripts/{polkadot-dev-run-node-ts.mjs → pezkuwi-dev-run-node-ts.mjs} +1 -1
  33. package/scripts/{polkadot-dev-run-test.mjs → pezkuwi-dev-run-test.mjs} +2 -2
  34. package/scripts/{polkadot-dev-version.mjs → pezkuwi-dev-version.mjs} +1 -1
  35. package/scripts/util.mjs +2 -2
  36. /package/rootStatic/{kusama.svg → zagros.svg} +0 -0
  37. /package/scripts/{polkadot-dev-yarn-only.mjs → pezkuwi-dev-yarn-only.mjs} +0 -0
  38. /package/scripts/{polkadot-exec-eslint.mjs → pezkuwi-exec-eslint.mjs} +0 -0
  39. /package/scripts/{polkadot-exec-ghpages.mjs → pezkuwi-exec-ghpages.mjs} +0 -0
  40. /package/scripts/{polkadot-exec-ghrelease.mjs → pezkuwi-exec-ghrelease.mjs} +0 -0
  41. /package/scripts/{polkadot-exec-node-test.mjs → pezkuwi-exec-node-test.mjs} +0 -0
  42. /package/scripts/{polkadot-exec-rollup.mjs → pezkuwi-exec-rollup.mjs} +0 -0
  43. /package/scripts/{polkadot-exec-tsc.mjs → pezkuwi-exec-tsc.mjs} +0 -0
  44. /package/scripts/{polkadot-exec-webpack.mjs → pezkuwi-exec-webpack.mjs} +0 -0
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @polkadot/dev-test
1
+ # @pezkuwi/dev-test
2
2
 
3
3
  This is a very basic Jest-compatible environment that could be used alongside tests. The need for this came from replacing Jest with `node --test` without rewriting all assertions.
4
4
 
@@ -6,7 +6,7 @@ It provides the following -
6
6
 
7
7
  1. Browser `window`, `document`, `navigator` (see usage for browser-specific path)
8
8
  2. `jest` functions, specifically `spyOn` (not comprehensive, some will error, some witll noop)
9
- 3. `expect` functions (not comprehensive, caters for specific polkadot-js usage)
9
+ 3. `expect` functions (not comprehensive, caters for specific pezkuwi-js usage)
10
10
 
11
11
 
12
12
  ## Usage
@@ -16,17 +16,17 @@ On thing to note is that `node:test` is still rapidly evolving - this includes t
16
16
  The entry points are different based on the environment you would like to operate in. For a browser-like environment,
17
17
 
18
18
  ```
19
- node --require @polkadot/dev-test/browser ...
19
+ node --require @pezkuwi/dev-test/browser ...
20
20
  ```
21
21
 
22
22
  or for a basic describe/expect/jest-only global environment
23
23
 
24
24
  ```
25
- node --require @polkadot/dev-test/node ...
25
+ node --require @pezkuwi/dev-test/node ...
26
26
  ```
27
27
 
28
28
  The `...` above indicates any additional Node options, for instance a full command could be -
29
29
 
30
30
  ```
31
- node --require @polkadot/dev-test/node --test something.test.js
31
+ node --require @pezkuwi/dev-test/node --test something.test.js
32
32
  ```
@@ -5,7 +5,7 @@ type AssertMatchFn = (value: unknown) => void;
5
5
  * A helper that wraps a matching function in an ExpectMatcher. This is (currently)
6
6
  * only used/checked for in the calledWith* helpers
7
7
  *
8
- * TODO We don't use it in polkadot-js, but a useful enhancement could be for
8
+ * TODO We don't use it in pezkuwi-js, but a useful enhancement could be for
9
9
  * any of the to* expectations to detect and use those. An example of useful code
10
10
  * in that case:
11
11
  *
@@ -27,7 +27,7 @@ declare class Matcher {
27
27
  /**
28
28
  * Sets up the shimmed expect(...) function, including all .to* and .not.to*
29
29
  * functions. This is not comprehensive, rather is contains what we need to
30
- * make all polkadot-js usages pass
30
+ * make all pezkuwi-js usages pass
31
31
  **/
32
32
  export declare function expect(): {
33
33
  expect: ((value: unknown) => {
package/cjs/env/expect.js CHANGED
@@ -24,7 +24,7 @@ const stubExpectFnNot = (0, util_js_1.stubObj)('expect(...).not', EXPECT_KEYS_FN
24
24
  * A helper that wraps a matching function in an ExpectMatcher. This is (currently)
25
25
  * only used/checked for in the calledWith* helpers
26
26
  *
27
- * TODO We don't use it in polkadot-js, but a useful enhancement could be for
27
+ * TODO We don't use it in pezkuwi-js, but a useful enhancement could be for
28
28
  * any of the to* expectations to detect and use those. An example of useful code
29
29
  * in that case:
30
30
  *
@@ -164,7 +164,7 @@ function assertIncludes(value, [check, Clazz]) {
164
164
  /**
165
165
  * Sets up the shimmed expect(...) function, including all .to* and .not.to*
166
166
  * functions. This is not comprehensive, rather is contains what we need to
167
- * make all polkadot-js usages pass
167
+ * make all pezkuwi-js usages pass
168
168
  **/
169
169
  function expect() {
170
170
  const rootMatchers = {
package/cjs/env/jest.d.ts CHANGED
@@ -2,7 +2,7 @@ import type { AnyFn } from '../types.js';
2
2
  /**
3
3
  * Sets up the jest object. This is certainly not extensive, and probably
4
4
  * not quite meant to be (never say never). Rather this adds the functionality
5
- * that we use in the polkadot-js projects.
5
+ * that we use in the pezkuwi-js projects.
6
6
  **/
7
7
  export declare function jest(): {
8
8
  jest: {
package/cjs/env/jest.js CHANGED
@@ -41,7 +41,7 @@ function extendMock(mocked) {
41
41
  /**
42
42
  * Sets up the jest object. This is certainly not extensive, and probably
43
43
  * not quite meant to be (never say never). Rather this adds the functionality
44
- * that we use in the polkadot-js projects.
44
+ * that we use in the pezkuwi-js projects.
45
45
  **/
46
46
  function jest() {
47
47
  return {
@@ -1,8 +1,8 @@
1
- /** This tests augmentation outputs, e.g. as used in the polkadot-js/api */
1
+ /** This tests augmentation outputs, e.g. as used in the pezkuwi-js/api */
2
2
  export interface Something {
3
3
  bar: string;
4
4
  foo: string;
5
5
  }
6
- declare module '@polkadot/dev/types' {
6
+ declare module '@pezkuwi/dev/types' {
7
7
  const blah: string;
8
8
  }
@@ -142,8 +142,8 @@ export const overrideAll = {
142
142
  ['^\u0000'], // all side-effects (0 at start)
143
143
  ['\u0000$', '^@pezkuwi.*\u0000$', '^\\..*\u0000$'], // types (0 at end)
144
144
  // ['^node:'], // node
145
- ['^[^/\\.]'], // non-polkadot
146
- ['^@pezkuwi'], // polkadot
145
+ ['^[^/\\.]'], // non-pezkuwi
146
+ ['^@pezkuwi'], // pezkuwi
147
147
  ['^\\.\\.(?!/?$)', '^\\.\\./?$', '^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'] // local (. last)
148
148
  ]
149
149
  }],
@@ -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
  module.exports = {
package/config/rollup.js CHANGED
@@ -28,7 +28,7 @@ function sanitizePkg (pkg) {
28
28
  * @returns {string}
29
29
  */
30
30
  function createName (input) {
31
- return `polkadot-${sanitizePkg(input)}`
31
+ return `pezkuwi-${sanitizePkg(input)}`
32
32
  .toLowerCase()
33
33
  .replace(/[^a-zA-Z0-9]+(.)/g, (_, c) => c.toUpperCase());
34
34
  }
@@ -63,7 +63,7 @@ export function createOutput (pkg, external, globals) {
63
63
  const name = sanitizePkg(pkg);
64
64
 
65
65
  return {
66
- file: `packages/${name}/build/bundle-polkadot-${name}.js`,
66
+ file: `packages/${name}/build/bundle-pezkuwi-${name}.js`,
67
67
  format: 'umd',
68
68
  generatedCode: {
69
69
  constBindings: true
@@ -6,7 +6,7 @@
6
6
  "extends": "@tsconfig/strictest/tsconfig.json",
7
7
  "compilerOptions": {
8
8
  /**
9
- * Aligns with packages/dev/scripts/polkadot-dev-build-ts & packages/dev-ts/src/loader
9
+ * Aligns with packages/dev/scripts/pezkuwi-dev-build-ts & packages/dev-ts/src/loader
10
10
  * (target here is specifically tied to the minimum supported Node version)
11
11
  */
12
12
  "module": "nodenext",
@@ -14,7 +14,7 @@
14
14
  "target": "es2022",
15
15
 
16
16
  /**
17
- * Specific compilation configs for polkadot-js projects as it is used
17
+ * Specific compilation configs for pezkuwi-js projects as it is used
18
18
  * (we only compile *.d.ts via the tsc command-line)
19
19
  */
20
20
  "declaration": true,
@@ -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
  module.exports = {
@@ -11,7 +11,7 @@ module.exports = {
11
11
  includeDeclarations: false,
12
12
  module: 'commonjs',
13
13
  moduleResolution: 'node',
14
- name: 'polkadot{.js}',
14
+ name: 'pezkuwi{.js}',
15
15
  out: 'docs',
16
16
  stripInternal: 'true',
17
17
  theme: 'markdown'
package/env/expect.d.ts CHANGED
@@ -5,7 +5,7 @@ type AssertMatchFn = (value: unknown) => void;
5
5
  * A helper that wraps a matching function in an ExpectMatcher. This is (currently)
6
6
  * only used/checked for in the calledWith* helpers
7
7
  *
8
- * TODO We don't use it in polkadot-js, but a useful enhancement could be for
8
+ * TODO We don't use it in pezkuwi-js, but a useful enhancement could be for
9
9
  * any of the to* expectations to detect and use those. An example of useful code
10
10
  * in that case:
11
11
  *
@@ -27,7 +27,7 @@ declare class Matcher {
27
27
  /**
28
28
  * Sets up the shimmed expect(...) function, including all .to* and .not.to*
29
29
  * functions. This is not comprehensive, rather is contains what we need to
30
- * make all polkadot-js usages pass
30
+ * make all pezkuwi-js usages pass
31
31
  **/
32
32
  export declare function expect(): {
33
33
  expect: ((value: unknown) => {
package/env/expect.js CHANGED
@@ -21,7 +21,7 @@ const stubExpectFnNot = stubObj('expect(...).not', EXPECT_KEYS_FN, {
21
21
  * A helper that wraps a matching function in an ExpectMatcher. This is (currently)
22
22
  * only used/checked for in the calledWith* helpers
23
23
  *
24
- * TODO We don't use it in polkadot-js, but a useful enhancement could be for
24
+ * TODO We don't use it in pezkuwi-js, but a useful enhancement could be for
25
25
  * any of the to* expectations to detect and use those. An example of useful code
26
26
  * in that case:
27
27
  *
@@ -161,7 +161,7 @@ function assertIncludes(value, [check, Clazz]) {
161
161
  /**
162
162
  * Sets up the shimmed expect(...) function, including all .to* and .not.to*
163
163
  * functions. This is not comprehensive, rather is contains what we need to
164
- * make all polkadot-js usages pass
164
+ * make all pezkuwi-js usages pass
165
165
  **/
166
166
  export function expect() {
167
167
  const rootMatchers = {
package/env/jest.d.ts CHANGED
@@ -2,7 +2,7 @@ import type { AnyFn } from '../types.js';
2
2
  /**
3
3
  * Sets up the jest object. This is certainly not extensive, and probably
4
4
  * not quite meant to be (never say never). Rather this adds the functionality
5
- * that we use in the polkadot-js projects.
5
+ * that we use in the pezkuwi-js projects.
6
6
  **/
7
7
  export declare function jest(): {
8
8
  jest: {
package/env/jest.js CHANGED
@@ -38,7 +38,7 @@ function extendMock(mocked) {
38
38
  /**
39
39
  * Sets up the jest object. This is certainly not extensive, and probably
40
40
  * not quite meant to be (never say never). Rather this adds the functionality
41
- * that we use in the polkadot-js projects.
41
+ * that we use in the pezkuwi-js projects.
42
42
  **/
43
43
  export function jest() {
44
44
  return {
package/globals.cjs CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2025 @polkadot/dev-test authors & contributors
1
+ // Copyright 2017-2025 @pezkuwi/dev-test authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  module.exports = {};
package/globals.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2025 @polkadot/dev-test authors & contributors
1
+ // Copyright 2017-2025 @pezkuwi/dev-test authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  /* eslint-disable no-var */
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "author": "Jaco Greeff <jacogr@gmail.com>",
3
- "bugs": "https://github.com/polkadot-js/dev/issues",
3
+ "bugs": "https://github.com/pezkuwi-js/dev/issues",
4
4
  "description": "A basic test-functions-as-global library on top of node:test",
5
5
  "engines": {
6
6
  "node": ">=18.14"
7
7
  },
8
- "homepage": "https://github.com/polkadot-js/dev/tree/master/packages/dev-test#readme",
8
+ "homepage": "https://github.com/pezkuwi-js/dev/tree/master/packages/dev-test#readme",
9
9
  "license": "Apache-2.0",
10
10
  "name": "@pezkuwi/dev-test",
11
11
  "repository": {
12
12
  "directory": "packages/dev-test",
13
13
  "type": "git",
14
- "url": "https://github.com/polkadot-js/dev.git"
14
+ "url": "https://github.com/pezkuwi-js/dev.git"
15
15
  },
16
16
  "sideEffects": false,
17
17
  "type": "module",
18
- "version": "0.84.3",
18
+ "version": "0.85.1",
19
19
  "main": "./cjs/index.js",
20
20
  "module": "./index.js",
21
21
  "types": "./index.d.ts",
@@ -1,8 +1,8 @@
1
- /** This tests augmentation outputs, e.g. as used in the polkadot-js/api */
1
+ /** This tests augmentation outputs, e.g. as used in the pezkuwi-js/api */
2
2
  export interface Something {
3
3
  bar: string;
4
4
  foo: string;
5
5
  }
6
- declare module '@polkadot/dev/types' {
6
+ declare module '@pezkuwi/dev/types' {
7
7
  const blah: string;
8
8
  }
@@ -12,10 +12,10 @@ import { copyDirSync, copyFileSync, denoCreateDir, execGit, execPm, execSync, ex
12
12
 
13
13
  /** @typedef {Record<string, any>} ChangelogMap */
14
14
 
15
- logBin('polkadot-ci-ghact-build');
15
+ logBin('pezkuwi-ci-ghact-build');
16
16
 
17
- const DENO_REPO = 'polkadot-js/build-deno.land';
18
- const BUND_REPO = 'polkadot-js/build-bundle';
17
+ const DENO_REPO = 'pezkuwi-js/build-deno.land';
18
+ const BUND_REPO = 'pezkuwi-js/build-bundle';
19
19
 
20
20
  const repo = `${GITHUB_TOKEN_URL}/${GITHUB_REPO}.git`;
21
21
  const denoRepo = `${GITHUB_TOKEN_URL}/${DENO_REPO}.git`;
@@ -305,14 +305,14 @@ function commitClone (repo, clone, names) {
305
305
  }
306
306
 
307
307
  /**
308
- * Publishes a specific package to polkadot-js bundles
308
+ * Publishes a specific package to pezkuwi-js bundles
309
309
  *
310
310
  * @returns {void}
311
311
  */
312
312
  function bundlePublishPkg () {
313
313
  const { name, version } = npmGetJson();
314
314
  const dirName = name.split('/')[1];
315
- const bundName = `bundle-polkadot-${dirName}.js`;
315
+ const bundName = `bundle-pezkuwi-${dirName}.js`;
316
316
  const srcPath = path.join('build', bundName);
317
317
  const dstDir = path.join('../..', bundClone);
318
318
 
@@ -333,7 +333,7 @@ function bundlePublishPkg () {
333
333
  }
334
334
 
335
335
  /**
336
- * Publishes all packages to polkadot-js bundles
336
+ * Publishes all packages to pezkuwi-js bundles
337
337
  *
338
338
  * @returns {void}
339
339
  */
@@ -419,7 +419,7 @@ function verBump () {
419
419
 
420
420
  if (argv['skip-beta'] || patch === '0') {
421
421
  // don't allow beta versions
422
- execPm('polkadot-dev-version patch');
422
+ execPm('pezkuwi-dev-version patch');
423
423
  withNpm = true;
424
424
  } else if (tag || currentVersion === lastVersion) {
425
425
  // if we don't want to publish, add an X before passing
@@ -430,7 +430,7 @@ function verBump () {
430
430
  }
431
431
 
432
432
  // beta version, just continue the stream of betas
433
- execPm('polkadot-dev-version pre');
433
+ execPm('pezkuwi-dev-version pre');
434
434
  } else {
435
435
  // manually set, got for publish
436
436
  withNpm = true;
@@ -440,7 +440,7 @@ function verBump () {
440
440
  npmSetVersionFields();
441
441
  rmFile('.123trigger');
442
442
 
443
- execPm('polkadot-dev-contrib');
443
+ execPm('pezkuwi-dev-contrib');
444
444
  execGit('add --all .');
445
445
  }
446
446
 
@@ -480,7 +480,7 @@ skip-checks: true"`);
480
480
  ? `--assets ${process.env['GH_RELEASE_FILES']}`
481
481
  : '';
482
482
 
483
- execPm(`polkadot-exec-ghrelease --draft ${files} --yes`);
483
+ execPm(`pezkuwi-exec-ghrelease --draft ${files} --yes`);
484
484
  }
485
485
  }
486
486
 
@@ -522,7 +522,7 @@ getFlags();
522
522
  verBump();
523
523
 
524
524
  // perform the actual CI build
525
- execPm('polkadot-dev-clean-build');
525
+ execPm('pezkuwi-dev-clean-build');
526
526
  execPm('lint');
527
527
  execPm('test');
528
528
  execPm('build');
@@ -6,9 +6,9 @@ import { execPm, GITHUB_REPO, GITHUB_TOKEN_URL, gitSetup, logBin } from './util.
6
6
 
7
7
  const repo = `${GITHUB_TOKEN_URL}/${GITHUB_REPO}.git`;
8
8
 
9
- logBin('polkadot-ci-ghact-docs');
9
+ logBin('pezkuwi-ci-ghact-docs');
10
10
 
11
11
  gitSetup();
12
12
 
13
13
  execPm('run docs');
14
- execPm(`polkadot-exec-ghpages --dotfiles --repo ${repo} --dist ${process.env['GH_PAGES_SRC']} --dest .`, true);
14
+ execPm(`pezkuwi-exec-ghpages --dotfiles --repo ${repo} --dist ${process.env['GH_PAGES_SRC']} --dest .`, true);
@@ -6,7 +6,7 @@ import fs from 'node:fs';
6
6
 
7
7
  import { execGit, logBin } from './util.mjs';
8
8
 
9
- logBin('polkadot-ci-ghpages-force');
9
+ logBin('pezkuwi-ci-ghpages-force');
10
10
 
11
11
  // ensure we are on master
12
12
  execGit('checkout master');
@@ -7,7 +7,7 @@ import path from 'node:path';
7
7
 
8
8
  import { copyDirSync, logBin, rimrafSync } from './util.mjs';
9
9
 
10
- logBin('polkadot-dev-build-docs');
10
+ logBin('pezkuwi-dev-build-docs');
11
11
 
12
12
  let docRoot = path.join(process.cwd(), 'docs');
13
13
 
@@ -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
  /**
@@ -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}`);
@@ -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
 
@@ -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) {
@@ -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
 
@@ -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
@@ -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}`);
@@ -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');
@@ -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');
@@ -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()} @pezkuwi/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
 
@@ -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
  }
@@ -4,6 +4,6 @@
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(' '));
@@ -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
 
@@ -148,7 +148,7 @@ if (files.length === 0) {
148
148
  }
149
149
 
150
150
  try {
151
- const allFlags = `${importPath('@pezkuwi/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(
@@ -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
 
package/scripts/util.mjs CHANGED
@@ -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]';
File without changes