From 60f7beb120a9086d03769e2efabbd9cec221ab6f Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Thu, 8 Jan 2026 01:35:27 +0300 Subject: [PATCH] fix: update header pattern to allow 'authors & contributors' suffix --- .prettierrc.cjs | 4 +- CHANGELOG.md | 4 +- package.json | 28 +++--- packages/dev-test/README.md | 2 +- packages/dev-test/package.json | 8 +- packages/dev-test/src/env/expect.ts | 4 +- packages/dev-test/src/env/jest.ts | 2 +- packages/dev-test/src/globals.cjs | 2 +- packages/dev-test/src/packageInfo.ts | 2 +- packages/dev-ts/README.md | 8 +- packages/dev-ts/package.json | 8 +- packages/dev-ts/src/cached.ts | 2 +- packages/dev-ts/src/common.ts | 4 +- packages/dev-ts/src/index.ts | 2 +- packages/dev-ts/src/loader.ts | 4 +- packages/dev-ts/src/packageInfo.ts | 6 +- packages/dev-ts/src/resolver.spec.ts | 4 +- packages/dev-ts/src/resolver.ts | 4 +- packages/dev-ts/src/testCached.ts | 2 +- packages/dev-ts/src/testLoader.ts | 4 +- packages/dev-ts/src/tsconfig.ts | 4 +- packages/dev-ts/src/types.ts | 2 +- packages/dev/README.md | 88 +++++++++---------- packages/dev/config/eslint.js | 2 +- packages/dev/config/eslint.rules.js | 14 +-- packages/dev/config/prettier.cjs | 2 +- packages/dev/config/rollup.js | 8 +- packages/dev/config/tsconfig.json | 4 +- packages/dev/config/typedoc.cjs | 4 +- packages/dev/package.json | 54 ++++++------ ...t-build.mjs => pezkuwi-ci-ghact-build.mjs} | 24 ++--- ...act-docs.mjs => pezkuwi-ci-ghact-docs.mjs} | 6 +- ...force.mjs => pezkuwi-ci-ghpages-force.mjs} | 4 +- ...ld-docs.mjs => pezkuwi-dev-build-docs.mjs} | 4 +- ...-build-ts.mjs => pezkuwi-dev-build-ts.mjs} | 44 +++++----- ...-circular.mjs => pezkuwi-dev-circular.mjs} | 4 +- ...-build.mjs => pezkuwi-dev-clean-build.mjs} | 4 +- ...ev-contrib.mjs => pezkuwi-dev-contrib.mjs} | 4 +- ...-copy-dir.mjs => pezkuwi-dev-copy-dir.mjs} | 4 +- ...ev-copy-to.mjs => pezkuwi-dev-copy-to.mjs} | 4 +- ...-deno-map.mjs => pezkuwi-dev-deno-map.mjs} | 4 +- ...-run-lint.mjs => pezkuwi-dev-run-lint.mjs} | 8 +- ...ode-ts.mjs => pezkuwi-dev-run-node-ts.mjs} | 4 +- ...-run-test.mjs => pezkuwi-dev-run-test.mjs} | 12 +-- ...ev-version.mjs => pezkuwi-dev-version.mjs} | 4 +- ...arn-only.mjs => pezkuwi-dev-yarn-only.mjs} | 2 +- ...xec-eslint.mjs => pezkuwi-exec-eslint.mjs} | 2 +- ...c-ghpages.mjs => pezkuwi-exec-ghpages.mjs} | 2 +- ...release.mjs => pezkuwi-exec-ghrelease.mjs} | 2 +- ...de-test.mjs => pezkuwi-exec-node-test.mjs} | 4 +- ...xec-rollup.mjs => pezkuwi-exec-rollup.mjs} | 2 +- ...adot-exec-tsc.mjs => pezkuwi-exec-tsc.mjs} | 2 +- ...c-webpack.mjs => pezkuwi-exec-webpack.mjs} | 2 +- packages/dev/scripts/util.mjs | 16 ++-- packages/dev/src/cjs/sample.js | 2 +- packages/dev/src/detectOther.ts | 2 +- packages/dev/src/index.ts | 2 +- packages/dev/src/mod.ts | 2 +- packages/dev/src/root.ts | 2 +- packages/dev/src/rootCjs.spec.ts | 2 +- packages/dev/src/rootEsm.spec.ts | 6 +- packages/dev/src/rootJs/Clazz.ts | 2 +- packages/dev/src/rootJs/augmented.ts | 4 +- packages/dev/src/rootJs/dynamic.mjs | 2 +- packages/dev/src/rootJs/test.json.d.ts | 2 +- packages/dev/src/rootSrc.spec.ts | 2 +- .../src/rootStatic/{kusama.svg => zagros.svg} | 0 packages/dev/src/rootTests.ts | 2 +- packages/dev/src/types.ts | 2 +- scripts/all-deps.js | 4 +- 70 files changed, 246 insertions(+), 246 deletions(-) rename packages/dev/scripts/{polkadot-ci-ghact-build.mjs => pezkuwi-ci-ghact-build.mjs} (95%) rename packages/dev/scripts/{polkadot-ci-ghact-docs.mjs => pezkuwi-ci-ghact-docs.mjs} (53%) rename packages/dev/scripts/{polkadot-ci-ghpages-force.mjs => pezkuwi-ci-ghpages-force.mjs} (87%) rename packages/dev/scripts/{polkadot-dev-build-docs.mjs => pezkuwi-dev-build-docs.mjs} (80%) rename packages/dev/scripts/{polkadot-dev-build-ts.mjs => pezkuwi-dev-build-ts.mjs} (97%) rename packages/dev/scripts/{polkadot-dev-circular.mjs => pezkuwi-dev-circular.mjs} (88%) rename packages/dev/scripts/{polkadot-dev-clean-build.mjs => pezkuwi-dev-clean-build.mjs} (92%) rename packages/dev/scripts/{polkadot-dev-contrib.mjs => pezkuwi-dev-contrib.mjs} (95%) rename packages/dev/scripts/{polkadot-dev-copy-dir.mjs => pezkuwi-dev-copy-dir.mjs} (89%) rename packages/dev/scripts/{polkadot-dev-copy-to.mjs => pezkuwi-dev-copy-to.mjs} (93%) rename packages/dev/scripts/{polkadot-dev-deno-map.mjs => pezkuwi-dev-deno-map.mjs} (78%) rename packages/dev/scripts/{polkadot-dev-run-lint.mjs => pezkuwi-dev-run-lint.mjs} (71%) rename packages/dev/scripts/{polkadot-dev-run-node-ts.mjs => pezkuwi-dev-run-node-ts.mjs} (62%) rename packages/dev/scripts/{polkadot-dev-run-test.mjs => pezkuwi-dev-run-test.mjs} (90%) rename packages/dev/scripts/{polkadot-dev-version.mjs => pezkuwi-dev-version.mjs} (97%) rename packages/dev/scripts/{polkadot-dev-yarn-only.mjs => pezkuwi-dev-yarn-only.mjs} (74%) rename packages/dev/scripts/{polkadot-exec-eslint.mjs => pezkuwi-exec-eslint.mjs} (72%) rename packages/dev/scripts/{polkadot-exec-ghpages.mjs => pezkuwi-exec-ghpages.mjs} (80%) rename packages/dev/scripts/{polkadot-exec-ghrelease.mjs => pezkuwi-exec-ghrelease.mjs} (73%) rename packages/dev/scripts/{polkadot-exec-node-test.mjs => pezkuwi-exec-node-test.mjs} (98%) rename packages/dev/scripts/{polkadot-exec-rollup.mjs => pezkuwi-exec-rollup.mjs} (71%) rename packages/dev/scripts/{polkadot-exec-tsc.mjs => pezkuwi-exec-tsc.mjs} (72%) rename packages/dev/scripts/{polkadot-exec-webpack.mjs => pezkuwi-exec-webpack.mjs} (72%) rename packages/dev/src/rootStatic/{kusama.svg => zagros.svg} (100%) diff --git a/.prettierrc.cjs b/.prettierrc.cjs index 07b038a..b9e1b1c 100644 --- a/.prettierrc.cjs +++ b/.prettierrc.cjs @@ -1,4 +1,4 @@ -// Copyright 2017-2025 @polkadot/dev authors & contributors +// Copyright 2017-2025 @pezkuwi/dev authors & contributors // SPDX-License-Identifier: Apache-2.0 -module.exports = require('@polkadot/dev/config/prettier.cjs'); +module.exports = require('@pezkuwi/dev/config/prettier.cjs'); diff --git a/CHANGELOG.md b/CHANGELOG.md index 1287f90..2351e42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ ## 0.83.1 -- Parallelize the tests in `polkadot-exec-node-test` +- Parallelize the tests in `pezkuwi-exec-node-test` ## 0.82.1 @@ -195,7 +195,7 @@ - Remove `@pezkuwi/dev-react`, combine into `@pezkuwi/dev` - Move all user-facing (non-CI scripts) to JS, which makes cross-platform easier -- Add `polkadot-dev-circular` script to extract circular deps +- Add `pezkuwi-dev-circular` script to extract circular deps ## 0.34.1 diff --git a/package.json b/package.json index f8cebc4..e01f1d7 100644 --- a/package.json +++ b/package.json @@ -1,36 +1,36 @@ { "author": "Pezkuwi Team ", - "bugs": "https://github.com/pezkuwi/dev/issues", + "bugs": "https://github.com/pezkuwichain/pezkuwi-dev/issues", "engines": { "node": ">=18.14" }, - "homepage": "https://github.com/pezkuwi/dev#readme", + "homepage": "https://github.com/pezkuwichain/pezkuwi-dev#readme", "license": "Apache-2.0", "packageManager": "yarn@4.6.0", "private": true, "repository": { "type": "git", - "url": "https://github.com/pezkuwi/dev.git" + "url": "https://github.com/pezkuwichain/pezkuwi-dev.git" }, "sideEffects": false, "type": "module", - "version": "0.84.2", + "version": "0.85.3", "versions": { - "git": "0.84.2", - "npm": "0.84.2" + "git": "0.85.3", + "npm": "0.85.3" }, "workspaces": [ "packages/*" ], "scripts": { - "build": "polkadot-dev-build-ts", - "build:before": "polkadot-dev-copy-dir --cd packages/dev config scripts build", - "build:release": "polkadot-ci-ghact-build --skip-beta", - "clean": "polkadot-dev-clean-build", - "docs": "polkadot-dev-build-docs", - "lint": "polkadot-dev-run-lint", - "postinstall": "./packages/dev/scripts/polkadot-dev-yarn-only.mjs", - "test": "yarn build && polkadot-dev-run-test --dev-build --env browser" + "build": "pezkuwi-dev-build-ts", + "build:before": "pezkuwi-dev-copy-dir --cd packages/dev config scripts build", + "build:release": "pezkuwi-ci-ghact-build --skip-beta", + "clean": "pezkuwi-dev-clean-build", + "docs": "pezkuwi-dev-build-docs", + "lint": "pezkuwi-dev-run-lint", + "postinstall": "./packages/dev/scripts/pezkuwi-dev-yarn-only.mjs", + "test": "yarn build && pezkuwi-dev-run-test --dev-build --env browser" }, "devDependencies": { "@pezkuwi/dev": "workspace:packages/dev", diff --git a/packages/dev-test/README.md b/packages/dev-test/README.md index eb89e75..00fe8ea 100644 --- a/packages/dev-test/README.md +++ b/packages/dev-test/README.md @@ -6,7 +6,7 @@ It provides the following - 1. Browser `window`, `document`, `navigator` (see usage for browser-specific path) 2. `jest` functions, specifically `spyOn` (not comprehensive, some will error, some witll noop) -3. `expect` functions (not comprehensive, caters for specific polkadot-js usage) +3. `expect` functions (not comprehensive, caters for specific pezkuwi-js usage) ## Usage diff --git a/packages/dev-test/package.json b/packages/dev-test/package.json index cd8035f..7668c67 100644 --- a/packages/dev-test/package.json +++ b/packages/dev-test/package.json @@ -1,21 +1,21 @@ { "author": "Jaco Greeff ", - "bugs": "https://github.com/pezkuwi/dev/issues", + "bugs": "https://github.com/pezkuwichain/pezkuwi-dev/issues", "description": "A basic test-functions-as-global library on top of node:test", "engines": { "node": ">=18.14" }, - "homepage": "https://github.com/pezkuwi/dev/tree/master/packages/dev-test#readme", + "homepage": "https://github.com/pezkuwichain/pezkuwi-dev/tree/master/packages/dev-test#readme", "license": "Apache-2.0", "name": "@pezkuwi/dev-test", "repository": { "directory": "packages/dev-test", "type": "git", - "url": "https://github.com/pezkuwi/dev.git" + "url": "https://github.com/pezkuwichain/pezkuwi-dev.git" }, "sideEffects": false, "type": "module", - "version": "0.84.2", + "version": "0.85.0", "main": "./index.js", "exports": { "./globals.d.ts": "./src/globals.d.ts" diff --git a/packages/dev-test/src/env/expect.ts b/packages/dev-test/src/env/expect.ts index e10cd67..0defdfb 100644 --- a/packages/dev-test/src/env/expect.ts +++ b/packages/dev-test/src/env/expect.ts @@ -37,7 +37,7 @@ const stubExpectFnNot = stubObj('expect(...).not', EXPECT_KEYS_FN, { * A helper that wraps a matching function in an ExpectMatcher. This is (currently) * only used/checked for in the calledWith* helpers * - * TODO We don't use it in polkadot-js, but a useful enhancement could be for + * TODO We don't use it in pezkuwi-js, but a useful enhancement could be for * any of the to* expectations to detect and use those. An example of useful code * in that case: * @@ -197,7 +197,7 @@ function assertIncludes (value: string | unknown[], [check, Clazz]: [string, Fun /** * Sets up the shimmed expect(...) function, including all .to* and .not.to* * functions. This is not comprehensive, rather is contains what we need to - * make all polkadot-js usages pass + * make all pezkuwi-js usages pass **/ export function expect () { const rootMatchers = { diff --git a/packages/dev-test/src/env/jest.ts b/packages/dev-test/src/env/jest.ts index 70172e8..54cfa56 100644 --- a/packages/dev-test/src/env/jest.ts +++ b/packages/dev-test/src/env/jest.ts @@ -53,7 +53,7 @@ function extendMock (mocked: WithMock) { /** * Sets up the jest object. This is certainly not extensive, and probably * not quite meant to be (never say never). Rather this adds the functionality - * that we use in the polkadot-js projects. + * that we use in the pezkuwi-js projects. **/ export function jest () { return { diff --git a/packages/dev-test/src/globals.cjs b/packages/dev-test/src/globals.cjs index 9131db2..f7798d5 100644 --- a/packages/dev-test/src/globals.cjs +++ b/packages/dev-test/src/globals.cjs @@ -1,4 +1,4 @@ -// Copyright 2017-2025 @polkadot/dev-test authors & contributors +// Copyright 2017-2025 @pezkuwi/dev-test authors & contributors // SPDX-License-Identifier: Apache-2.0 module.exports = {}; diff --git a/packages/dev-test/src/packageInfo.ts b/packages/dev-test/src/packageInfo.ts index 42320d1..2fb196d 100644 --- a/packages/dev-test/src/packageInfo.ts +++ b/packages/dev-test/src/packageInfo.ts @@ -1,6 +1,6 @@ // Copyright 2017-2025 @pezkuwi/dev-test authors & contributors // SPDX-License-Identifier: Apache-2.0 -// Do not edit, auto-generated by @polkadot/dev +// Do not edit, auto-generated by @pezkuwi/dev export const packageInfo = { name: '@pezkuwi/dev-test', path: 'auto', type: 'auto', version: '0.84.2' }; diff --git a/packages/dev-ts/README.md b/packages/dev-ts/README.md index ff92b7d..580d871 100644 --- a/packages/dev-ts/README.md +++ b/packages/dev-ts/README.md @@ -1,6 +1,6 @@ # @pezkuwi/dev-ts -This is an Node TS loader, specifically written to cater for the polkadot-js needs, aka it is meant to be used inside polkadot-js projects. It doesn't aim to be a catch-all resolver, although it does cover quite a large spectrum of functionality. +This is an Node TS loader, specifically written to cater for the pezkuwi-js needs, aka it is meant to be used inside pezkuwi-js projects. It doesn't aim to be a catch-all resolver, although it does cover quite a large spectrum of functionality. It caters for - @@ -18,7 +18,7 @@ Just add the loader via the Node.js `--loader` option. The API supported here is node --loader @pezkuwi/dev-ts ... ``` -Internally to the polkadot-js libraries, loader caching is used. This means that compiled files are store on-disk alongside the `/src/` folder in `/build-loader/`. To enable caching behavior, the loader endpoint is changed slightly, +Internally to the pezkuwi-js libraries, loader caching is used. This means that compiled files are store on-disk alongside the `/src/` folder in `/build-loader/`. To enable caching behavior, the loader endpoint is changed slightly, ``` node --loader @pezkuwi/dev-ts/cached ... @@ -31,7 +31,7 @@ This is generally the suggested default, but it is only exposed via a different The Node.js loader API could change in the future (as it has in the Node.js 16.12 version), so it _may_ break or stop working on newer versions, and obviously won't work at all on older versions. As of this writing (Node.js 18.14 being the most-recent LTS), using the `--loader` option will print a warning. -With all that said, it is used as-is for the polkadot-js test infrastructure and currently operates without issues in _that_ environment. +With all that said, it is used as-is for the pezkuwi-js test infrastructure and currently operates without issues in _that_ environment. TL;DR Different configs could yield some issues. @@ -44,4 +44,4 @@ We started off with a basic `swc` loader (after swapping the infrastructure from Since then we just swapped to using base `tsc` everywhere (for all builds) and may look at changing again (swc, esbuild. etc...) in the future. So effectively having a single loader, while re-inventing the wheel somewhat (since there seems to be a _lot_ of options available) allows us to just keep the loader compiling options fully aligned with what TS -> JS output approach we take. -It meets our requirements: aligns fully with the overall configs we accross polkadot-js, compiles to ESM (no CJS used when testing/running) and has minimal dependencies that doesn't add bloat. In most cases you would probably be better off with one of the loaders/registration approaches linked in the first paragraph. +It meets our requirements: aligns fully with the overall configs we accross pezkuwi-js, compiles to ESM (no CJS used when testing/running) and has minimal dependencies that doesn't add bloat. In most cases you would probably be better off with one of the loaders/registration approaches linked in the first paragraph. diff --git a/packages/dev-ts/package.json b/packages/dev-ts/package.json index ff2ec3f..ee51f4a 100644 --- a/packages/dev-ts/package.json +++ b/packages/dev-ts/package.json @@ -1,21 +1,21 @@ { "author": "Jaco Greeff ", - "bugs": "https://github.com/pezkuwi/dev/issues", + "bugs": "https://github.com/pezkuwichain/pezkuwi-dev/issues", "description": "An TS -> ESM loader for Node >= 16.12", "engines": { "node": ">=18" }, - "homepage": "https://github.com/pezkuwi/dev/tree/master/packages/dev-ts#readme", + "homepage": "https://github.com/pezkuwichain/pezkuwi-dev/tree/master/packages/dev-ts#readme", "license": "Apache-2.0", "name": "@pezkuwi/dev-ts", "repository": { "directory": "packages/dev-ts", "type": "git", - "url": "https://github.com/pezkuwi/dev.git" + "url": "https://github.com/pezkuwichain/pezkuwi-dev.git" }, "sideEffects": false, "type": "module", - "version": "0.84.3", + "version": "0.85.0", "main": "./cjs/index.js", "exports": { "./cjs/package.json": "./cjs/package.json", diff --git a/packages/dev-ts/src/cached.ts b/packages/dev-ts/src/cached.ts index 3b0617d..47a7090 100644 --- a/packages/dev-ts/src/cached.ts +++ b/packages/dev-ts/src/cached.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2025 @polkadot/dev-ts authors & contributors +// Copyright 2017-2025 @pezkuwi/dev-ts authors & contributors // SPDX-License-Identifier: Apache-2.0 import { loaderOptions } from './common.js'; diff --git a/packages/dev-ts/src/common.ts b/packages/dev-ts/src/common.ts index 21618d2..5c6317e 100644 --- a/packages/dev-ts/src/common.ts +++ b/packages/dev-ts/src/common.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2025 @polkadot/dev-ts authors & contributors +// Copyright 2017-2025 @pezkuwi/dev-ts authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { LoaderOptions } from './types.js'; @@ -25,7 +25,7 @@ export const EXT_TS_REGEX = /\.tsx?$/; /** RegEx for matching JS files (imports map to TS) */ export const EXT_JS_REGEX = /\.jsx?$/; -/** RegEx for json files (as actually aliassed in polkadot-js) */ +/** RegEx for json files (as actually aliassed in pezkuwi-js) */ export const EXT_JSON_REGEX = /\.json$/; /** Options for loader config */ diff --git a/packages/dev-ts/src/index.ts b/packages/dev-ts/src/index.ts index b6d92f6..9083953 100644 --- a/packages/dev-ts/src/index.ts +++ b/packages/dev-ts/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2025 @polkadot/dev-ts authors & contributors +// Copyright 2017-2025 @pezkuwi/dev-ts authors & contributors // SPDX-License-Identifier: Apache-2.0 // Adapted from: https://nodejs.org/api/esm.html#esm_transpiler_loader diff --git a/packages/dev-ts/src/loader.ts b/packages/dev-ts/src/loader.ts index e10c200..d255d96 100644 --- a/packages/dev-ts/src/loader.ts +++ b/packages/dev-ts/src/loader.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2025 @polkadot/dev-ts authors & contributors +// Copyright 2017-2025 @pezkuwi/dev-ts authors & contributors // SPDX-License-Identifier: Apache-2.0 import crypto from 'node:crypto'; @@ -63,7 +63,7 @@ export async function load (url: string, context: Record, nextL module: ts.ModuleKind.ESNext, moduleResolution: ts.ModuleResolutionKind.NodeNext, skipLibCheck: true, - // Aligns with packages/dev/scripts/polkadot-dev-build-ts & packages/dev/config/tsconfig + // Aligns with packages/dev/scripts/pezkuwi-dev-build-ts & packages/dev/config/tsconfig target: ts.ScriptTarget.ES2022 }, fileName: fileURLToPath(url) diff --git a/packages/dev-ts/src/packageInfo.ts b/packages/dev-ts/src/packageInfo.ts index ab358ea..65239e0 100644 --- a/packages/dev-ts/src/packageInfo.ts +++ b/packages/dev-ts/src/packageInfo.ts @@ -1,6 +1,6 @@ -// Copyright 2017-2025 @polkadot/dev-ts authors & contributors +// Copyright 2017-2025 @pezkuwi/dev-ts authors & contributors // SPDX-License-Identifier: Apache-2.0 -// Do not edit, auto-generated by @polkadot/dev +// Do not edit, auto-generated by @pezkuwi/dev -export const packageInfo = { name: '@polkadot/dev-ts', path: 'auto', type: 'auto', version: '0.84.2' }; +export const packageInfo = { name: '@pezkuwi/dev-ts', path: 'auto', type: 'auto', version: '0.84.2' }; diff --git a/packages/dev-ts/src/resolver.spec.ts b/packages/dev-ts/src/resolver.spec.ts index bb16d87..1847236 100644 --- a/packages/dev-ts/src/resolver.spec.ts +++ b/packages/dev-ts/src/resolver.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2025 @polkadot/dev-ts authors & contributors +// Copyright 2017-2025 @pezkuwi/dev-ts authors & contributors // SPDX-License-Identifier: Apache-2.0 /// @@ -124,7 +124,7 @@ describe('resolveExtBare', () => { describe('resolveAliases', () => { it('resolves packageInfo', () => { expect( - resolveAlias('@polkadot/dev-ts/packageInfo', ROOT_URL) + resolveAlias('@pezkuwi/dev-ts/packageInfo', ROOT_URL) ).toEqual({ format: 'module', shortCircuit: true, diff --git a/packages/dev-ts/src/resolver.ts b/packages/dev-ts/src/resolver.ts index 846ce0d..d815c09 100644 --- a/packages/dev-ts/src/resolver.ts +++ b/packages/dev-ts/src/resolver.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2025 @polkadot/dev-ts authors & contributors +// Copyright 2017-2025 @pezkuwi/dev-ts authors & contributors // SPDX-License-Identifier: Apache-2.0 import fs from 'node:fs'; @@ -112,7 +112,7 @@ export function resolveExtJson (specifier: string, parentUrl: URL | string): Res * * At some point we probably might need to extend this to cater for the * ts (recommended) approach for using .js extensions inside the sources. - * However, since we don't use this in the polkadot-js code, can kick this + * However, since we don't use this in the pezkuwi-js code, can kick this * down the line **/ export function resolveExtBare (specifier: string, parentUrl: URL | string): Resolved | void { diff --git a/packages/dev-ts/src/testCached.ts b/packages/dev-ts/src/testCached.ts index d153600..0b85c41 100644 --- a/packages/dev-ts/src/testCached.ts +++ b/packages/dev-ts/src/testCached.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2025 @polkadot/dev-ts authors & contributors +// Copyright 2017-2025 @pezkuwi/dev-ts authors & contributors // SPDX-License-Identifier: Apache-2.0 // Adapted from: https://nodejs.org/api/esm.html#esm_transpiler_loader diff --git a/packages/dev-ts/src/testLoader.ts b/packages/dev-ts/src/testLoader.ts index 3705146..6f3c45d 100644 --- a/packages/dev-ts/src/testLoader.ts +++ b/packages/dev-ts/src/testLoader.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2025 @polkadot/dev-ts authors & contributors +// Copyright 2017-2025 @pezkuwi/dev-ts authors & contributors // SPDX-License-Identifier: Apache-2.0 import crypto from 'node:crypto'; @@ -66,7 +66,7 @@ export async function load (url: string, context: Record, nextL module: ts.ModuleKind.ESNext, moduleResolution: ts.ModuleResolutionKind.NodeNext, skipLibCheck: true, - // Aligns with packages/dev/scripts/polkadot-dev-build-ts & packages/dev/config/tsconfig + // Aligns with packages/dev/scripts/pezkuwi-dev-build-ts & packages/dev/config/tsconfig target: ts.ScriptTarget.ES2022 }, fileName: fileURLToPath(url) diff --git a/packages/dev-ts/src/tsconfig.ts b/packages/dev-ts/src/tsconfig.ts index 0318b8a..9212109 100644 --- a/packages/dev-ts/src/tsconfig.ts +++ b/packages/dev-ts/src/tsconfig.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2025 @polkadot/dev-ts authors & contributors +// Copyright 2017-2025 @pezkuwi/dev-ts authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { TsAlias } from './types.js'; @@ -66,7 +66,7 @@ function readConfigFile (currentPath = CWD_PATH, tsconfig = 'tsconfig.json', fro // base configs are overridden by later configs, order here matters // FIXME The paths would be relative to the baseUrl at that point... for - // now we don't care much since we define these 2 together in all @polkadot + // now we don't care much since we define these 2 together in all @pezkuwi // configs, but it certainly _may_ create and issue at some point (for others) paths = { ...extConfig.paths, ...paths }; url = url || extConfig.url; diff --git a/packages/dev-ts/src/types.ts b/packages/dev-ts/src/types.ts index 2ed89ff..b9ac573 100644 --- a/packages/dev-ts/src/types.ts +++ b/packages/dev-ts/src/types.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2025 @polkadot/dev-ts authors & contributors +// Copyright 2017-2025 @pezkuwi/dev-ts authors & contributors // SPDX-License-Identifier: Apache-2.0 export interface TsAlias { diff --git a/packages/dev/README.md b/packages/dev/README.md index c014e6a..4038350 100644 --- a/packages/dev/README.md +++ b/packages/dev/README.md @@ -4,7 +4,7 @@ A collection of shared CI scripts and development environment (configuration, de # Scripts -## polkadot-ci-ghact-build +## pezkuwi-ci-ghact-build **Summary**: This script automates the continuous integration (CI) process for building, testing, versioning, and publishing packages in the repository. It handles tasks like cleaning the workspace, running tests, updating versions, publishing to npm, GitHub repositories, and Deno, and generating changelogs. @@ -17,10 +17,10 @@ This script automates the continuous integration (CI) process for building, test ### Usage ```bash -yarn polkadot-ci-ghact-build [options] +yarn pezkuwi-ci-ghact-build [options] ``` -## polkadot-ci-ghact-docs +## pezkuwi-ci-ghact-docs **Summary**: This script generates documentation for the repository and deploys it to GitHub Pages. It ensures the documentation is built and published with the correct configuration. @@ -32,10 +32,10 @@ This script does not accept any CLI arguments. ### Usage ```bash -yarn polkadot-ci-ghact-docs +yarn pezkuwi-ci-ghact-docs ``` -## polkadot-ci-ghpages-force +## pezkuwi-ci-ghpages-force **Summary**: This script force-refreshes the `gh-pages` branch of the repository by creating a new orphan branch, resetting its contents, and pushing it to GitHub. It ensures a clean state for GitHub Pages deployment. @@ -47,10 +47,10 @@ This script does not accept any CLI arguments. ### Usage ```bash -yarn polkadot-ci-ghpages-force +yarn pezkuwi-ci-ghpages-force ``` -## polkadot-dev-build-docs +## pezkuwi-dev-build-docs **Summary**: This script prepares the documentation for building by copying the `docs` directory to a `build-docs` directory. If the `build-docs` directory already exists, it is cleared before copying. @@ -62,10 +62,10 @@ This script does not accept any CLI arguments. ### Usage ```bash -yarn polkadot-dev-build-docs +yarn pezkuwi-dev-build-docs ``` -## polkadot-dev-build-ts +## pezkuwi-dev-build-ts **Summary**: This script compiles TypeScript source files into JavaScript outputs using the specified compiler (`tsc`), prepares the build artifacts, rewrites imports for compatibility (e.g., for Deno), lints dependencies, and updates package metadata for distribution. It supports CommonJS, ESM, and Deno outputs, along with configuration validation and export mapping. @@ -79,10 +79,10 @@ This script compiles TypeScript source files into JavaScript outputs using the s ### Usage ```bash -yarn polkadot-dev-build-ts [options] +yarn pezkuwi-dev-build-ts [options] ``` -## polkadot-dev-circular +## pezkuwi-dev-circular **Summary**: This script checks the project for circular dependencies in TypeScript (`.ts`, `.tsx`) files using the `madge` library. It reports any detected circular dependencies and exits with an error if any are found. @@ -92,10 +92,10 @@ This script checks the project for circular dependencies in TypeScript (`.ts`, ` This script does not accept any CLI arguments. ```bash -yarn polkadot-dev-circular +yarn pezkuwi-dev-circular ``` -## polkadot-dev-clean-build +## pezkuwi-dev-clean-build **Summary**: This script removes build artifacts and temporary files from the repository. It targets directories like `build` and files such as `tsconfig.*.tsbuildinfo`, ensuring a clean workspace for fresh builds. @@ -105,10 +105,10 @@ This script removes build artifacts and temporary files from the repository. It This script does not accept any CLI arguments. ```bash -yarn polkadot-dev-clean-build +yarn pezkuwi-dev-clean-build ``` -## polkadot-dev-contrib +## pezkuwi-dev-contrib **Summary**: This script generates a `CONTRIBUTORS` file by aggregating and listing all contributors to the repository based on the Git commit history. It excludes bot accounts and service-related commits (e.g., GitHub Actions, Travis CI). The output includes the number of contributions, contributor names, and their most recent commit hash. @@ -118,10 +118,10 @@ This script generates a `CONTRIBUTORS` file by aggregating and listing all contr This script does not accept any CLI arguments. ```bash -yarn polkadot-dev-contrib +yarn pezkuwi-dev-contrib ``` -## polkadot-dev-copy-dir +## pezkuwi-dev-copy-dir **Summary**: This script copies directories from specified source paths to a destination path. It supports options to change the working directory and to flatten the directory structure during copying. @@ -137,12 +137,12 @@ This script copies directories from specified source paths to a destination path ### Usage ```bash -yarn polkadot-dev-copy-dir [options] ... +yarn pezkuwi-dev-copy-dir [options] ... ``` - ``: One or more source directories to copy. - ``: Destination directory for the copied files. -## polkadot-dev-copy-to +## pezkuwi-dev-copy-to **Summary**: This script copies the `build` output and `node_modules` of all packages in the repository to a specified destination directory. It ensures the destination `node_modules` folder exists and is up-to-date. @@ -155,10 +155,10 @@ This script copies the `build` output and `node_modules` of all packages in the ### Usage ```bash -yarn polkadot-dev-copy-to +yarn pezkuwi-dev-copy-to ``` -## polkadot-dev-deno-map +## pezkuwi-dev-deno-map **Summary**: This script generates a `mod.ts` file and an `import_map.json` file for Deno compatibility. It exports all packages with a `mod.ts` file in their `src` directory and maps their paths for use in Deno. @@ -175,7 +175,7 @@ This script generates a `mod.ts` file and an `import_map.json` file for Deno com This script does not accept any CLI arguments. -## polkadot-dev-run-lint +## pezkuwi-dev-run-lint **Summary**: This script runs linting and TypeScript checks on the repository. It uses `eslint` for code linting and `tsc` for TypeScript type checking. Specific checks can be skipped using CLI arguments. @@ -191,10 +191,10 @@ This script runs linting and TypeScript checks on the repository. It uses `eslin ### Usage ```bash -yarn polkadot-dev-run-lint [options] +yarn pezkuwi-dev-run-lint [options] ``` -## polkadot-dev-run-node-ts +## pezkuwi-dev-run-node-ts **Summary**: This script executes a Node.js script with TypeScript support, using the `@pezkuwi/dev-ts/cached` loader by default. It dynamically handles global and local loaders and allows for additional Node.js flags to be passed. @@ -217,7 +217,7 @@ This script executes a Node.js script with TypeScript support, using the `@pezku ### Usage ```bash -yarn polkadot-dev-run-node-ts