@pezkuwi/dev 0.84.3 → 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.
Files changed (93) hide show
  1. package/.skip-deno +0 -0
  2. package/README.md +547 -0
  3. package/config/eslint.rules.js +2 -2
  4. package/config/prettier.cjs +1 -1
  5. package/config/rollup.js +2 -2
  6. package/config/tsconfig.json +2 -2
  7. package/config/typedoc.cjs +2 -2
  8. package/package.json +43 -265
  9. package/scripts/{polkadot-ci-ghact-build.mjs → pezkuwi-ci-ghact-build.mjs} +15 -11
  10. package/scripts/{polkadot-ci-ghact-docs.mjs → pezkuwi-ci-ghact-docs.mjs} +2 -2
  11. package/scripts/{polkadot-ci-ghpages-force.mjs → pezkuwi-ci-ghpages-force.mjs} +1 -1
  12. package/scripts/{polkadot-dev-build-docs.mjs → pezkuwi-dev-build-docs.mjs} +1 -1
  13. package/scripts/{polkadot-dev-build-ts.mjs → pezkuwi-dev-build-ts.mjs} +6 -6
  14. package/scripts/{polkadot-dev-circular.mjs → pezkuwi-dev-circular.mjs} +1 -1
  15. package/scripts/{polkadot-dev-clean-build.mjs → pezkuwi-dev-clean-build.mjs} +1 -1
  16. package/scripts/{polkadot-dev-contrib.mjs → pezkuwi-dev-contrib.mjs} +1 -1
  17. package/scripts/{polkadot-dev-copy-dir.mjs → pezkuwi-dev-copy-dir.mjs} +1 -1
  18. package/scripts/{polkadot-dev-copy-to.mjs → pezkuwi-dev-copy-to.mjs} +1 -1
  19. package/scripts/{polkadot-dev-deno-map.mjs → pezkuwi-dev-deno-map.mjs} +1 -1
  20. package/scripts/{polkadot-dev-run-lint.mjs → pezkuwi-dev-run-lint.mjs} +3 -3
  21. package/scripts/{polkadot-dev-run-node-ts.mjs → pezkuwi-dev-run-node-ts.mjs} +1 -1
  22. package/scripts/{polkadot-dev-run-test.mjs → pezkuwi-dev-run-test.mjs} +2 -2
  23. package/scripts/{polkadot-dev-version.mjs → pezkuwi-dev-version.mjs} +1 -1
  24. package/scripts/util.mjs +2 -2
  25. package/tsconfig.build.json +18 -0
  26. package/tsconfig.build.tsbuildinfo +1 -0
  27. package/tsconfig.config.json +14 -0
  28. package/tsconfig.config.tsbuildinfo +1 -0
  29. package/tsconfig.scripts.json +14 -0
  30. package/tsconfig.scripts.tsbuildinfo +1 -0
  31. package/tsconfig.spec.json +18 -0
  32. package/tsconfig.spec.tsbuildinfo +1 -0
  33. package/LICENSE +0 -201
  34. package/cjs/detectOther.d.ts +0 -2
  35. package/cjs/detectOther.js +0 -3
  36. package/cjs/index.d.ts +0 -1
  37. package/cjs/index.js +0 -3
  38. package/cjs/package.json +0 -3
  39. package/cjs/packageInfo.d.ts +0 -6
  40. package/cjs/packageInfo.js +0 -4
  41. package/cjs/root.d.ts +0 -2
  42. package/cjs/root.js +0 -6
  43. package/cjs/rootJs/Clazz.d.ts +0 -18
  44. package/cjs/rootJs/Clazz.js +0 -36
  45. package/cjs/rootJs/Jsx.d.ts +0 -5
  46. package/cjs/rootJs/Jsx.js +0 -16
  47. package/cjs/rootJs/JsxChild.d.ts +0 -9
  48. package/cjs/rootJs/JsxChild.js +0 -9
  49. package/cjs/rootJs/augmented.d.ts +0 -8
  50. package/cjs/rootJs/augmented.js +0 -3
  51. package/cjs/rootJs/index.d.ts +0 -19
  52. package/cjs/rootJs/index.js +0 -51
  53. package/cjs/rootTests.d.ts +0 -2
  54. package/cjs/rootTests.js +0 -44
  55. package/cjs/sample.d.ts +0 -1
  56. package/cjs/sample.js +0 -4
  57. package/cjs/types.d.ts +0 -2
  58. package/cjs/types.js +0 -2
  59. package/detectOther.d.ts +0 -2
  60. package/detectOther.js +0 -1
  61. package/index.d.ts +0 -1
  62. package/index.js +0 -2
  63. package/package.json.new +0 -315
  64. package/packageInfo.d.ts +0 -6
  65. package/packageInfo.js +0 -1
  66. package/root.d.ts +0 -2
  67. package/root.js +0 -2
  68. package/rootJs/Clazz.d.ts +0 -18
  69. package/rootJs/Clazz.js +0 -32
  70. package/rootJs/Jsx.d.ts +0 -5
  71. package/rootJs/Jsx.js +0 -13
  72. package/rootJs/JsxChild.d.ts +0 -9
  73. package/rootJs/JsxChild.js +0 -6
  74. package/rootJs/augmented.d.ts +0 -8
  75. package/rootJs/augmented.js +0 -2
  76. package/rootJs/dynamic.d.mts +0 -8
  77. package/rootJs/dynamic.mjs +0 -13
  78. package/rootJs/index.d.ts +0 -19
  79. package/rootJs/index.js +0 -39
  80. package/rootJs/testJson.json +0 -5
  81. package/rootStatic/kusama.svg +0 -1
  82. package/rootTests.d.ts +0 -2
  83. package/rootTests.js +0 -41
  84. package/types.d.ts +0 -2
  85. package/types.js +0 -1
  86. /package/scripts/{polkadot-dev-yarn-only.mjs → pezkuwi-dev-yarn-only.mjs} +0 -0
  87. /package/scripts/{polkadot-exec-eslint.mjs → pezkuwi-exec-eslint.mjs} +0 -0
  88. /package/scripts/{polkadot-exec-ghpages.mjs → pezkuwi-exec-ghpages.mjs} +0 -0
  89. /package/scripts/{polkadot-exec-ghrelease.mjs → pezkuwi-exec-ghrelease.mjs} +0 -0
  90. /package/scripts/{polkadot-exec-node-test.mjs → pezkuwi-exec-node-test.mjs} +0 -0
  91. /package/scripts/{polkadot-exec-rollup.mjs → pezkuwi-exec-rollup.mjs} +0 -0
  92. /package/scripts/{polkadot-exec-tsc.mjs → pezkuwi-exec-tsc.mjs} +0 -0
  93. /package/scripts/{polkadot-exec-webpack.mjs → pezkuwi-exec-webpack.mjs} +0 -0
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Clazz = void 0;
4
- class Clazz {
5
- #something = 123_456_789;
6
- and;
7
- static staticProperty = 'foobar';
8
- static staticFunction = () => Clazz.staticProperty;
9
- /**
10
- * @param and the number we should and with
11
- */
12
- constructor(and) {
13
- this.and = and;
14
- this.#something = this.#something & and;
15
- }
16
- get something() {
17
- return this.#something;
18
- }
19
- async doAsync() {
20
- const res = await new Promise((resolve) => resolve(true));
21
- console.log(res);
22
- return res;
23
- }
24
- /**
25
- * @description Sets something to something
26
- * @param something The addition
27
- */
28
- setSomething = (something) => {
29
- this.#something = (something ?? 123_456) & this.and;
30
- return this.#something;
31
- };
32
- toString() {
33
- return `something=${this.#something}`;
34
- }
35
- }
36
- exports.Clazz = Clazz;
@@ -1,5 +0,0 @@
1
- import type { Props } from './JsxChild.js';
2
- import React from 'react';
3
- declare function Hidden({ children, className }: Props): React.ReactElement<Props>;
4
- declare const _default: React.MemoExoticComponent<typeof Hidden>;
5
- export default _default;
package/cjs/rootJs/Jsx.js DELETED
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = tslib_1.__importStar(require("react"));
6
- const styled_components_1 = require("styled-components");
7
- const JsxChild_js_1 = tslib_1.__importDefault(require("./JsxChild.js"));
8
- function Hidden({ children, className }) {
9
- const [isMessageVisible, setMessageVisibility] = (0, react_1.useState)(false);
10
- const onShow = (0, react_1.useCallback)((e) => setMessageVisibility(e.target.checked), []);
11
- return ((0, jsx_runtime_1.jsxs)(StyledDiv, { className: className, children: [(0, jsx_runtime_1.jsx)("label", { htmlFor: 'toggle', children: "Show Message" }), (0, jsx_runtime_1.jsx)("input", { checked: isMessageVisible, id: 'toggle', onChange: onShow, type: 'checkbox' }), isMessageVisible && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [children, (0, jsx_runtime_1.jsx)(JsxChild_js_1.default, { label: 'hello' })] }))] }));
12
- }
13
- const StyledDiv = styled_components_1.styled.div `
14
- background: red;
15
- `;
16
- exports.default = react_1.default.memo(Hidden);
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- export interface Props {
3
- children?: React.ReactNode;
4
- className?: string;
5
- label?: string;
6
- }
7
- declare function Child({ children, className, label }: Props): React.ReactElement<Props>;
8
- declare const _default: React.MemoExoticComponent<typeof Child>;
9
- export default _default;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = tslib_1.__importDefault(require("react"));
6
- function Child({ children, className, label }) {
7
- return ((0, jsx_runtime_1.jsxs)("div", { className: className, children: [label || '', children] }));
8
- }
9
- exports.default = react_1.default.memo(Child);
@@ -1,8 +0,0 @@
1
- /** This tests augmentation outputs, e.g. as used in the polkadot-js/api */
2
- export interface Something {
3
- bar: string;
4
- foo: string;
5
- }
6
- declare module '@polkadot/dev/types' {
7
- const blah: string;
8
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- /* eslint-disable */
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,19 +0,0 @@
1
- /** This should appear as-is in the output with: 1. extension added, 2. augmented.d.ts correct */
2
- import './augmented.js';
3
- /** Double double work, i.e. re-exports */
4
- export { Clazz } from './Clazz.js';
5
- /** Function to ensure that BigInt does not have the Babel Math.pow() transform */
6
- export declare function bigIntExp(): bigint;
7
- /** Function to ensure that dynamic imports work */
8
- export declare function dynamic(a: number, b: number): Promise<number>;
9
- /** Function to ensure we have json correctly imported */
10
- export declare function json(): string;
11
- /** Check support for the ?? operator */
12
- export declare function jsOpExp(a?: number): number;
13
- /** This is an actual check to ensure PURE is all-happy */
14
- export declare const pureOpExp: number;
15
- declare const fooA = 1;
16
- declare const fooB = 2;
17
- declare const fooC = 3;
18
- declare const fooD = 4;
19
- export { fooA, fooB, fooC, fooD };
@@ -1,51 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fooD = exports.fooC = exports.fooB = exports.fooA = exports.pureOpExp = exports.Clazz = void 0;
4
- exports.bigIntExp = bigIntExp;
5
- exports.dynamic = dynamic;
6
- exports.json = json;
7
- exports.jsOpExp = jsOpExp;
8
- const tslib_1 = require("tslib");
9
- /** This should appear as-is in the output with: 1. extension added, 2. augmented.d.ts correct */
10
- require("./augmented.js");
11
- /** This import should appear as-in in the ouput (cjs without asserts) */
12
- const testJson_json_1 = tslib_1.__importDefault(require("@pezkuwi/dev/rootJs/testJson.json"));
13
- /** Double double work, i.e. re-exports */
14
- var Clazz_js_1 = require("./Clazz.js");
15
- Object.defineProperty(exports, "Clazz", { enumerable: true, get: function () { return Clazz_js_1.Clazz; } });
16
- /** Function to ensure that BigInt does not have the Babel Math.pow() transform */
17
- function bigIntExp() {
18
- // 123_456n * 137_858_491_849n
19
- return 123456789n * (13n ** 10n);
20
- }
21
- /** Function to ensure that dynamic imports work */
22
- async function dynamic(a, b) {
23
- // NOTE we go via this path so it points to the same location in both ESM
24
- // and CJS output (a './dynamic' import would be different otherwise)
25
- const { sum } = await import('@pezkuwi/dev/rootJs/dynamic.mjs');
26
- // eslint-disable-next-line @typescript-eslint/no-unsafe-return
27
- return sum(a, b);
28
- }
29
- /** Function to ensure we have json correctly imported */
30
- function json() {
31
- return testJson_json_1.default.test.json;
32
- }
33
- /** Check support for the ?? operator */
34
- function jsOpExp(a) {
35
- const defaults = {
36
- a: 42,
37
- b: 43,
38
- c: 44
39
- };
40
- return a ?? defaults.a;
41
- }
42
- /** This is an actual check to ensure PURE is all-happy */
43
- exports.pureOpExp = jsOpExp();
44
- const fooA = 1;
45
- exports.fooA = fooA;
46
- const fooB = 2;
47
- exports.fooB = fooB;
48
- const fooC = 3;
49
- exports.fooC = fooC;
50
- const fooD = 4;
51
- exports.fooD = fooD;
@@ -1,2 +0,0 @@
1
- import type * as testRoot from './root.js';
2
- export declare function runTests({ Clazz, TEST_PURE, bigIntExp, dynamic, jsOpExp, json }: typeof testRoot): void;
package/cjs/rootTests.js DELETED
@@ -1,44 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.runTests = runTests;
4
- function runTests({ Clazz, TEST_PURE, bigIntExp, dynamic, jsOpExp, json }) {
5
- describe('Clazz', () => {
6
- it('has staticProperty', () => {
7
- expect(Clazz.staticProperty).toBe('foobar');
8
- });
9
- it('creates an instance with get/set', () => {
10
- const c = new Clazz(456);
11
- expect(c.something).toBe(123_456_789 & 456);
12
- c.setSomething(123);
13
- expect(c.something).toBe(123 & 456);
14
- });
15
- });
16
- describe('TEST_PURE', () => {
17
- it('should have the correct value', () => {
18
- expect(TEST_PURE).toBe('testRoot');
19
- });
20
- });
21
- describe('dynamic()', () => {
22
- it('should allow dynamic import usage', async () => {
23
- expect(await dynamic(5, 37)).toBe(42);
24
- });
25
- });
26
- describe('bigIntExp()', () => {
27
- it('should return the correct value', () => {
28
- expect(bigIntExp()).toBe(123456789n * 137858491849n);
29
- });
30
- });
31
- describe('jsOpExp', () => {
32
- it('handles 0 ?? 42 correctly', () => {
33
- expect(jsOpExp(0)).toBe(0);
34
- });
35
- it('handles undefined ?? 42 correctly', () => {
36
- expect(jsOpExp()).toBe(42);
37
- });
38
- });
39
- describe('json()', () => {
40
- it('should return the correct value', () => {
41
- expect(json()).toBe('works');
42
- });
43
- });
44
- }
package/cjs/sample.d.ts DELETED
@@ -1 +0,0 @@
1
- export let foo: string;
package/cjs/sample.js DELETED
@@ -1,4 +0,0 @@
1
- // Copyright 2017-2025 @pezkuwi/dev authors & contributors
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
- module.exports = { foo: 'bar' };
package/cjs/types.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export type EchoString = string;
2
- export type BlahType = number;
package/cjs/types.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
package/detectOther.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare const _default: never[];
2
- export default _default;
package/detectOther.js DELETED
@@ -1 +0,0 @@
1
- export default [];
package/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export {};
package/index.js DELETED
@@ -1,2 +0,0 @@
1
- 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');
2
- export {};
package/package.json.new DELETED
@@ -1,315 +0,0 @@
1
- {
2
- "name": "@pezkuwi/dev",
3
- "version": "0.84.3",
4
- "main": "./cjs/index.js",
5
- "exports": {
6
- "./cjs/package.json": "./cjs/package.json",
7
- "./cjs/*": "./cjs/*.js",
8
- ".": {
9
- "module": {
10
- "types": "./index.d.ts",
11
- "default": "./index.js"
12
- },
13
- "require": {
14
- "types": "./cjs/index.d.ts",
15
- "default": "./cjs/index.js"
16
- },
17
- "default": {
18
- "types": "./index.d.ts",
19
- "default": "./index.js"
20
- }
21
- },
22
- "./config/eslint": "./config/eslint.js",
23
- "./config/eslint.rules": "./config/eslint.rules.js",
24
- "./config/prettier.cjs": "./config/prettier.cjs",
25
- "./config/prettier": "./config/prettier.cjs",
26
- "./config/rollup": "./config/rollup.js",
27
- "./config/tsconfig.json": "./config/tsconfig.json",
28
- "./config/typedoc.cjs": "./config/typedoc.cjs",
29
- "./config/typedoc": "./config/typedoc.cjs",
30
- "./detectOther": {
31
- "module": {
32
- "types": "./detectOther.d.ts",
33
- "default": "./detectOther.js"
34
- },
35
- "require": {
36
- "types": "./cjs/detectOther.d.ts",
37
- "default": "./cjs/detectOther.js"
38
- },
39
- "default": {
40
- "types": "./detectOther.d.ts",
41
- "default": "./detectOther.js"
42
- }
43
- },
44
- "./package.json": {
45
- "require": "./cjs/package.json",
46
- "default": "./package.json"
47
- },
48
- "./packageInfo.js": {
49
- "module": {
50
- "types": "./packageInfo.d.ts",
51
- "default": "./packageInfo.js"
52
- },
53
- "require": {
54
- "types": "./cjs/packageInfo.d.ts",
55
- "default": "./cjs/packageInfo.js"
56
- },
57
- "default": {
58
- "types": "./packageInfo.d.ts",
59
- "default": "./packageInfo.js"
60
- }
61
- },
62
- "./packageInfo": {
63
- "module": {
64
- "types": "./packageInfo.d.ts",
65
- "default": "./packageInfo.js"
66
- },
67
- "require": {
68
- "types": "./cjs/packageInfo.d.ts",
69
- "default": "./cjs/packageInfo.js"
70
- },
71
- "default": {
72
- "types": "./packageInfo.d.ts",
73
- "default": "./packageInfo.js"
74
- }
75
- },
76
- "./root": {
77
- "module": {
78
- "types": "./root.d.ts",
79
- "default": "./root.js"
80
- },
81
- "require": {
82
- "types": "./cjs/root.d.ts",
83
- "default": "./cjs/root.js"
84
- },
85
- "default": {
86
- "types": "./root.d.ts",
87
- "default": "./root.js"
88
- }
89
- },
90
- "./rootJs": {
91
- "module": {
92
- "types": "./rootJs/index.d.ts",
93
- "default": "./rootJs/index.js"
94
- },
95
- "require": {
96
- "types": "./cjs/rootJs/index.d.ts",
97
- "default": "./cjs/rootJs/index.js"
98
- },
99
- "default": {
100
- "types": "./rootJs/index.d.ts",
101
- "default": "./rootJs/index.js"
102
- }
103
- },
104
- "./rootJs/augmented": {
105
- "module": {
106
- "types": "./rootJs/augmented.d.ts",
107
- "default": "./rootJs/augmented.js"
108
- },
109
- "require": {
110
- "types": "./cjs/rootJs/augmented.d.ts",
111
- "default": "./cjs/rootJs/augmented.js"
112
- },
113
- "default": {
114
- "types": "./rootJs/augmented.d.ts",
115
- "default": "./rootJs/augmented.js"
116
- }
117
- },
118
- "./rootJs/Clazz": {
119
- "module": {
120
- "types": "./rootJs/Clazz.d.ts",
121
- "default": "./rootJs/Clazz.js"
122
- },
123
- "require": {
124
- "types": "./cjs/rootJs/Clazz.d.ts",
125
- "default": "./cjs/rootJs/Clazz.js"
126
- },
127
- "default": {
128
- "types": "./rootJs/Clazz.d.ts",
129
- "default": "./rootJs/Clazz.js"
130
- }
131
- },
132
- "./rootJs/dynamic.d.mts": "./rootJs/dynamic.d.mts",
133
- "./rootJs/dynamic.mjs": "./rootJs/dynamic.mjs",
134
- "./rootJs/dynamic": "./rootJs/dynamic.mjs",
135
- "./rootJs/Jsx": {
136
- "module": {
137
- "types": "./rootJs/Jsx.d.ts",
138
- "default": "./rootJs/Jsx.js"
139
- },
140
- "require": {
141
- "types": "./cjs/rootJs/Jsx.d.ts",
142
- "default": "./cjs/rootJs/Jsx.js"
143
- },
144
- "default": {
145
- "types": "./rootJs/Jsx.d.ts",
146
- "default": "./rootJs/Jsx.js"
147
- }
148
- },
149
- "./rootJs/JsxChild": {
150
- "module": {
151
- "types": "./rootJs/JsxChild.d.ts",
152
- "default": "./rootJs/JsxChild.js"
153
- },
154
- "require": {
155
- "types": "./cjs/rootJs/JsxChild.d.ts",
156
- "default": "./cjs/rootJs/JsxChild.js"
157
- },
158
- "default": {
159
- "types": "./rootJs/JsxChild.d.ts",
160
- "default": "./rootJs/JsxChild.js"
161
- }
162
- },
163
- "./rootJs/testJson.json": "./rootJs/testJson.json",
164
- "./rootStatic/kusama.svg": "./rootStatic/kusama.svg",
165
- "./rootTests": {
166
- "module": {
167
- "types": "./rootTests.d.ts",
168
- "default": "./rootTests.js"
169
- },
170
- "require": {
171
- "types": "./cjs/rootTests.d.ts",
172
- "default": "./cjs/rootTests.js"
173
- },
174
- "default": {
175
- "types": "./rootTests.d.ts",
176
- "default": "./rootTests.js"
177
- }
178
- },
179
- "./scripts/polkadot-ci-ghact-build.mjs": "./scripts/polkadot-ci-ghact-build.mjs",
180
- "./scripts/polkadot-ci-ghact-build": "./scripts/polkadot-ci-ghact-build.mjs",
181
- "./scripts/polkadot-ci-ghact-docs.mjs": "./scripts/polkadot-ci-ghact-docs.mjs",
182
- "./scripts/polkadot-ci-ghact-docs": "./scripts/polkadot-ci-ghact-docs.mjs",
183
- "./scripts/polkadot-ci-ghpages-force.mjs": "./scripts/polkadot-ci-ghpages-force.mjs",
184
- "./scripts/polkadot-ci-ghpages-force": "./scripts/polkadot-ci-ghpages-force.mjs",
185
- "./scripts/polkadot-dev-build-docs.mjs": "./scripts/polkadot-dev-build-docs.mjs",
186
- "./scripts/polkadot-dev-build-docs": "./scripts/polkadot-dev-build-docs.mjs",
187
- "./scripts/polkadot-dev-build-ts.mjs": "./scripts/polkadot-dev-build-ts.mjs",
188
- "./scripts/polkadot-dev-build-ts": "./scripts/polkadot-dev-build-ts.mjs",
189
- "./scripts/polkadot-dev-circular.mjs": "./scripts/polkadot-dev-circular.mjs",
190
- "./scripts/polkadot-dev-circular": "./scripts/polkadot-dev-circular.mjs",
191
- "./scripts/polkadot-dev-clean-build.mjs": "./scripts/polkadot-dev-clean-build.mjs",
192
- "./scripts/polkadot-dev-clean-build": "./scripts/polkadot-dev-clean-build.mjs",
193
- "./scripts/polkadot-dev-contrib.mjs": "./scripts/polkadot-dev-contrib.mjs",
194
- "./scripts/polkadot-dev-contrib": "./scripts/polkadot-dev-contrib.mjs",
195
- "./scripts/polkadot-dev-copy-dir.mjs": "./scripts/polkadot-dev-copy-dir.mjs",
196
- "./scripts/polkadot-dev-copy-dir": "./scripts/polkadot-dev-copy-dir.mjs",
197
- "./scripts/polkadot-dev-copy-to.mjs": "./scripts/polkadot-dev-copy-to.mjs",
198
- "./scripts/polkadot-dev-copy-to": "./scripts/polkadot-dev-copy-to.mjs",
199
- "./scripts/polkadot-dev-deno-map.mjs": "./scripts/polkadot-dev-deno-map.mjs",
200
- "./scripts/polkadot-dev-deno-map": "./scripts/polkadot-dev-deno-map.mjs",
201
- "./scripts/polkadot-dev-run-lint.mjs": "./scripts/polkadot-dev-run-lint.mjs",
202
- "./scripts/polkadot-dev-run-lint": "./scripts/polkadot-dev-run-lint.mjs",
203
- "./scripts/polkadot-dev-run-node-ts.mjs": "./scripts/polkadot-dev-run-node-ts.mjs",
204
- "./scripts/polkadot-dev-run-node-ts": "./scripts/polkadot-dev-run-node-ts.mjs",
205
- "./scripts/polkadot-dev-run-test.mjs": "./scripts/polkadot-dev-run-test.mjs",
206
- "./scripts/polkadot-dev-run-test": "./scripts/polkadot-dev-run-test.mjs",
207
- "./scripts/polkadot-dev-version.mjs": "./scripts/polkadot-dev-version.mjs",
208
- "./scripts/polkadot-dev-version": "./scripts/polkadot-dev-version.mjs",
209
- "./scripts/polkadot-dev-yarn-only.mjs": "./scripts/polkadot-dev-yarn-only.mjs",
210
- "./scripts/polkadot-dev-yarn-only": "./scripts/polkadot-dev-yarn-only.mjs",
211
- "./scripts/polkadot-exec-eslint.mjs": "./scripts/polkadot-exec-eslint.mjs",
212
- "./scripts/polkadot-exec-eslint": "./scripts/polkadot-exec-eslint.mjs",
213
- "./scripts/polkadot-exec-ghpages.mjs": "./scripts/polkadot-exec-ghpages.mjs",
214
- "./scripts/polkadot-exec-ghpages": "./scripts/polkadot-exec-ghpages.mjs",
215
- "./scripts/polkadot-exec-ghrelease.mjs": "./scripts/polkadot-exec-ghrelease.mjs",
216
- "./scripts/polkadot-exec-ghrelease": "./scripts/polkadot-exec-ghrelease.mjs",
217
- "./scripts/polkadot-exec-node-test.mjs": "./scripts/polkadot-exec-node-test.mjs",
218
- "./scripts/polkadot-exec-node-test": "./scripts/polkadot-exec-node-test.mjs",
219
- "./scripts/polkadot-exec-rollup.mjs": "./scripts/polkadot-exec-rollup.mjs",
220
- "./scripts/polkadot-exec-rollup": "./scripts/polkadot-exec-rollup.mjs",
221
- "./scripts/polkadot-exec-tsc.mjs": "./scripts/polkadot-exec-tsc.mjs",
222
- "./scripts/polkadot-exec-tsc": "./scripts/polkadot-exec-tsc.mjs",
223
- "./scripts/polkadot-exec-webpack.mjs": "./scripts/polkadot-exec-webpack.mjs",
224
- "./scripts/polkadot-exec-webpack": "./scripts/polkadot-exec-webpack.mjs",
225
- "./scripts/util.mjs": "./scripts/util.mjs",
226
- "./scripts/util": "./scripts/util.mjs",
227
- "./types": {
228
- "module": {
229
- "types": "./types.d.ts",
230
- "default": "./types.js"
231
- },
232
- "require": {
233
- "types": "./cjs/types.d.ts",
234
- "default": "./cjs/types.js"
235
- },
236
- "default": {
237
- "types": "./types.d.ts",
238
- "default": "./types.js"
239
- }
240
- }
241
- },
242
- "bin": {
243
- "polkadot-ci-ghact-build": "./scripts/polkadot-ci-ghact-build.mjs",
244
- "polkadot-ci-ghact-docs": "./scripts/polkadot-ci-ghact-docs.mjs",
245
- "polkadot-ci-ghpages-force": "./scripts/polkadot-ci-ghpages-force.mjs",
246
- "polkadot-dev-build-docs": "./scripts/polkadot-dev-build-docs.mjs",
247
- "polkadot-dev-build-ts": "./scripts/polkadot-dev-build-ts.mjs",
248
- "polkadot-dev-circular": "./scripts/polkadot-dev-circular.mjs",
249
- "polkadot-dev-clean-build": "./scripts/polkadot-dev-clean-build.mjs",
250
- "polkadot-dev-contrib": "./scripts/polkadot-dev-contrib.mjs",
251
- "polkadot-dev-copy-dir": "./scripts/polkadot-dev-copy-dir.mjs",
252
- "polkadot-dev-copy-to": "./scripts/polkadot-dev-copy-to.mjs",
253
- "polkadot-dev-deno-map": "./scripts/polkadot-dev-deno-map.mjs",
254
- "polkadot-dev-run-lint": "./scripts/polkadot-dev-run-lint.mjs",
255
- "polkadot-dev-run-node-ts": "./scripts/polkadot-dev-run-node-ts.mjs",
256
- "polkadot-dev-run-test": "./scripts/polkadot-dev-run-test.mjs",
257
- "polkadot-dev-version": "./scripts/polkadot-dev-version.mjs",
258
- "polkadot-dev-yarn-only": "./scripts/polkadot-dev-yarn-only.mjs",
259
- "polkadot-exec-eslint": "./scripts/polkadot-exec-eslint.mjs",
260
- "polkadot-exec-ghpages": "./scripts/polkadot-exec-ghpages.mjs",
261
- "polkadot-exec-ghrelease": "./scripts/polkadot-exec-ghrelease.mjs",
262
- "polkadot-exec-node-test": "./scripts/polkadot-exec-node-test.mjs",
263
- "polkadot-exec-rollup": "./scripts/polkadot-exec-rollup.mjs",
264
- "polkadot-exec-tsc": "./scripts/polkadot-exec-tsc.mjs",
265
- "polkadot-exec-webpack": "./scripts/polkadot-exec-webpack.mjs"
266
- },
267
- "sideEffects": false,
268
- "type": "module",
269
- "dependencies": {
270
- "@eslint/js": "^8.56.0",
271
- "@polkadot/dev-test": "^0.83.3",
272
- "@polkadot/dev-ts": "^0.83.3",
273
- "@rollup/plugin-alias": "^5.1.1",
274
- "@rollup/plugin-commonjs": "^25.0.8",
275
- "@rollup/plugin-dynamic-import-vars": "^2.1.5",
276
- "@rollup/plugin-inject": "^5.0.5",
277
- "@rollup/plugin-json": "^6.1.0",
278
- "@rollup/plugin-node-resolve": "^15.3.1",
279
- "@tsconfig/strictest": "^2.0.2",
280
- "@typescript-eslint/eslint-plugin": "^6.19.1",
281
- "@typescript-eslint/parser": "^6.19.1",
282
- "eslint": "^8.56.0",
283
- "eslint-config-standard": "^17.1.0",
284
- "eslint-import-resolver-node": "^0.3.9",
285
- "eslint-import-resolver-typescript": "^3.6.1",
286
- "eslint-plugin-deprecation": "^2.0.0",
287
- "eslint-plugin-header": "^3.1.1",
288
- "eslint-plugin-import": "^2.29.1",
289
- "eslint-plugin-import-newlines": "^1.3.4",
290
- "eslint-plugin-jest": "^27.6.3",
291
- "eslint-plugin-n": "^16.6.2",
292
- "eslint-plugin-promise": "^6.1.1",
293
- "eslint-plugin-react": "^7.33.2",
294
- "eslint-plugin-react-hooks": "^4.6.0",
295
- "eslint-plugin-simple-import-sort": "^10.0.0",
296
- "eslint-plugin-sort-destructure-keys": "^1.5.0",
297
- "espree": "^9.6.1",
298
- "gh-pages": "^6.1.1",
299
- "gh-release": "^7.0.2",
300
- "globals": "^13.24.0",
301
- "json5": "^2.2.3",
302
- "madge": "^6.1.0",
303
- "rollup": "^4.9.6",
304
- "rollup-plugin-cleanup": "^3.2.1",
305
- "tslib": "^2.7.0",
306
- "typescript": "^5.5.4",
307
- "webpack": "^5.89.0",
308
- "webpack-cli": "^5.1.4",
309
- "webpack-dev-server": "^4.15.1",
310
- "webpack-merge": "^5.10.0",
311
- "webpack-subresource-integrity": "^5.2.0-rc.1",
312
- "yargs": "^17.7.2"
313
- },
314
- "peerDependencies": null
315
- }
package/packageInfo.d.ts DELETED
@@ -1,6 +0,0 @@
1
- export declare const packageInfo: {
2
- name: string;
3
- path: string;
4
- type: string;
5
- version: string;
6
- };
package/packageInfo.js DELETED
@@ -1 +0,0 @@
1
- export const packageInfo = { name: '@pezkuwi/dev', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '0.83.3' };
package/root.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './rootJs/index.js';
2
- export declare const TEST_PURE = "testRoot";
package/root.js DELETED
@@ -1,2 +0,0 @@
1
- export * from './rootJs/index.js';
2
- export const TEST_PURE = /*#__PURE__*/ 'testRoot';
package/rootJs/Clazz.d.ts DELETED
@@ -1,18 +0,0 @@
1
- export declare class Clazz {
2
- #private;
3
- readonly and: number;
4
- static staticProperty: string;
5
- static staticFunction: () => string | null;
6
- /**
7
- * @param and the number we should and with
8
- */
9
- constructor(and: number);
10
- get something(): number;
11
- doAsync(): Promise<boolean>;
12
- /**
13
- * @description Sets something to something
14
- * @param something The addition
15
- */
16
- setSomething: (something?: number) => number;
17
- toString(): string;
18
- }
package/rootJs/Clazz.js DELETED
@@ -1,32 +0,0 @@
1
- export class Clazz {
2
- #something = 123_456_789;
3
- and;
4
- static staticProperty = 'foobar';
5
- static staticFunction = () => Clazz.staticProperty;
6
- /**
7
- * @param and the number we should and with
8
- */
9
- constructor(and) {
10
- this.and = and;
11
- this.#something = this.#something & and;
12
- }
13
- get something() {
14
- return this.#something;
15
- }
16
- async doAsync() {
17
- const res = await new Promise((resolve) => resolve(true));
18
- console.log(res);
19
- return res;
20
- }
21
- /**
22
- * @description Sets something to something
23
- * @param something The addition
24
- */
25
- setSomething = (something) => {
26
- this.#something = (something ?? 123_456) & this.and;
27
- return this.#something;
28
- };
29
- toString() {
30
- return `something=${this.#something}`;
31
- }
32
- }
package/rootJs/Jsx.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import type { Props } from './JsxChild.js';
2
- import React from 'react';
3
- declare function Hidden({ children, className }: Props): React.ReactElement<Props>;
4
- declare const _default: React.MemoExoticComponent<typeof Hidden>;
5
- export default _default;