@pezkuwi/dev 0.84.3 → 0.85.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/rootJs/augmented.d.ts +2 -2
- package/config/eslint.rules.js +2 -2
- package/config/prettier.cjs +1 -1
- package/config/rollup.js +2 -2
- package/config/tsconfig.json +2 -2
- package/config/typedoc.cjs +2 -2
- package/package.json +77 -77
- package/rootJs/augmented.d.ts +2 -2
- package/scripts/{polkadot-ci-ghact-build.mjs → pezkuwi-ci-ghact-build.mjs} +11 -11
- package/scripts/{polkadot-ci-ghact-docs.mjs → pezkuwi-ci-ghact-docs.mjs} +2 -2
- package/scripts/{polkadot-ci-ghpages-force.mjs → pezkuwi-ci-ghpages-force.mjs} +1 -1
- package/scripts/{polkadot-dev-build-docs.mjs → pezkuwi-dev-build-docs.mjs} +1 -1
- package/scripts/{polkadot-dev-build-ts.mjs → pezkuwi-dev-build-ts.mjs} +6 -6
- package/scripts/{polkadot-dev-circular.mjs → pezkuwi-dev-circular.mjs} +1 -1
- package/scripts/{polkadot-dev-clean-build.mjs → pezkuwi-dev-clean-build.mjs} +1 -1
- package/scripts/{polkadot-dev-contrib.mjs → pezkuwi-dev-contrib.mjs} +1 -1
- package/scripts/{polkadot-dev-copy-dir.mjs → pezkuwi-dev-copy-dir.mjs} +1 -1
- package/scripts/{polkadot-dev-copy-to.mjs → pezkuwi-dev-copy-to.mjs} +1 -1
- package/scripts/{polkadot-dev-deno-map.mjs → pezkuwi-dev-deno-map.mjs} +1 -1
- package/scripts/{polkadot-dev-run-lint.mjs → pezkuwi-dev-run-lint.mjs} +3 -3
- package/scripts/{polkadot-dev-run-node-ts.mjs → pezkuwi-dev-run-node-ts.mjs} +1 -1
- package/scripts/{polkadot-dev-run-test.mjs → pezkuwi-dev-run-test.mjs} +2 -2
- package/scripts/{polkadot-dev-version.mjs → pezkuwi-dev-version.mjs} +1 -1
- package/scripts/util.mjs +2 -2
- /package/rootStatic/{kusama.svg → zagros.svg} +0 -0
- /package/scripts/{polkadot-dev-yarn-only.mjs → pezkuwi-dev-yarn-only.mjs} +0 -0
- /package/scripts/{polkadot-exec-eslint.mjs → pezkuwi-exec-eslint.mjs} +0 -0
- /package/scripts/{polkadot-exec-ghpages.mjs → pezkuwi-exec-ghpages.mjs} +0 -0
- /package/scripts/{polkadot-exec-ghrelease.mjs → pezkuwi-exec-ghrelease.mjs} +0 -0
- /package/scripts/{polkadot-exec-node-test.mjs → pezkuwi-exec-node-test.mjs} +0 -0
- /package/scripts/{polkadot-exec-rollup.mjs → pezkuwi-exec-rollup.mjs} +0 -0
- /package/scripts/{polkadot-exec-tsc.mjs → pezkuwi-exec-tsc.mjs} +0 -0
- /package/scripts/{polkadot-exec-webpack.mjs → pezkuwi-exec-webpack.mjs} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/** This tests augmentation outputs, e.g. as used in the
|
|
1
|
+
/** This tests augmentation outputs, e.g. as used in the pezkuwi-js/api */
|
|
2
2
|
export interface Something {
|
|
3
3
|
bar: string;
|
|
4
4
|
foo: string;
|
|
5
5
|
}
|
|
6
|
-
declare module '@
|
|
6
|
+
declare module '@pezkuwi/dev/types' {
|
|
7
7
|
const blah: string;
|
|
8
8
|
}
|
package/config/eslint.rules.js
CHANGED
|
@@ -142,8 +142,8 @@ export const overrideAll = {
|
|
|
142
142
|
['^\u0000'], // all side-effects (0 at start)
|
|
143
143
|
['\u0000$', '^@pezkuwi.*\u0000$', '^\\..*\u0000$'], // types (0 at end)
|
|
144
144
|
// ['^node:'], // node
|
|
145
|
-
['^[^/\\.]'], // non-
|
|
146
|
-
['^@pezkuwi'], //
|
|
145
|
+
['^[^/\\.]'], // non-pezkuwi
|
|
146
|
+
['^@pezkuwi'], // pezkuwi
|
|
147
147
|
['^\\.\\.(?!/?$)', '^\\.\\./?$', '^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'] // local (. last)
|
|
148
148
|
]
|
|
149
149
|
}],
|
package/config/prettier.cjs
CHANGED
package/config/rollup.js
CHANGED
|
@@ -28,7 +28,7 @@ function sanitizePkg (pkg) {
|
|
|
28
28
|
* @returns {string}
|
|
29
29
|
*/
|
|
30
30
|
function createName (input) {
|
|
31
|
-
return `
|
|
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
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
|
3
|
-
"bugs": "https://github.com/
|
|
4
|
-
"description": "A collection of shared CI scripts and development environment used by @
|
|
3
|
+
"bugs": "https://github.com/pezkuwi-js/dev/issues",
|
|
4
|
+
"description": "A collection of shared CI scripts and development environment used by @pezkuwi projects",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18"
|
|
7
7
|
},
|
|
8
|
-
"homepage": "https://github.com/
|
|
8
|
+
"homepage": "https://github.com/pezkuwi-js/dev/tree/master/packages/dev#readme",
|
|
9
9
|
"license": "Apache-2.0",
|
|
10
10
|
"name": "@pezkuwi/dev",
|
|
11
11
|
"repository": {
|
|
12
12
|
"directory": "packages/dev",
|
|
13
13
|
"type": "git",
|
|
14
|
-
"url": "https://github.com/
|
|
14
|
+
"url": "https://github.com/pezkuwi-js/dev.git"
|
|
15
15
|
},
|
|
16
16
|
"sideEffects": false,
|
|
17
17
|
"type": "module",
|
|
18
|
-
"version": "0.
|
|
18
|
+
"version": "0.85.1",
|
|
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
|
"main": "./cjs/index.js",
|
|
45
45
|
"module": "./index.js",
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
}
|
|
204
204
|
},
|
|
205
205
|
"./rootJs/testJson.json": "./rootJs/testJson.json",
|
|
206
|
-
"./rootStatic/
|
|
206
|
+
"./rootStatic/zagros.svg": "./rootStatic/zagros.svg",
|
|
207
207
|
"./rootTests": {
|
|
208
208
|
"module": {
|
|
209
209
|
"types": "./rootTests.d.ts",
|
|
@@ -218,52 +218,52 @@
|
|
|
218
218
|
"default": "./rootTests.js"
|
|
219
219
|
}
|
|
220
220
|
},
|
|
221
|
-
"./scripts/
|
|
222
|
-
"./scripts/
|
|
223
|
-
"./scripts/
|
|
224
|
-
"./scripts/
|
|
225
|
-
"./scripts/
|
|
226
|
-
"./scripts/
|
|
227
|
-
"./scripts/
|
|
228
|
-
"./scripts/
|
|
229
|
-
"./scripts/
|
|
230
|
-
"./scripts/
|
|
231
|
-
"./scripts/
|
|
232
|
-
"./scripts/
|
|
233
|
-
"./scripts/
|
|
234
|
-
"./scripts/
|
|
235
|
-
"./scripts/
|
|
236
|
-
"./scripts/
|
|
237
|
-
"./scripts/
|
|
238
|
-
"./scripts/
|
|
239
|
-
"./scripts/
|
|
240
|
-
"./scripts/
|
|
241
|
-
"./scripts/
|
|
242
|
-
"./scripts/
|
|
243
|
-
"./scripts/
|
|
244
|
-
"./scripts/
|
|
245
|
-
"./scripts/
|
|
246
|
-
"./scripts/
|
|
247
|
-
"./scripts/
|
|
248
|
-
"./scripts/
|
|
249
|
-
"./scripts/
|
|
250
|
-
"./scripts/
|
|
251
|
-
"./scripts/
|
|
252
|
-
"./scripts/
|
|
253
|
-
"./scripts/
|
|
254
|
-
"./scripts/
|
|
255
|
-
"./scripts/
|
|
256
|
-
"./scripts/
|
|
257
|
-
"./scripts/
|
|
258
|
-
"./scripts/
|
|
259
|
-
"./scripts/
|
|
260
|
-
"./scripts/
|
|
261
|
-
"./scripts/
|
|
262
|
-
"./scripts/
|
|
263
|
-
"./scripts/
|
|
264
|
-
"./scripts/
|
|
265
|
-
"./scripts/
|
|
266
|
-
"./scripts/
|
|
221
|
+
"./scripts/pezkuwi-ci-ghact-build.mjs": "./scripts/pezkuwi-ci-ghact-build.mjs",
|
|
222
|
+
"./scripts/pezkuwi-ci-ghact-build": "./scripts/pezkuwi-ci-ghact-build.mjs",
|
|
223
|
+
"./scripts/pezkuwi-ci-ghact-docs.mjs": "./scripts/pezkuwi-ci-ghact-docs.mjs",
|
|
224
|
+
"./scripts/pezkuwi-ci-ghact-docs": "./scripts/pezkuwi-ci-ghact-docs.mjs",
|
|
225
|
+
"./scripts/pezkuwi-ci-ghpages-force.mjs": "./scripts/pezkuwi-ci-ghpages-force.mjs",
|
|
226
|
+
"./scripts/pezkuwi-ci-ghpages-force": "./scripts/pezkuwi-ci-ghpages-force.mjs",
|
|
227
|
+
"./scripts/pezkuwi-dev-build-docs.mjs": "./scripts/pezkuwi-dev-build-docs.mjs",
|
|
228
|
+
"./scripts/pezkuwi-dev-build-docs": "./scripts/pezkuwi-dev-build-docs.mjs",
|
|
229
|
+
"./scripts/pezkuwi-dev-build-ts.mjs": "./scripts/pezkuwi-dev-build-ts.mjs",
|
|
230
|
+
"./scripts/pezkuwi-dev-build-ts": "./scripts/pezkuwi-dev-build-ts.mjs",
|
|
231
|
+
"./scripts/pezkuwi-dev-circular.mjs": "./scripts/pezkuwi-dev-circular.mjs",
|
|
232
|
+
"./scripts/pezkuwi-dev-circular": "./scripts/pezkuwi-dev-circular.mjs",
|
|
233
|
+
"./scripts/pezkuwi-dev-clean-build.mjs": "./scripts/pezkuwi-dev-clean-build.mjs",
|
|
234
|
+
"./scripts/pezkuwi-dev-clean-build": "./scripts/pezkuwi-dev-clean-build.mjs",
|
|
235
|
+
"./scripts/pezkuwi-dev-contrib.mjs": "./scripts/pezkuwi-dev-contrib.mjs",
|
|
236
|
+
"./scripts/pezkuwi-dev-contrib": "./scripts/pezkuwi-dev-contrib.mjs",
|
|
237
|
+
"./scripts/pezkuwi-dev-copy-dir.mjs": "./scripts/pezkuwi-dev-copy-dir.mjs",
|
|
238
|
+
"./scripts/pezkuwi-dev-copy-dir": "./scripts/pezkuwi-dev-copy-dir.mjs",
|
|
239
|
+
"./scripts/pezkuwi-dev-copy-to.mjs": "./scripts/pezkuwi-dev-copy-to.mjs",
|
|
240
|
+
"./scripts/pezkuwi-dev-copy-to": "./scripts/pezkuwi-dev-copy-to.mjs",
|
|
241
|
+
"./scripts/pezkuwi-dev-deno-map.mjs": "./scripts/pezkuwi-dev-deno-map.mjs",
|
|
242
|
+
"./scripts/pezkuwi-dev-deno-map": "./scripts/pezkuwi-dev-deno-map.mjs",
|
|
243
|
+
"./scripts/pezkuwi-dev-run-lint.mjs": "./scripts/pezkuwi-dev-run-lint.mjs",
|
|
244
|
+
"./scripts/pezkuwi-dev-run-lint": "./scripts/pezkuwi-dev-run-lint.mjs",
|
|
245
|
+
"./scripts/pezkuwi-dev-run-node-ts.mjs": "./scripts/pezkuwi-dev-run-node-ts.mjs",
|
|
246
|
+
"./scripts/pezkuwi-dev-run-node-ts": "./scripts/pezkuwi-dev-run-node-ts.mjs",
|
|
247
|
+
"./scripts/pezkuwi-dev-run-test.mjs": "./scripts/pezkuwi-dev-run-test.mjs",
|
|
248
|
+
"./scripts/pezkuwi-dev-run-test": "./scripts/pezkuwi-dev-run-test.mjs",
|
|
249
|
+
"./scripts/pezkuwi-dev-version.mjs": "./scripts/pezkuwi-dev-version.mjs",
|
|
250
|
+
"./scripts/pezkuwi-dev-version": "./scripts/pezkuwi-dev-version.mjs",
|
|
251
|
+
"./scripts/pezkuwi-dev-yarn-only.mjs": "./scripts/pezkuwi-dev-yarn-only.mjs",
|
|
252
|
+
"./scripts/pezkuwi-dev-yarn-only": "./scripts/pezkuwi-dev-yarn-only.mjs",
|
|
253
|
+
"./scripts/pezkuwi-exec-eslint.mjs": "./scripts/pezkuwi-exec-eslint.mjs",
|
|
254
|
+
"./scripts/pezkuwi-exec-eslint": "./scripts/pezkuwi-exec-eslint.mjs",
|
|
255
|
+
"./scripts/pezkuwi-exec-ghpages.mjs": "./scripts/pezkuwi-exec-ghpages.mjs",
|
|
256
|
+
"./scripts/pezkuwi-exec-ghpages": "./scripts/pezkuwi-exec-ghpages.mjs",
|
|
257
|
+
"./scripts/pezkuwi-exec-ghrelease.mjs": "./scripts/pezkuwi-exec-ghrelease.mjs",
|
|
258
|
+
"./scripts/pezkuwi-exec-ghrelease": "./scripts/pezkuwi-exec-ghrelease.mjs",
|
|
259
|
+
"./scripts/pezkuwi-exec-node-test.mjs": "./scripts/pezkuwi-exec-node-test.mjs",
|
|
260
|
+
"./scripts/pezkuwi-exec-node-test": "./scripts/pezkuwi-exec-node-test.mjs",
|
|
261
|
+
"./scripts/pezkuwi-exec-rollup.mjs": "./scripts/pezkuwi-exec-rollup.mjs",
|
|
262
|
+
"./scripts/pezkuwi-exec-rollup": "./scripts/pezkuwi-exec-rollup.mjs",
|
|
263
|
+
"./scripts/pezkuwi-exec-tsc.mjs": "./scripts/pezkuwi-exec-tsc.mjs",
|
|
264
|
+
"./scripts/pezkuwi-exec-tsc": "./scripts/pezkuwi-exec-tsc.mjs",
|
|
265
|
+
"./scripts/pezkuwi-exec-webpack.mjs": "./scripts/pezkuwi-exec-webpack.mjs",
|
|
266
|
+
"./scripts/pezkuwi-exec-webpack": "./scripts/pezkuwi-exec-webpack.mjs",
|
|
267
267
|
"./scripts/util.mjs": "./scripts/util.mjs",
|
|
268
268
|
"./scripts/util": "./scripts/util.mjs",
|
|
269
269
|
"./types": {
|
|
@@ -283,8 +283,8 @@
|
|
|
283
283
|
},
|
|
284
284
|
"dependencies": {
|
|
285
285
|
"@eslint/js": "^8.56.0",
|
|
286
|
-
"@
|
|
287
|
-
"@
|
|
286
|
+
"@pezkuwi/dev-test": "^0.83.3",
|
|
287
|
+
"@pezkuwi/dev-ts": "^0.83.3",
|
|
288
288
|
"@rollup/plugin-alias": "^5.1.1",
|
|
289
289
|
"@rollup/plugin-commonjs": "^25.0.8",
|
|
290
290
|
"@rollup/plugin-dynamic-import-vars": "^2.1.5",
|
package/rootJs/augmented.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/** This tests augmentation outputs, e.g. as used in the
|
|
1
|
+
/** This tests augmentation outputs, e.g. as used in the pezkuwi-js/api */
|
|
2
2
|
export interface Something {
|
|
3
3
|
bar: string;
|
|
4
4
|
foo: string;
|
|
5
5
|
}
|
|
6
|
-
declare module '@
|
|
6
|
+
declare module '@pezkuwi/dev/types' {
|
|
7
7
|
const blah: string;
|
|
8
8
|
}
|
|
@@ -12,10 +12,10 @@ import { copyDirSync, copyFileSync, denoCreateDir, execGit, execPm, execSync, ex
|
|
|
12
12
|
|
|
13
13
|
/** @typedef {Record<string, any>} ChangelogMap */
|
|
14
14
|
|
|
15
|
-
logBin('
|
|
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
|
|
|
@@ -480,7 +480,7 @@ skip-checks: true"`);
|
|
|
480
480
|
? `--assets ${process.env['GH_RELEASE_FILES']}`
|
|
481
481
|
: '';
|
|
482
482
|
|
|
483
|
-
execPm(`
|
|
483
|
+
execPm(`pezkuwi-exec-ghrelease --draft ${files} --yes`);
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
486
|
|
|
@@ -522,7 +522,7 @@ getFlags();
|
|
|
522
522
|
verBump();
|
|
523
523
|
|
|
524
524
|
// perform the actual CI build
|
|
525
|
-
execPm('
|
|
525
|
+
execPm('pezkuwi-dev-clean-build');
|
|
526
526
|
execPm('lint');
|
|
527
527
|
execPm('test');
|
|
528
528
|
execPm('build');
|
|
@@ -6,9 +6,9 @@ import { execPm, GITHUB_REPO, GITHUB_TOKEN_URL, gitSetup, logBin } from './util.
|
|
|
6
6
|
|
|
7
7
|
const repo = `${GITHUB_TOKEN_URL}/${GITHUB_REPO}.git`;
|
|
8
8
|
|
|
9
|
-
logBin('
|
|
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);
|
|
@@ -16,7 +16,7 @@ import { copyDirSync, copyFileSync, DENO_EXT_PRE, DENO_LND_PRE, DENO_POL_PRE, en
|
|
|
16
16
|
const WP_CONFIGS = ['js', 'cjs'].map((e) => `webpack.config.${e}`);
|
|
17
17
|
const RL_CONFIGS = ['js', 'mjs', 'cjs'].map((e) => `rollup.config.${e}`);
|
|
18
18
|
|
|
19
|
-
logBin('
|
|
19
|
+
logBin('pezkuwi-dev-build-ts');
|
|
20
20
|
|
|
21
21
|
exitFatalEngine();
|
|
22
22
|
|
|
@@ -45,7 +45,7 @@ const IGNORE_IMPORTS = [
|
|
|
45
45
|
function buildWebpack () {
|
|
46
46
|
const config = WP_CONFIGS.find((c) => fs.existsSync(path.join(process.cwd(), c)));
|
|
47
47
|
|
|
48
|
-
execPm(`
|
|
48
|
+
execPm(`pezkuwi-exec-webpack --config ${config} --mode production`);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
/**
|
|
@@ -303,7 +303,7 @@ function adjustDenoPath (pkgCwd, pkgJson, dir, f, isDeclare) {
|
|
|
303
303
|
//
|
|
304
304
|
// FIXME We cannot enable this until there is support for git deps
|
|
305
305
|
// https://github.com/denoland/deno/issues/18557
|
|
306
|
-
// This is used by @zondax/ledger-
|
|
306
|
+
// This is used by @zondax/ledger-bizinikiwi
|
|
307
307
|
// return `npm:${depName}@${depVersion}${depPath || ''}`;
|
|
308
308
|
} else {
|
|
309
309
|
exitFatal(`Unknown Deno versioned package '${f}' inside ${pkgJson.name}`);
|
|
@@ -1446,7 +1446,7 @@ async function main () {
|
|
|
1446
1446
|
}
|
|
1447
1447
|
}
|
|
1448
1448
|
|
|
1449
|
-
execPm('
|
|
1449
|
+
execPm('pezkuwi-dev-clean-build');
|
|
1450
1450
|
|
|
1451
1451
|
const pkg = JSON.parse(fs.readFileSync(path.join(process.cwd(), './package.json'), 'utf-8'));
|
|
1452
1452
|
|
|
@@ -1465,7 +1465,7 @@ async function main () {
|
|
|
1465
1465
|
.split('.git')[0];
|
|
1466
1466
|
|
|
1467
1467
|
orderPackageJson(repoPath, null, pkg);
|
|
1468
|
-
execPm('
|
|
1468
|
+
execPm('pezkuwi-exec-tsc --build tsconfig.build.json');
|
|
1469
1469
|
|
|
1470
1470
|
process.chdir('packages');
|
|
1471
1471
|
|
|
@@ -1502,7 +1502,7 @@ async function main () {
|
|
|
1502
1502
|
findUnusedTsConfig();
|
|
1503
1503
|
|
|
1504
1504
|
if (RL_CONFIGS.some((c) => fs.existsSync(path.join(process.cwd(), c)))) {
|
|
1505
|
-
execPm('
|
|
1505
|
+
execPm('pezkuwi-exec-rollup --config');
|
|
1506
1506
|
}
|
|
1507
1507
|
|
|
1508
1508
|
if (pkg.scripts) {
|
|
@@ -10,7 +10,7 @@ import { logBin, PATHS_BUILD, rimrafSync } from './util.mjs';
|
|
|
10
10
|
const PKGS = path.join(process.cwd(), 'packages');
|
|
11
11
|
const DIRS = PATHS_BUILD.map((d) => `build${d}`);
|
|
12
12
|
|
|
13
|
-
logBin('
|
|
13
|
+
logBin('pezkuwi-dev-clean-build');
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @internal
|
|
@@ -9,7 +9,7 @@ import { execGit, logBin, mkdirpSync } from './util.mjs';
|
|
|
9
9
|
const tmpDir = 'packages/build';
|
|
10
10
|
const tmpFile = `${tmpDir}/CONTRIBUTORS`;
|
|
11
11
|
|
|
12
|
-
logBin('
|
|
12
|
+
logBin('pezkuwi-dev-contrib');
|
|
13
13
|
|
|
14
14
|
mkdirpSync(tmpDir);
|
|
15
15
|
execGit(`shortlog master -e -n -s > ${tmpFile}`);
|
|
@@ -26,7 +26,7 @@ for (let i = 0; i < argv.length; i++) {
|
|
|
26
26
|
const sources = args.slice(0, args.length - 1);
|
|
27
27
|
const dest = args[args.length - 1];
|
|
28
28
|
|
|
29
|
-
logBin('
|
|
29
|
+
logBin('pezkuwi-dev-copy-dir');
|
|
30
30
|
|
|
31
31
|
if (!sources || !dest) {
|
|
32
32
|
exitFatal('Expected at least one <source>... and one <destination> argument');
|
|
@@ -9,7 +9,7 @@ import { copyDirSync, execPm, exitFatal, logBin, mkdirpSync, rimrafSync } from '
|
|
|
9
9
|
|
|
10
10
|
const args = process.argv.slice(2);
|
|
11
11
|
|
|
12
|
-
logBin('
|
|
12
|
+
logBin('pezkuwi-dev-copy-to');
|
|
13
13
|
|
|
14
14
|
if (args.length !== 1) {
|
|
15
15
|
exitFatal('Expected one <destination> argument');
|
|
@@ -18,7 +18,7 @@ const [e, i] = fs
|
|
|
18
18
|
}, [[], {}]);
|
|
19
19
|
|
|
20
20
|
if (!fs.existsSync('mod.ts')) {
|
|
21
|
-
fs.writeFileSync('mod.ts', `// Copyright 2017-${new Date().getFullYear()} @pezkuwi/dev authors & contributors\n// SPDX-License-Identifier: Apache-2.0\n\n// auto-generated via
|
|
21
|
+
fs.writeFileSync('mod.ts', `// Copyright 2017-${new Date().getFullYear()} @pezkuwi/dev authors & contributors\n// SPDX-License-Identifier: Apache-2.0\n\n// auto-generated via pezkuwi-dev-deno-map, do not edit\n\n// This is a Deno file, so we can allow .ts imports
|
|
22
22
|
/* eslint-disable import/extensions */\n\n${e.join('\n')}\n`);
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -9,7 +9,7 @@ import { __dirname, execPm, GITHUB_REPO, logBin } from './util.mjs';
|
|
|
9
9
|
|
|
10
10
|
const TS_CONFIG_BUILD = true;
|
|
11
11
|
|
|
12
|
-
logBin('
|
|
12
|
+
logBin('pezkuwi-dev-run-lint');
|
|
13
13
|
|
|
14
14
|
// Since yargs can also be a promise, we just relax the type here completely
|
|
15
15
|
const argv = await yargs(process.argv.slice(2))
|
|
@@ -32,9 +32,9 @@ if (!argv['skip-eslint']) {
|
|
|
32
32
|
? ''
|
|
33
33
|
: '--fix';
|
|
34
34
|
|
|
35
|
-
execPm(`
|
|
35
|
+
execPm(`pezkuwi-exec-eslint ${extra} ${process.cwd()}`);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
if (!argv['skip-tsc']) {
|
|
39
|
-
execPm(`
|
|
39
|
+
execPm(`pezkuwi-exec-tsc --noEmit --emitDeclarationOnly false --pretty${TS_CONFIG_BUILD ? ' --project tsconfig.build.json' : ''}`);
|
|
40
40
|
}
|
|
@@ -13,7 +13,7 @@ const EXT_B = ['ts', 'tsx', 'js', 'jsx', 'cjs', 'mjs'];
|
|
|
13
13
|
// The actual extensions we are looking for
|
|
14
14
|
const EXTS = EXT_A.reduce((/** @type {string[]} */ exts, s) => exts.concat(...EXT_B.map((e) => `.${s}.${e}`)), []);
|
|
15
15
|
|
|
16
|
-
logBin('
|
|
16
|
+
logBin('pezkuwi-dev-run-test');
|
|
17
17
|
|
|
18
18
|
exitFatalEngine();
|
|
19
19
|
|
|
@@ -148,7 +148,7 @@ if (files.length === 0) {
|
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
try {
|
|
151
|
-
const allFlags = `${importPath('@pezkuwi/dev/scripts/
|
|
151
|
+
const allFlags = `${importPath('@pezkuwi/dev/scripts/pezkuwi-exec-node-test.mjs')} ${[...cmd, ...files].join(' ')}`;
|
|
152
152
|
|
|
153
153
|
nodeFlags.push('--require');
|
|
154
154
|
nodeFlags.push(
|
package/scripts/util.mjs
CHANGED
|
@@ -19,8 +19,8 @@ export const DENO_EXT_PRE = 'https://esm.sh';
|
|
|
19
19
|
/** Deno prefix for built-ins */
|
|
20
20
|
export const DENO_LND_PRE = 'https://deno.land';
|
|
21
21
|
|
|
22
|
-
/** Deno prefix for the
|
|
23
|
-
export const DENO_POL_PRE = `${DENO_LND_PRE}/x/
|
|
22
|
+
/** Deno prefix for the pezkuwi package */
|
|
23
|
+
export const DENO_POL_PRE = `${DENO_LND_PRE}/x/pezkuwi`;
|
|
24
24
|
|
|
25
25
|
/** The GH user that we use for actions */
|
|
26
26
|
export const GITHUB_USER = 'github-actions[bot]';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|