@pezkuwi/dev 0.84.2 → 0.85.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -44
- package/config/eslint.js +1 -1
- package/config/eslint.rules.js +7 -7
- package/config/prettier.cjs +1 -1
- package/config/rollup.js +4 -4
- package/config/tsconfig.json +2 -2
- package/config/typedoc.cjs +2 -2
- package/package.json +24 -24
- package/scripts/{polkadot-ci-ghact-build.mjs → pezkuwi-ci-ghact-build.mjs} +12 -12
- package/scripts/{polkadot-ci-ghact-docs.mjs → pezkuwi-ci-ghact-docs.mjs} +3 -3
- package/scripts/{polkadot-ci-ghpages-force.mjs → pezkuwi-ci-ghpages-force.mjs} +2 -2
- package/scripts/{polkadot-dev-build-docs.mjs → pezkuwi-dev-build-docs.mjs} +2 -2
- package/scripts/{polkadot-dev-build-ts.mjs → pezkuwi-dev-build-ts.mjs} +22 -22
- package/scripts/{polkadot-dev-circular.mjs → pezkuwi-dev-circular.mjs} +2 -2
- package/scripts/{polkadot-dev-clean-build.mjs → pezkuwi-dev-clean-build.mjs} +2 -2
- package/scripts/{polkadot-dev-contrib.mjs → pezkuwi-dev-contrib.mjs} +2 -2
- package/scripts/{polkadot-dev-copy-dir.mjs → pezkuwi-dev-copy-dir.mjs} +2 -2
- package/scripts/{polkadot-dev-copy-to.mjs → pezkuwi-dev-copy-to.mjs} +2 -2
- package/scripts/{polkadot-dev-deno-map.mjs → pezkuwi-dev-deno-map.mjs} +2 -2
- package/scripts/{polkadot-dev-run-lint.mjs → pezkuwi-dev-run-lint.mjs} +4 -4
- package/scripts/{polkadot-dev-run-node-ts.mjs → pezkuwi-dev-run-node-ts.mjs} +2 -2
- package/scripts/{polkadot-dev-run-test.mjs → pezkuwi-dev-run-test.mjs} +6 -6
- package/scripts/{polkadot-dev-version.mjs → pezkuwi-dev-version.mjs} +2 -2
- package/scripts/{polkadot-dev-yarn-only.mjs → pezkuwi-dev-yarn-only.mjs} +1 -1
- package/scripts/{polkadot-exec-eslint.mjs → pezkuwi-exec-eslint.mjs} +1 -1
- package/scripts/{polkadot-exec-ghpages.mjs → pezkuwi-exec-ghpages.mjs} +1 -1
- package/scripts/{polkadot-exec-ghrelease.mjs → pezkuwi-exec-ghrelease.mjs} +1 -1
- package/scripts/{polkadot-exec-node-test.mjs → pezkuwi-exec-node-test.mjs} +2 -2
- package/scripts/{polkadot-exec-rollup.mjs → pezkuwi-exec-rollup.mjs} +1 -1
- package/scripts/{polkadot-exec-tsc.mjs → pezkuwi-exec-tsc.mjs} +1 -1
- package/scripts/{polkadot-exec-webpack.mjs → pezkuwi-exec-webpack.mjs} +1 -1
- package/scripts/util.mjs +8 -8
- package/tsconfig.build.tsbuildinfo +1 -0
- package/tsconfig.config.tsbuildinfo +1 -0
- package/tsconfig.scripts.tsbuildinfo +1 -0
- package/tsconfig.spec.tsbuildinfo +1 -0
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ A collection of shared CI scripts and development environment (configuration, de
|
|
|
4
4
|
|
|
5
5
|
# Scripts
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## pezkuwi-ci-ghact-build
|
|
8
8
|
|
|
9
9
|
**Summary**:
|
|
10
10
|
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
|
|
|
17
17
|
### Usage
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
yarn
|
|
20
|
+
yarn pezkuwi-ci-ghact-build [options]
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
##
|
|
23
|
+
## pezkuwi-ci-ghact-docs
|
|
24
24
|
|
|
25
25
|
**Summary**:
|
|
26
26
|
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.
|
|
|
32
32
|
### Usage
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
|
-
yarn
|
|
35
|
+
yarn pezkuwi-ci-ghact-docs
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
##
|
|
38
|
+
## pezkuwi-ci-ghpages-force
|
|
39
39
|
|
|
40
40
|
**Summary**:
|
|
41
41
|
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.
|
|
|
47
47
|
### Usage
|
|
48
48
|
|
|
49
49
|
```bash
|
|
50
|
-
yarn
|
|
50
|
+
yarn pezkuwi-ci-ghpages-force
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
-
##
|
|
53
|
+
## pezkuwi-dev-build-docs
|
|
54
54
|
|
|
55
55
|
**Summary**:
|
|
56
56
|
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.
|
|
|
62
62
|
### Usage
|
|
63
63
|
|
|
64
64
|
```bash
|
|
65
|
-
yarn
|
|
65
|
+
yarn pezkuwi-dev-build-docs
|
|
66
66
|
```
|
|
67
67
|
|
|
68
|
-
##
|
|
68
|
+
## pezkuwi-dev-build-ts
|
|
69
69
|
|
|
70
70
|
**Summary**:
|
|
71
71
|
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
|
|
|
79
79
|
### Usage
|
|
80
80
|
|
|
81
81
|
```bash
|
|
82
|
-
yarn
|
|
82
|
+
yarn pezkuwi-dev-build-ts [options]
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
##
|
|
85
|
+
## pezkuwi-dev-circular
|
|
86
86
|
|
|
87
87
|
**Summary**:
|
|
88
88
|
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`, `
|
|
|
92
92
|
This script does not accept any CLI arguments.
|
|
93
93
|
|
|
94
94
|
```bash
|
|
95
|
-
yarn
|
|
95
|
+
yarn pezkuwi-dev-circular
|
|
96
96
|
```
|
|
97
97
|
|
|
98
|
-
##
|
|
98
|
+
## pezkuwi-dev-clean-build
|
|
99
99
|
|
|
100
100
|
**Summary**:
|
|
101
101
|
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
|
|
|
105
105
|
This script does not accept any CLI arguments.
|
|
106
106
|
|
|
107
107
|
```bash
|
|
108
|
-
yarn
|
|
108
|
+
yarn pezkuwi-dev-clean-build
|
|
109
109
|
```
|
|
110
110
|
|
|
111
|
-
##
|
|
111
|
+
## pezkuwi-dev-contrib
|
|
112
112
|
|
|
113
113
|
**Summary**:
|
|
114
114
|
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
|
|
|
118
118
|
This script does not accept any CLI arguments.
|
|
119
119
|
|
|
120
120
|
```bash
|
|
121
|
-
yarn
|
|
121
|
+
yarn pezkuwi-dev-contrib
|
|
122
122
|
```
|
|
123
123
|
|
|
124
|
-
##
|
|
124
|
+
## pezkuwi-dev-copy-dir
|
|
125
125
|
|
|
126
126
|
**Summary**:
|
|
127
127
|
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
|
|
|
137
137
|
### Usage
|
|
138
138
|
|
|
139
139
|
```bash
|
|
140
|
-
yarn
|
|
140
|
+
yarn pezkuwi-dev-copy-dir [options] <source>... <destination>
|
|
141
141
|
```
|
|
142
142
|
- `<source>`: One or more source directories to copy.
|
|
143
143
|
- `<destination>`: Destination directory for the copied files.
|
|
144
144
|
|
|
145
|
-
##
|
|
145
|
+
## pezkuwi-dev-copy-to
|
|
146
146
|
|
|
147
147
|
**Summary**:
|
|
148
148
|
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
|
|
|
155
155
|
### Usage
|
|
156
156
|
|
|
157
157
|
```bash
|
|
158
|
-
yarn
|
|
158
|
+
yarn pezkuwi-dev-copy-to <destination>
|
|
159
159
|
```
|
|
160
160
|
|
|
161
|
-
##
|
|
161
|
+
## pezkuwi-dev-deno-map
|
|
162
162
|
|
|
163
163
|
**Summary**:
|
|
164
164
|
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
|
|
|
175
175
|
|
|
176
176
|
This script does not accept any CLI arguments.
|
|
177
177
|
|
|
178
|
-
##
|
|
178
|
+
## pezkuwi-dev-run-lint
|
|
179
179
|
|
|
180
180
|
**Summary**:
|
|
181
181
|
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
|
|
|
191
191
|
### Usage
|
|
192
192
|
|
|
193
193
|
```bash
|
|
194
|
-
yarn
|
|
194
|
+
yarn pezkuwi-dev-run-lint [options]
|
|
195
195
|
```
|
|
196
196
|
|
|
197
|
-
##
|
|
197
|
+
## pezkuwi-dev-run-node-ts
|
|
198
198
|
|
|
199
199
|
**Summary**:
|
|
200
200
|
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
|
|
|
217
217
|
### Usage
|
|
218
218
|
|
|
219
219
|
```bash
|
|
220
|
-
yarn
|
|
220
|
+
yarn pezkuwi-dev-run-node-ts <script> [nodeFlags...] [args...]
|
|
221
221
|
```
|
|
222
222
|
|
|
223
223
|
Notes:
|
|
@@ -228,7 +228,7 @@ Notes:
|
|
|
228
228
|
3. Local loaders are appended.
|
|
229
229
|
- Global and local loaders can be mixed for flexible runtime configurations.
|
|
230
230
|
|
|
231
|
-
##
|
|
231
|
+
## pezkuwi-dev-run-test
|
|
232
232
|
|
|
233
233
|
**Summary**:
|
|
234
234
|
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:
|
|
|
275
275
|
### Usage
|
|
276
276
|
|
|
277
277
|
```bash
|
|
278
|
-
yarn
|
|
278
|
+
yarn pezkuwi-dev-run-test [options] [filters...]
|
|
279
279
|
```
|
|
280
280
|
|
|
281
281
|
### Behavior
|
|
@@ -292,7 +292,7 @@ If no matching files are found, the script exits with a fatal error.
|
|
|
292
292
|
- **Development Mode:**
|
|
293
293
|
In development mode, local build paths are used for test and TypeScript loaders.
|
|
294
294
|
|
|
295
|
-
##
|
|
295
|
+
## pezkuwi-dev-version
|
|
296
296
|
|
|
297
297
|
**Summary**:
|
|
298
298
|
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
|
|
|
323
323
|
### Usage
|
|
324
324
|
|
|
325
325
|
```bash
|
|
326
|
-
yarn
|
|
326
|
+
yarn pezkuwi-dev-version <type>
|
|
327
327
|
```
|
|
328
328
|
|
|
329
|
-
##
|
|
329
|
+
## pezkuwi-dev-yarn-only
|
|
330
330
|
|
|
331
331
|
|
|
332
332
|
**Summary**:
|
|
@@ -343,10 +343,10 @@ This script ensures that `yarn` is being used as the package manager. It exits w
|
|
|
343
343
|
### Usage
|
|
344
344
|
|
|
345
345
|
```bash
|
|
346
|
-
yarn
|
|
346
|
+
yarn pezkuwi-dev-yarn-only
|
|
347
347
|
```
|
|
348
348
|
|
|
349
|
-
##
|
|
349
|
+
## pezkuwi-exec-eslint
|
|
350
350
|
|
|
351
351
|
**Summary**:
|
|
352
352
|
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
|
|
|
362
362
|
### Usage
|
|
363
363
|
|
|
364
364
|
```bash
|
|
365
|
-
yarn
|
|
365
|
+
yarn pezkuwi-exec-eslint [eslint-arguments]
|
|
366
366
|
```
|
|
367
367
|
|
|
368
368
|
Notes
|
|
369
369
|
- This script ensures that the locally installed version of ESLint is used, avoiding conflicts with global installations.
|
|
370
370
|
- All standard ESLint CLI options can be passed directly to the script.
|
|
371
371
|
|
|
372
|
-
##
|
|
372
|
+
## pezkuwi-exec-ghpages
|
|
373
373
|
|
|
374
374
|
**Summary**:
|
|
375
375
|
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
|
|
|
388
388
|
### Usage
|
|
389
389
|
|
|
390
390
|
```bash
|
|
391
|
-
yarn
|
|
391
|
+
yarn pezkuwi-exec-ghpages [gh-pages-arguments]
|
|
392
392
|
```
|
|
393
393
|
|
|
394
|
-
##
|
|
394
|
+
## pezkuwi-exec-ghrelease
|
|
395
395
|
|
|
396
396
|
**Summary**:
|
|
397
397
|
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
|
|
|
407
407
|
### Usage
|
|
408
408
|
|
|
409
409
|
```bash
|
|
410
|
-
yarn
|
|
410
|
+
yarn pezkuwi-exec-ghrelease [gh-release-arguments]
|
|
411
411
|
```
|
|
412
412
|
|
|
413
|
-
##
|
|
413
|
+
## pezkuwi-exec-node-test
|
|
414
414
|
|
|
415
415
|
**Summary**:
|
|
416
416
|
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
|
|
|
453
453
|
### Usage:
|
|
454
454
|
|
|
455
455
|
```bash
|
|
456
|
-
yarn
|
|
456
|
+
yarn pezkuwi-exec-node-test [options] <files...>
|
|
457
457
|
```
|
|
458
458
|
|
|
459
|
-
##
|
|
459
|
+
## pezkuwi-exec-rollup
|
|
460
460
|
|
|
461
461
|
**Summary**:
|
|
462
462
|
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
|
|
|
483
483
|
### Usage
|
|
484
484
|
|
|
485
485
|
```bash
|
|
486
|
-
yarn
|
|
486
|
+
yarn pezkuwi-exec-rollup [options]
|
|
487
487
|
```
|
|
488
488
|
|
|
489
|
-
##
|
|
489
|
+
## pezkuwi-exec-tsc
|
|
490
490
|
|
|
491
491
|
**Summary**:
|
|
492
492
|
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
|
|
|
513
513
|
### CLI Usage
|
|
514
514
|
|
|
515
515
|
```bash
|
|
516
|
-
yarn
|
|
516
|
+
yarn pezkuwi-exec-tsc [options]
|
|
517
517
|
```
|
|
518
518
|
|
|
519
519
|
##
|
|
@@ -543,5 +543,5 @@ Refer to the official [Webpack CLI Options](https://webpack.js.org/api/cli/) for
|
|
|
543
543
|
## CLI Usage
|
|
544
544
|
|
|
545
545
|
```bash
|
|
546
|
-
yarn
|
|
546
|
+
yarn pezkuwi-exec-webpack [options]
|
|
547
547
|
```
|
package/config/eslint.js
CHANGED
package/config/eslint.rules.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2017-2025 @
|
|
1
|
+
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
|
|
4
4
|
import JSON5 from 'json5';
|
|
@@ -39,8 +39,8 @@ function getHeaderPattern () {
|
|
|
39
39
|
const packages = paths.reduce((packages, k) => {
|
|
40
40
|
const [pd, pk] = k.split('/');
|
|
41
41
|
|
|
42
|
-
if (pd !== '@
|
|
43
|
-
throw new Error(`Non @
|
|
42
|
+
if (pd !== '@pezkuwi' || !pk) {
|
|
43
|
+
throw new Error(`Non @pezkuwi path in ${tsPath}`);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
return packages.length
|
|
@@ -54,7 +54,7 @@ function getHeaderPattern () {
|
|
|
54
54
|
years.push(`${i}`);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
return ` Copyright 20(${years.join('|')})(-${fullyear})? @
|
|
57
|
+
return ` Copyright 20(${years.join('|')})(-${fullyear})? @pezkuwi/(${packages})`;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
export const overrideAll = {
|
|
@@ -140,10 +140,10 @@ export const overrideAll = {
|
|
|
140
140
|
'simple-import-sort/imports': ['error', {
|
|
141
141
|
groups: [
|
|
142
142
|
['^\u0000'], // all side-effects (0 at start)
|
|
143
|
-
['\u0000$', '^@
|
|
143
|
+
['\u0000$', '^@pezkuwi.*\u0000$', '^\\..*\u0000$'], // types (0 at end)
|
|
144
144
|
// ['^node:'], // node
|
|
145
|
-
['^[^/\\.]'], // non-
|
|
146
|
-
['^@
|
|
145
|
+
['^[^/\\.]'], // non-pezkuwi
|
|
146
|
+
['^@pezkuwi'], // pezkuwi
|
|
147
147
|
['^\\.\\.(?!/?$)', '^\\.\\./?$', '^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'] // local (. last)
|
|
148
148
|
]
|
|
149
149
|
}],
|
package/config/prettier.cjs
CHANGED
package/config/rollup.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2017-2025 @
|
|
1
|
+
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
|
|
4
4
|
import pluginAlias from '@rollup/plugin-alias';
|
|
@@ -20,7 +20,7 @@ import pluginCleanup from 'rollup-plugin-cleanup';
|
|
|
20
20
|
* @returns {string}
|
|
21
21
|
*/
|
|
22
22
|
function sanitizePkg (pkg) {
|
|
23
|
-
return pkg.replace('@
|
|
23
|
+
return pkg.replace('@pezkuwi/', '');
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
/**
|
|
@@ -28,7 +28,7 @@ function sanitizePkg (pkg) {
|
|
|
28
28
|
* @returns {string}
|
|
29
29
|
*/
|
|
30
30
|
function createName (input) {
|
|
31
|
-
return `
|
|
31
|
+
return `pezkuwi-${sanitizePkg(input)}`
|
|
32
32
|
.toLowerCase()
|
|
33
33
|
.replace(/[^a-zA-Z0-9]+(.)/g, (_, c) => c.toUpperCase());
|
|
34
34
|
}
|
|
@@ -63,7 +63,7 @@ export function createOutput (pkg, external, globals) {
|
|
|
63
63
|
const name = sanitizePkg(pkg);
|
|
64
64
|
|
|
65
65
|
return {
|
|
66
|
-
file: `packages/${name}/build/bundle-
|
|
66
|
+
file: `packages/${name}/build/bundle-pezkuwi-${name}.js`,
|
|
67
67
|
format: 'umd',
|
|
68
68
|
generatedCode: {
|
|
69
69
|
constBindings: true
|
package/config/tsconfig.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"extends": "@tsconfig/strictest/tsconfig.json",
|
|
7
7
|
"compilerOptions": {
|
|
8
8
|
/**
|
|
9
|
-
* Aligns with packages/dev/scripts/
|
|
9
|
+
* Aligns with packages/dev/scripts/pezkuwi-dev-build-ts & packages/dev-ts/src/loader
|
|
10
10
|
* (target here is specifically tied to the minimum supported Node version)
|
|
11
11
|
*/
|
|
12
12
|
"module": "nodenext",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"target": "es2022",
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* Specific compilation configs for
|
|
17
|
+
* Specific compilation configs for pezkuwi-js projects as it is used
|
|
18
18
|
* (we only compile *.d.ts via the tsc command-line)
|
|
19
19
|
*/
|
|
20
20
|
"declaration": true,
|
package/config/typedoc.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2017-2025 @
|
|
1
|
+
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
|
|
4
4
|
module.exports = {
|
|
@@ -11,7 +11,7 @@ module.exports = {
|
|
|
11
11
|
includeDeclarations: false,
|
|
12
12
|
module: 'commonjs',
|
|
13
13
|
moduleResolution: 'node',
|
|
14
|
-
name: '
|
|
14
|
+
name: 'pezkuwi{.js}',
|
|
15
15
|
out: 'docs',
|
|
16
16
|
stripInternal: 'true',
|
|
17
17
|
theme: 'markdown'
|
package/package.json
CHANGED
|
@@ -15,31 +15,31 @@
|
|
|
15
15
|
},
|
|
16
16
|
"sideEffects": false,
|
|
17
17
|
"type": "module",
|
|
18
|
-
"version": "0.
|
|
18
|
+
"version": "0.85.0",
|
|
19
19
|
"bin": {
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
20
|
+
"pezkuwi-ci-ghact-build": "./scripts/pezkuwi-ci-ghact-build.mjs",
|
|
21
|
+
"pezkuwi-ci-ghact-docs": "./scripts/pezkuwi-ci-ghact-docs.mjs",
|
|
22
|
+
"pezkuwi-ci-ghpages-force": "./scripts/pezkuwi-ci-ghpages-force.mjs",
|
|
23
|
+
"pezkuwi-dev-build-docs": "./scripts/pezkuwi-dev-build-docs.mjs",
|
|
24
|
+
"pezkuwi-dev-build-ts": "./scripts/pezkuwi-dev-build-ts.mjs",
|
|
25
|
+
"pezkuwi-dev-circular": "./scripts/pezkuwi-dev-circular.mjs",
|
|
26
|
+
"pezkuwi-dev-clean-build": "./scripts/pezkuwi-dev-clean-build.mjs",
|
|
27
|
+
"pezkuwi-dev-contrib": "./scripts/pezkuwi-dev-contrib.mjs",
|
|
28
|
+
"pezkuwi-dev-copy-dir": "./scripts/pezkuwi-dev-copy-dir.mjs",
|
|
29
|
+
"pezkuwi-dev-copy-to": "./scripts/pezkuwi-dev-copy-to.mjs",
|
|
30
|
+
"pezkuwi-dev-deno-map": "./scripts/pezkuwi-dev-deno-map.mjs",
|
|
31
|
+
"pezkuwi-dev-run-lint": "./scripts/pezkuwi-dev-run-lint.mjs",
|
|
32
|
+
"pezkuwi-dev-run-node-ts": "./scripts/pezkuwi-dev-run-node-ts.mjs",
|
|
33
|
+
"pezkuwi-dev-run-test": "./scripts/pezkuwi-dev-run-test.mjs",
|
|
34
|
+
"pezkuwi-dev-version": "./scripts/pezkuwi-dev-version.mjs",
|
|
35
|
+
"pezkuwi-dev-yarn-only": "./scripts/pezkuwi-dev-yarn-only.mjs",
|
|
36
|
+
"pezkuwi-exec-eslint": "./scripts/pezkuwi-exec-eslint.mjs",
|
|
37
|
+
"pezkuwi-exec-ghpages": "./scripts/pezkuwi-exec-ghpages.mjs",
|
|
38
|
+
"pezkuwi-exec-ghrelease": "./scripts/pezkuwi-exec-ghrelease.mjs",
|
|
39
|
+
"pezkuwi-exec-node-test": "./scripts/pezkuwi-exec-node-test.mjs",
|
|
40
|
+
"pezkuwi-exec-rollup": "./scripts/pezkuwi-exec-rollup.mjs",
|
|
41
|
+
"pezkuwi-exec-tsc": "./scripts/pezkuwi-exec-tsc.mjs",
|
|
42
|
+
"pezkuwi-exec-webpack": "./scripts/pezkuwi-exec-webpack.mjs"
|
|
43
43
|
},
|
|
44
44
|
"exports": {
|
|
45
45
|
"./config/eslint": "./config/eslint.js",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// Copyright 2017-2025 @
|
|
2
|
+
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
|
|
5
5
|
import fs from 'node:fs';
|
|
@@ -12,10 +12,10 @@ import { copyDirSync, copyFileSync, denoCreateDir, execGit, execPm, execSync, ex
|
|
|
12
12
|
|
|
13
13
|
/** @typedef {Record<string, any>} ChangelogMap */
|
|
14
14
|
|
|
15
|
-
logBin('
|
|
15
|
+
logBin('pezkuwi-ci-ghact-build');
|
|
16
16
|
|
|
17
|
-
const DENO_REPO = '
|
|
18
|
-
const BUND_REPO = '
|
|
17
|
+
const DENO_REPO = 'pezkuwi-js/build-deno.land';
|
|
18
|
+
const BUND_REPO = 'pezkuwi-js/build-bundle';
|
|
19
19
|
|
|
20
20
|
const repo = `${GITHUB_TOKEN_URL}/${GITHUB_REPO}.git`;
|
|
21
21
|
const denoRepo = `${GITHUB_TOKEN_URL}/${DENO_REPO}.git`;
|
|
@@ -305,14 +305,14 @@ function commitClone (repo, clone, names) {
|
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
/**
|
|
308
|
-
* Publishes a specific package to
|
|
308
|
+
* Publishes a specific package to pezkuwi-js bundles
|
|
309
309
|
*
|
|
310
310
|
* @returns {void}
|
|
311
311
|
*/
|
|
312
312
|
function bundlePublishPkg () {
|
|
313
313
|
const { name, version } = npmGetJson();
|
|
314
314
|
const dirName = name.split('/')[1];
|
|
315
|
-
const bundName = `bundle-
|
|
315
|
+
const bundName = `bundle-pezkuwi-${dirName}.js`;
|
|
316
316
|
const srcPath = path.join('build', bundName);
|
|
317
317
|
const dstDir = path.join('../..', bundClone);
|
|
318
318
|
|
|
@@ -333,7 +333,7 @@ function bundlePublishPkg () {
|
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
/**
|
|
336
|
-
* Publishes all packages to
|
|
336
|
+
* Publishes all packages to pezkuwi-js bundles
|
|
337
337
|
*
|
|
338
338
|
* @returns {void}
|
|
339
339
|
*/
|
|
@@ -419,7 +419,7 @@ function verBump () {
|
|
|
419
419
|
|
|
420
420
|
if (argv['skip-beta'] || patch === '0') {
|
|
421
421
|
// don't allow beta versions
|
|
422
|
-
execPm('
|
|
422
|
+
execPm('pezkuwi-dev-version patch');
|
|
423
423
|
withNpm = true;
|
|
424
424
|
} else if (tag || currentVersion === lastVersion) {
|
|
425
425
|
// if we don't want to publish, add an X before passing
|
|
@@ -430,7 +430,7 @@ function verBump () {
|
|
|
430
430
|
}
|
|
431
431
|
|
|
432
432
|
// beta version, just continue the stream of betas
|
|
433
|
-
execPm('
|
|
433
|
+
execPm('pezkuwi-dev-version pre');
|
|
434
434
|
} else {
|
|
435
435
|
// manually set, got for publish
|
|
436
436
|
withNpm = true;
|
|
@@ -440,7 +440,7 @@ function verBump () {
|
|
|
440
440
|
npmSetVersionFields();
|
|
441
441
|
rmFile('.123trigger');
|
|
442
442
|
|
|
443
|
-
execPm('
|
|
443
|
+
execPm('pezkuwi-dev-contrib');
|
|
444
444
|
execGit('add --all .');
|
|
445
445
|
}
|
|
446
446
|
|
|
@@ -484,7 +484,7 @@ skip-checks: true"`);
|
|
|
484
484
|
? `--assets ${process.env['GH_RELEASE_FILES']}`
|
|
485
485
|
: '';
|
|
486
486
|
|
|
487
|
-
execPm(`
|
|
487
|
+
execPm(`pezkuwi-exec-ghrelease --draft ${files} --yes`);
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
490
|
|
|
@@ -526,7 +526,7 @@ getFlags();
|
|
|
526
526
|
verBump();
|
|
527
527
|
|
|
528
528
|
// perform the actual CI build
|
|
529
|
-
execPm('
|
|
529
|
+
execPm('pezkuwi-dev-clean-build');
|
|
530
530
|
execPm('lint');
|
|
531
531
|
execPm('test');
|
|
532
532
|
execPm('build');
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// Copyright 2017-2025 @
|
|
2
|
+
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
|
|
5
5
|
import { execPm, GITHUB_REPO, GITHUB_TOKEN_URL, gitSetup, logBin } from './util.mjs';
|
|
6
6
|
|
|
7
7
|
const repo = `${GITHUB_TOKEN_URL}/${GITHUB_REPO}.git`;
|
|
8
8
|
|
|
9
|
-
logBin('
|
|
9
|
+
logBin('pezkuwi-ci-ghact-docs');
|
|
10
10
|
|
|
11
11
|
gitSetup();
|
|
12
12
|
|
|
13
13
|
execPm('run docs');
|
|
14
|
-
execPm(`
|
|
14
|
+
execPm(`pezkuwi-exec-ghpages --dotfiles --repo ${repo} --dist ${process.env['GH_PAGES_SRC']} --dest .`, true);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// Copyright 2017-2025 @
|
|
2
|
+
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
|
|
5
5
|
import fs from 'node:fs';
|
|
6
6
|
|
|
7
7
|
import { execGit, logBin } from './util.mjs';
|
|
8
8
|
|
|
9
|
-
logBin('
|
|
9
|
+
logBin('pezkuwi-ci-ghpages-force');
|
|
10
10
|
|
|
11
11
|
// ensure we are on master
|
|
12
12
|
execGit('checkout master');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// Copyright 2017-2025 @
|
|
2
|
+
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
|
|
5
5
|
import fs from 'node:fs';
|
|
@@ -7,7 +7,7 @@ import path from 'node:path';
|
|
|
7
7
|
|
|
8
8
|
import { copyDirSync, logBin, rimrafSync } from './util.mjs';
|
|
9
9
|
|
|
10
|
-
logBin('
|
|
10
|
+
logBin('pezkuwi-dev-build-docs');
|
|
11
11
|
|
|
12
12
|
let docRoot = path.join(process.cwd(), 'docs');
|
|
13
13
|
|