mirror of
https://github.com/pezkuwichain/pezkuwi-dev.git
synced 2026-04-21 22:37:58 +00:00
fix: update header pattern to allow 'authors & contributors' suffix
This commit is contained in:
+2
-2
@@ -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');
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
+14
-14
@@ -1,36 +1,36 @@
|
||||
{
|
||||
"author": "Pezkuwi Team <team@pezkuwichain.io>",
|
||||
"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",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
{
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"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"
|
||||
|
||||
Vendored
+2
-2
@@ -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 = {
|
||||
|
||||
Vendored
+1
-1
@@ -53,7 +53,7 @@ function extendMock <F extends AnyFn> (mocked: WithMock<F>) {
|
||||
/**
|
||||
* 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 {
|
||||
|
||||
@@ -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 = {};
|
||||
|
||||
@@ -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' };
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
{
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"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",
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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<string, unknown>, 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)
|
||||
|
||||
@@ -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' };
|
||||
|
||||
@@ -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
|
||||
|
||||
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||
@@ -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,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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<string, unknown>, 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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
+44
-44
@@ -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] <source>... <destination>
|
||||
yarn pezkuwi-dev-copy-dir [options] <source>... <destination>
|
||||
```
|
||||
- `<source>`: One or more source directories to copy.
|
||||
- `<destination>`: 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 <destination>
|
||||
yarn pezkuwi-dev-copy-to <destination>
|
||||
```
|
||||
|
||||
## 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 <script> [nodeFlags...] [args...]
|
||||
yarn pezkuwi-dev-run-node-ts <script> [nodeFlags...] [args...]
|
||||
```
|
||||
|
||||
Notes:
|
||||
@@ -228,7 +228,7 @@ Notes:
|
||||
3. Local loaders are appended.
|
||||
- Global and local loaders can be mixed for flexible runtime configurations.
|
||||
|
||||
## polkadot-dev-run-test
|
||||
## pezkuwi-dev-run-test
|
||||
|
||||
**Summary**:
|
||||
This script runs test files in the repository, filtering by file extensions and optional path-based filters. It supports both Node.js and browser environments, custom flags, and development-specific configurations.
|
||||
@@ -275,7 +275,7 @@ The script searches for test files with the following extensions:
|
||||
### Usage
|
||||
|
||||
```bash
|
||||
yarn polkadot-dev-run-test [options] [filters...]
|
||||
yarn pezkuwi-dev-run-test [options] [filters...]
|
||||
```
|
||||
|
||||
### Behavior
|
||||
@@ -292,7 +292,7 @@ If no matching files are found, the script exits with a fatal error.
|
||||
- **Development Mode:**
|
||||
In development mode, local build paths are used for test and TypeScript loaders.
|
||||
|
||||
## polkadot-dev-version
|
||||
## pezkuwi-dev-version
|
||||
|
||||
**Summary**:
|
||||
This script automates the version bump process for a package or a monorepo. It updates the `version` field in `package.json` files and synchronizes dependency versions across workspaces. It supports major, minor, patch, and pre-release version bumps.
|
||||
@@ -323,10 +323,10 @@ This script automates the version bump process for a package or a monorepo. It u
|
||||
### Usage
|
||||
|
||||
```bash
|
||||
yarn polkadot-dev-version <type>
|
||||
yarn pezkuwi-dev-version <type>
|
||||
```
|
||||
|
||||
## polkadot-dev-yarn-only
|
||||
## pezkuwi-dev-yarn-only
|
||||
|
||||
|
||||
**Summary**:
|
||||
@@ -343,10 +343,10 @@ This script ensures that `yarn` is being used as the package manager. It exits w
|
||||
### Usage
|
||||
|
||||
```bash
|
||||
yarn polkadot-dev-yarn-only
|
||||
yarn pezkuwi-dev-yarn-only
|
||||
```
|
||||
|
||||
## polkadot-exec-eslint
|
||||
## pezkuwi-exec-eslint
|
||||
|
||||
**Summary**:
|
||||
This script runs the ESLint binary to lint JavaScript and TypeScript files in the project. It uses the ESLint installation local to the project.
|
||||
@@ -362,14 +362,14 @@ This script runs the ESLint binary to lint JavaScript and TypeScript files in th
|
||||
### Usage
|
||||
|
||||
```bash
|
||||
yarn polkadot-exec-eslint [eslint-arguments]
|
||||
yarn pezkuwi-exec-eslint [eslint-arguments]
|
||||
```
|
||||
|
||||
Notes
|
||||
- This script ensures that the locally installed version of ESLint is used, avoiding conflicts with global installations.
|
||||
- All standard ESLint CLI options can be passed directly to the script.
|
||||
|
||||
## polkadot-exec-ghpages
|
||||
## pezkuwi-exec-ghpages
|
||||
|
||||
**Summary**:
|
||||
This script acts as a wrapper for the `gh-pages` tool, which is used to publish content to a project's GitHub Pages branch.
|
||||
@@ -388,10 +388,10 @@ This script acts as a wrapper for the `gh-pages` tool, which is used to publish
|
||||
### Usage
|
||||
|
||||
```bash
|
||||
yarn polkadot-exec-ghpages [gh-pages-arguments]
|
||||
yarn pezkuwi-exec-ghpages [gh-pages-arguments]
|
||||
```
|
||||
|
||||
## polkadot-exec-ghrelease
|
||||
## pezkuwi-exec-ghrelease
|
||||
|
||||
**Summary**:
|
||||
This script is a wrapper for the `gh-release` tool, used to create GitHub releases directly from the command line.
|
||||
@@ -407,10 +407,10 @@ This script is a wrapper for the `gh-release` tool, used to create GitHub releas
|
||||
### Usage
|
||||
|
||||
```bash
|
||||
yarn polkadot-exec-ghrelease [gh-release-arguments]
|
||||
yarn pezkuwi-exec-ghrelease [gh-release-arguments]
|
||||
```
|
||||
|
||||
## polkadot-exec-node-test
|
||||
## pezkuwi-exec-node-test
|
||||
|
||||
**Summary**:
|
||||
This script is designed to execute Node.js tests using the `node:test` module. It includes support for diagnostic reporting, customizable logging, and execution controls like bail and timeout.
|
||||
@@ -453,10 +453,10 @@ This script is designed to execute Node.js tests using the `node:test` module. I
|
||||
### Usage:
|
||||
|
||||
```bash
|
||||
yarn polkadot-exec-node-test [options] <files...>
|
||||
yarn pezkuwi-exec-node-test [options] <files...>
|
||||
```
|
||||
|
||||
## polkadot-exec-rollup
|
||||
## pezkuwi-exec-rollup
|
||||
|
||||
**Summary**:
|
||||
This script serves as a wrapper for the Rollup CLI, allowing users to execute Rollup commands via Node.js. It simplifies access to the Rollup binary and forwards all provided arguments directly to the Rollup CLI.
|
||||
@@ -483,10 +483,10 @@ Refer to the [Rollup CLI documentation](https://rollupjs.org/guide/en/#command-l
|
||||
### Usage
|
||||
|
||||
```bash
|
||||
yarn polkadot-exec-rollup [options]
|
||||
yarn pezkuwi-exec-rollup [options]
|
||||
```
|
||||
|
||||
## polkadot-exec-tsc
|
||||
## pezkuwi-exec-tsc
|
||||
|
||||
**Summary**:
|
||||
This script executes the TypeScript Compiler (TSC) directly by importing the TypeScript library, enabling developers to compile TypeScript files with the same options available in the native `tsc` CLI.
|
||||
@@ -513,7 +513,7 @@ Refer to the official [TypeScript Compiler Options](https://www.typescriptlang.o
|
||||
### CLI Usage
|
||||
|
||||
```bash
|
||||
yarn polkadot-exec-tsc [options]
|
||||
yarn pezkuwi-exec-tsc [options]
|
||||
```
|
||||
|
||||
##
|
||||
@@ -543,5 +543,5 @@ Refer to the official [Webpack CLI Options](https://webpack.js.org/api/cli/) for
|
||||
## CLI Usage
|
||||
|
||||
```bash
|
||||
yarn polkadot-exec-webpack [options]
|
||||
yarn pezkuwi-exec-webpack [options]
|
||||
```
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/dev authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// @ts-expect-error No definition for this one
|
||||
|
||||
@@ -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 JSON5 from 'json5';
|
||||
@@ -39,8 +39,8 @@ function getHeaderPattern () {
|
||||
const packages = paths.reduce((packages, k) => {
|
||||
const [pd, pk] = k.split('/');
|
||||
|
||||
if (pd !== '@polkadot' || !pk) {
|
||||
throw new Error(`Non @polkadot path in ${tsPath}`);
|
||||
if (pd !== '@pezkuwi' || !pk) {
|
||||
throw new Error(`Non @pezkuwi path in ${tsPath}`);
|
||||
}
|
||||
|
||||
return packages.length
|
||||
@@ -54,7 +54,7 @@ function getHeaderPattern () {
|
||||
years.push(`${i}`);
|
||||
}
|
||||
|
||||
return ` Copyright 20(${years.join('|')})(-${fullyear})? @polkadot/(${packages})`;
|
||||
return ` Copyright 20(${years.join('|')})(-${fullyear})? @pezkuwi/(${packages})( authors & contributors)?`;
|
||||
}
|
||||
|
||||
export const overrideAll = {
|
||||
@@ -140,10 +140,10 @@ export const overrideAll = {
|
||||
'simple-import-sort/imports': ['error', {
|
||||
groups: [
|
||||
['^\u0000'], // all side-effects (0 at start)
|
||||
['\u0000$', '^@polkadot.*\u0000$', '^\\..*\u0000$'], // types (0 at end)
|
||||
['\u0000$', '^@pezkuwi.*\u0000$', '^\\..*\u0000$'], // types (0 at end)
|
||||
// ['^node:'], // node
|
||||
['^[^/\\.]'], // non-polkadot
|
||||
['^@polkadot'], // polkadot
|
||||
['^[^/\\.]'], // non-pezkuwi
|
||||
['^@pezkuwi'], // pezkuwi
|
||||
['^\\.\\.(?!/?$)', '^\\.\\./?$', '^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'] // local (. last)
|
||||
]
|
||||
}],
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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 pluginAlias from '@rollup/plugin-alias';
|
||||
@@ -20,7 +20,7 @@ import pluginCleanup from 'rollup-plugin-cleanup';
|
||||
* @returns {string}
|
||||
*/
|
||||
function sanitizePkg (pkg) {
|
||||
return pkg.replace('@polkadot/', '');
|
||||
return pkg.replace('@pezkuwi/', '');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -28,7 +28,7 @@ function sanitizePkg (pkg) {
|
||||
* @returns {string}
|
||||
*/
|
||||
function createName (input) {
|
||||
return `polkadot-${sanitizePkg(input)}`
|
||||
return `pezkuwi-${sanitizePkg(input)}`
|
||||
.toLowerCase()
|
||||
.replace(/[^a-zA-Z0-9]+(.)/g, (_, c) => c.toUpperCase());
|
||||
}
|
||||
@@ -63,7 +63,7 @@ export function createOutput (pkg, external, globals) {
|
||||
const name = sanitizePkg(pkg);
|
||||
|
||||
return {
|
||||
file: `packages/${name}/build/bundle-polkadot-${name}.js`,
|
||||
file: `packages/${name}/build/bundle-pezkuwi-${name}.js`,
|
||||
format: 'umd',
|
||||
generatedCode: {
|
||||
constBindings: true
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"extends": "@tsconfig/strictest/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
/**
|
||||
* Aligns with packages/dev/scripts/polkadot-dev-build-ts & packages/dev-ts/src/loader
|
||||
* Aligns with packages/dev/scripts/pezkuwi-dev-build-ts & packages/dev-ts/src/loader
|
||||
* (target here is specifically tied to the minimum supported Node version)
|
||||
*/
|
||||
"module": "nodenext",
|
||||
@@ -14,7 +14,7 @@
|
||||
"target": "es2022",
|
||||
|
||||
/**
|
||||
* Specific compilation configs for polkadot-js projects as it is used
|
||||
* Specific compilation configs for pezkuwi-js projects as it is used
|
||||
* (we only compile *.d.ts via the tsc command-line)
|
||||
*/
|
||||
"declaration": true,
|
||||
|
||||
@@ -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 = {
|
||||
@@ -11,7 +11,7 @@ module.exports = {
|
||||
includeDeclarations: false,
|
||||
module: 'commonjs',
|
||||
moduleResolution: 'node',
|
||||
name: 'polkadot{.js}',
|
||||
name: 'pezkuwi{.js}',
|
||||
out: 'docs',
|
||||
stripInternal: 'true',
|
||||
theme: 'markdown'
|
||||
|
||||
+27
-27
@@ -1,45 +1,45 @@
|
||||
{
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"bugs": "https://github.com/pezkuwi/dev/issues",
|
||||
"bugs": "https://github.com/pezkuwichain/pezkuwi-dev/issues",
|
||||
"description": "A collection of shared CI scripts and development environment used by @pezkuwi projects",
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/pezkuwi/dev/tree/master/packages/dev#readme",
|
||||
"homepage": "https://github.com/pezkuwichain/pezkuwi-dev/tree/master/packages/dev#readme",
|
||||
"license": "Apache-2.0",
|
||||
"name": "@pezkuwi/dev",
|
||||
"repository": {
|
||||
"directory": "packages/dev",
|
||||
"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",
|
||||
"bin": {
|
||||
"polkadot-ci-ghact-build": "./scripts/polkadot-ci-ghact-build.mjs",
|
||||
"polkadot-ci-ghact-docs": "./scripts/polkadot-ci-ghact-docs.mjs",
|
||||
"polkadot-ci-ghpages-force": "./scripts/polkadot-ci-ghpages-force.mjs",
|
||||
"polkadot-dev-build-docs": "./scripts/polkadot-dev-build-docs.mjs",
|
||||
"polkadot-dev-build-ts": "./scripts/polkadot-dev-build-ts.mjs",
|
||||
"polkadot-dev-circular": "./scripts/polkadot-dev-circular.mjs",
|
||||
"polkadot-dev-clean-build": "./scripts/polkadot-dev-clean-build.mjs",
|
||||
"polkadot-dev-contrib": "./scripts/polkadot-dev-contrib.mjs",
|
||||
"polkadot-dev-copy-dir": "./scripts/polkadot-dev-copy-dir.mjs",
|
||||
"polkadot-dev-copy-to": "./scripts/polkadot-dev-copy-to.mjs",
|
||||
"polkadot-dev-deno-map": "./scripts/polkadot-dev-deno-map.mjs",
|
||||
"polkadot-dev-run-lint": "./scripts/polkadot-dev-run-lint.mjs",
|
||||
"polkadot-dev-run-node-ts": "./scripts/polkadot-dev-run-node-ts.mjs",
|
||||
"polkadot-dev-run-test": "./scripts/polkadot-dev-run-test.mjs",
|
||||
"polkadot-dev-version": "./scripts/polkadot-dev-version.mjs",
|
||||
"polkadot-dev-yarn-only": "./scripts/polkadot-dev-yarn-only.mjs",
|
||||
"polkadot-exec-eslint": "./scripts/polkadot-exec-eslint.mjs",
|
||||
"polkadot-exec-ghpages": "./scripts/polkadot-exec-ghpages.mjs",
|
||||
"polkadot-exec-ghrelease": "./scripts/polkadot-exec-ghrelease.mjs",
|
||||
"polkadot-exec-node-test": "./scripts/polkadot-exec-node-test.mjs",
|
||||
"polkadot-exec-rollup": "./scripts/polkadot-exec-rollup.mjs",
|
||||
"polkadot-exec-tsc": "./scripts/polkadot-exec-tsc.mjs",
|
||||
"polkadot-exec-webpack": "./scripts/polkadot-exec-webpack.mjs"
|
||||
"pezkuwi-ci-ghact-build": "./scripts/pezkuwi-ci-ghact-build.mjs",
|
||||
"pezkuwi-ci-ghact-docs": "./scripts/pezkuwi-ci-ghact-docs.mjs",
|
||||
"pezkuwi-ci-ghpages-force": "./scripts/pezkuwi-ci-ghpages-force.mjs",
|
||||
"pezkuwi-dev-build-docs": "./scripts/pezkuwi-dev-build-docs.mjs",
|
||||
"pezkuwi-dev-build-ts": "./scripts/pezkuwi-dev-build-ts.mjs",
|
||||
"pezkuwi-dev-circular": "./scripts/pezkuwi-dev-circular.mjs",
|
||||
"pezkuwi-dev-clean-build": "./scripts/pezkuwi-dev-clean-build.mjs",
|
||||
"pezkuwi-dev-contrib": "./scripts/pezkuwi-dev-contrib.mjs",
|
||||
"pezkuwi-dev-copy-dir": "./scripts/pezkuwi-dev-copy-dir.mjs",
|
||||
"pezkuwi-dev-copy-to": "./scripts/pezkuwi-dev-copy-to.mjs",
|
||||
"pezkuwi-dev-deno-map": "./scripts/pezkuwi-dev-deno-map.mjs",
|
||||
"pezkuwi-dev-run-lint": "./scripts/pezkuwi-dev-run-lint.mjs",
|
||||
"pezkuwi-dev-run-node-ts": "./scripts/pezkuwi-dev-run-node-ts.mjs",
|
||||
"pezkuwi-dev-run-test": "./scripts/pezkuwi-dev-run-test.mjs",
|
||||
"pezkuwi-dev-version": "./scripts/pezkuwi-dev-version.mjs",
|
||||
"pezkuwi-dev-yarn-only": "./scripts/pezkuwi-dev-yarn-only.mjs",
|
||||
"pezkuwi-exec-eslint": "./scripts/pezkuwi-exec-eslint.mjs",
|
||||
"pezkuwi-exec-ghpages": "./scripts/pezkuwi-exec-ghpages.mjs",
|
||||
"pezkuwi-exec-ghrelease": "./scripts/pezkuwi-exec-ghrelease.mjs",
|
||||
"pezkuwi-exec-node-test": "./scripts/pezkuwi-exec-node-test.mjs",
|
||||
"pezkuwi-exec-rollup": "./scripts/pezkuwi-exec-rollup.mjs",
|
||||
"pezkuwi-exec-tsc": "./scripts/pezkuwi-exec-tsc.mjs",
|
||||
"pezkuwi-exec-webpack": "./scripts/pezkuwi-exec-webpack.mjs"
|
||||
},
|
||||
"exports": {
|
||||
"./config/eslint": "./config/eslint.js",
|
||||
|
||||
+12
-12
@@ -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');
|
||||
+3
-3
@@ -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);
|
||||
+2
-2
@@ -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');
|
||||
+2
-2
@@ -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');
|
||||
|
||||
+22
-22
@@ -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) {
|
||||
+2
-2
@@ -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'] });
|
||||
|
||||
+2
-2
@@ -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
|
||||
+2
-2
@@ -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}`);
|
||||
+2
-2
@@ -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');
|
||||
+2
-2
@@ -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');
|
||||
+2
-2
@@ -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`);
|
||||
}
|
||||
|
||||
+4
-4
@@ -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' : ''}`);
|
||||
}
|
||||
+2
-2
@@ -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(' '));
|
||||
+6
-6
@@ -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);
|
||||
}
|
||||
+2
-2
@@ -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
-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 process from 'node:process';
|
||||
+1
-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 { importRelative } from './util.mjs';
|
||||
+1
-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 { importRelative } from './util.mjs';
|
||||
+1
-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 { importRelative } from './util.mjs';
|
||||
+2
-2
@@ -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
-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 { execViaNode } from './util.mjs';
|
||||
+1
-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 { importDirect } from './util.mjs';
|
||||
+1
-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 { importDirect } from './util.mjs';
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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 = { foo: 'bar' };
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/dev authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export default [];
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
export {};
|
||||
|
||||
throw new Error('@pezkuwi/dev is not meant to be imported via root. Rather if provides a set of shared dependencies, a collection of scripts, base configs and some loaders accessed via the scripts. It is only meant to be used as a shared resource by all @polkadot/* projects');
|
||||
throw new Error('@pezkuwi/dev is not meant to be imported via root. Rather if provides a set of shared dependencies, a collection of scripts, base configs and some loaders accessed via the scripts. It is only meant to be used as a shared resource by all @pezkuwi/* projects');
|
||||
|
||||
@@ -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 './index.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/dev authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export * from './rootJs/index.js';
|
||||
|
||||
@@ -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 type * as testRoot from './root.js';
|
||||
|
||||
@@ -30,10 +30,10 @@ describe('as-built output checks', (): void => {
|
||||
|
||||
it('has the static files copied (non-duplicated)', (): void => {
|
||||
expect(
|
||||
fs.existsSync(path.join(buildRoot, 'rootStatic/kusama.svg'))
|
||||
fs.existsSync(path.join(buildRoot, 'rootStatic/zagros.svg'))
|
||||
).toBe(true);
|
||||
expect(
|
||||
fs.existsSync(path.join(buildRoot, 'cjs/rootStatic/kusama.svg'))
|
||||
fs.existsSync(path.join(buildRoot, 'cjs/rootStatic/zagros.svg'))
|
||||
).toBe(false);
|
||||
});
|
||||
|
||||
@@ -136,7 +136,7 @@ describe('as-built output checks', (): void => {
|
||||
expect(
|
||||
fs
|
||||
.readFileSync(path.join(denoRoot, 'rootJs/augmented.ts'))
|
||||
.includes("declare module 'https://deno.land/x/polkadot/dev/types.ts' {")
|
||||
.includes("declare module 'https://deno.land/x/pezkuwi/dev/types.ts' {")
|
||||
).toBe(true);
|
||||
});
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/dev authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export class Clazz {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
||||
// Auto-generated via `yarn pezkuwi-types-from-chain`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
/** This tests augmentation outputs, e.g. as used in the polkadot-js/api */
|
||||
/** This tests augmentation outputs, e.g. as used in the pezkuwi-js/api */
|
||||
|
||||
export interface Something {
|
||||
bar: string;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/dev authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/dev authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/** This file should not be in the compiled output */
|
||||
|
||||
@@ -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 * as testRoot from './root.js';
|
||||
|
||||
|
Before Width: | Height: | Size: 912 B After Width: | Height: | Size: 912 B |
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/dev authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/dev authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export type EchoString = string;
|
||||
|
||||
+2
-2
@@ -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';
|
||||
@@ -151,7 +151,7 @@ function findPackages (dir) {
|
||||
|
||||
// for dev we want to pull through the additionals, i.e. we want to
|
||||
// align deps found in dev/others with those in dev as master
|
||||
if (pkgJson.name === '@polkadot/dev') {
|
||||
if (pkgJson.name === '@pezkuwi/dev') {
|
||||
PKG_PATHS.forEach((depPath) => {
|
||||
Object
|
||||
.entries(pkgJson[depPath] || {})
|
||||
|
||||
Reference in New Issue
Block a user