@pezkuwi/dev 0.85.3 → 0.85.5
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/LICENSE +201 -0
- package/cjs/detectOther.d.ts +2 -0
- package/cjs/detectOther.js +3 -0
- package/cjs/index.d.ts +1 -0
- package/cjs/index.js +3 -0
- package/cjs/package.json +3 -0
- package/cjs/packageInfo.d.ts +6 -0
- package/cjs/packageInfo.js +4 -0
- package/cjs/root.d.ts +2 -0
- package/cjs/root.js +6 -0
- package/cjs/rootJs/Clazz.d.ts +18 -0
- package/cjs/rootJs/Clazz.js +36 -0
- package/cjs/rootJs/Jsx.d.ts +5 -0
- package/cjs/rootJs/Jsx.js +16 -0
- package/cjs/rootJs/JsxChild.d.ts +9 -0
- package/cjs/rootJs/JsxChild.js +9 -0
- package/cjs/rootJs/augmented.d.ts +8 -0
- package/cjs/rootJs/augmented.js +3 -0
- package/cjs/rootJs/index.d.ts +19 -0
- package/cjs/rootJs/index.js +51 -0
- package/cjs/rootTests.d.ts +2 -0
- package/cjs/rootTests.js +44 -0
- package/cjs/sample.js +4 -0
- package/cjs/types.d.ts +2 -0
- package/cjs/types.js +2 -0
- package/config/eslint.js +14 -2
- package/config/eslint.rules.js +1 -1
- package/config/prettier.cjs +1 -1
- package/config/rollup.js +1 -1
- package/config/typedoc.cjs +1 -1
- package/detectOther.d.ts +2 -0
- package/detectOther.js +1 -0
- package/index.d.ts +1 -0
- package/index.js +2 -0
- package/package.json +239 -17
- package/packageInfo.d.ts +6 -0
- package/packageInfo.js +1 -0
- package/root.d.ts +2 -0
- package/root.js +2 -0
- package/rootJs/Clazz.d.ts +18 -0
- package/rootJs/Clazz.js +32 -0
- package/rootJs/Jsx.d.ts +5 -0
- package/rootJs/Jsx.js +13 -0
- package/rootJs/JsxChild.d.ts +9 -0
- package/rootJs/JsxChild.js +6 -0
- package/rootJs/augmented.d.ts +8 -0
- package/rootJs/augmented.js +2 -0
- package/rootJs/dynamic.d.mts +4 -0
- package/rootJs/dynamic.mjs +13 -0
- package/rootJs/index.d.ts +19 -0
- package/rootJs/index.js +39 -0
- package/rootJs/testJson.json +5 -0
- package/rootStatic/zagros.svg +1 -0
- package/rootTests.d.ts +2 -0
- package/rootTests.js +41 -0
- package/scripts/pezkuwi-ci-ghact-build.mjs +1 -1
- package/scripts/pezkuwi-ci-ghact-docs.mjs +1 -1
- package/scripts/pezkuwi-ci-ghpages-force.mjs +1 -1
- package/scripts/pezkuwi-dev-build-docs.mjs +1 -1
- package/scripts/pezkuwi-dev-build-ts.mjs +5 -3
- package/scripts/pezkuwi-dev-circular.mjs +1 -1
- package/scripts/pezkuwi-dev-clean-build.mjs +1 -1
- package/scripts/pezkuwi-dev-contrib.mjs +1 -1
- package/scripts/pezkuwi-dev-copy-dir.mjs +1 -1
- package/scripts/pezkuwi-dev-copy-to.mjs +1 -1
- package/scripts/pezkuwi-dev-deno-map.mjs +1 -1
- package/scripts/pezkuwi-dev-run-lint.mjs +1 -1
- package/scripts/pezkuwi-dev-run-node-ts.mjs +1 -1
- package/scripts/pezkuwi-dev-run-test.mjs +1 -1
- package/scripts/pezkuwi-dev-version.mjs +1 -1
- package/scripts/pezkuwi-dev-yarn-only.mjs +1 -1
- package/scripts/pezkuwi-exec-eslint.mjs +1 -1
- package/scripts/pezkuwi-exec-ghpages.mjs +1 -1
- package/scripts/pezkuwi-exec-ghrelease.mjs +1 -1
- package/scripts/pezkuwi-exec-node-test.mjs +1 -1
- package/scripts/pezkuwi-exec-rollup.mjs +1 -1
- package/scripts/pezkuwi-exec-tsc.mjs +1 -1
- package/scripts/pezkuwi-exec-webpack.mjs +1 -1
- package/scripts/util.mjs +1 -1
- package/types.d.ts +2 -0
- package/types.js +1 -0
- package/.skip-deno +0 -0
- package/tsconfig.build.json +0 -18
- package/tsconfig.build.tsbuildinfo +0 -1
- package/tsconfig.config.json +0 -14
- package/tsconfig.config.tsbuildinfo +0 -1
- package/tsconfig.scripts.json +0 -14
- package/tsconfig.scripts.tsbuildinfo +0 -1
- package/tsconfig.spec.json +0 -18
- package/tsconfig.spec.tsbuildinfo +0 -1
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"author": "
|
|
2
|
+
"author": "Pezkuwi Team <team@pezkuwichain.app>",
|
|
3
3
|
"bugs": "https://github.com/pezkuwichain/pezkuwi-dev/issues",
|
|
4
4
|
"description": "A collection of shared CI scripts and development environment used by @pezkuwi projects",
|
|
5
5
|
"engines": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"sideEffects": false,
|
|
17
17
|
"type": "module",
|
|
18
|
-
"version": "0.85.
|
|
18
|
+
"version": "0.85.5",
|
|
19
19
|
"bin": {
|
|
20
20
|
"pezkuwi-ci-ghact-build": "./scripts/pezkuwi-ci-ghact-build.mjs",
|
|
21
21
|
"pezkuwi-ci-ghact-docs": "./scripts/pezkuwi-ci-ghact-docs.mjs",
|
|
@@ -41,17 +41,250 @@
|
|
|
41
41
|
"pezkuwi-exec-tsc": "./scripts/pezkuwi-exec-tsc.mjs",
|
|
42
42
|
"pezkuwi-exec-webpack": "./scripts/pezkuwi-exec-webpack.mjs"
|
|
43
43
|
},
|
|
44
|
+
"main": "./cjs/index.js",
|
|
45
|
+
"module": "./cjs/index.js",
|
|
46
|
+
"types": "./cjs/index.d.ts",
|
|
44
47
|
"exports": {
|
|
48
|
+
"./cjs/package.json": "./cjs/package.json",
|
|
49
|
+
"./cjs/*": "./cjs/*.js",
|
|
50
|
+
".": {
|
|
51
|
+
"module": {
|
|
52
|
+
"types": "./index.d.ts",
|
|
53
|
+
"default": "./index.js"
|
|
54
|
+
},
|
|
55
|
+
"require": {
|
|
56
|
+
"types": "./cjs/index.d.ts",
|
|
57
|
+
"default": "./cjs/index.js"
|
|
58
|
+
},
|
|
59
|
+
"default": {
|
|
60
|
+
"types": "./index.d.ts",
|
|
61
|
+
"default": "./index.js"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
45
64
|
"./config/eslint": "./config/eslint.js",
|
|
65
|
+
"./config/eslint.rules": "./config/eslint.rules.js",
|
|
46
66
|
"./config/prettier.cjs": "./config/prettier.cjs",
|
|
67
|
+
"./config/prettier": "./config/prettier.cjs",
|
|
68
|
+
"./config/rollup": "./config/rollup.js",
|
|
47
69
|
"./config/tsconfig.json": "./config/tsconfig.json",
|
|
48
|
-
"./
|
|
49
|
-
"./
|
|
70
|
+
"./config/typedoc.cjs": "./config/typedoc.cjs",
|
|
71
|
+
"./config/typedoc": "./config/typedoc.cjs",
|
|
72
|
+
"./detectOther": {
|
|
73
|
+
"module": {
|
|
74
|
+
"types": "./detectOther.d.ts",
|
|
75
|
+
"default": "./detectOther.js"
|
|
76
|
+
},
|
|
77
|
+
"require": {
|
|
78
|
+
"types": "./cjs/detectOther.d.ts",
|
|
79
|
+
"default": "./cjs/detectOther.js"
|
|
80
|
+
},
|
|
81
|
+
"default": {
|
|
82
|
+
"types": "./detectOther.d.ts",
|
|
83
|
+
"default": "./detectOther.js"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"./package.json": {
|
|
87
|
+
"require": "./cjs/package.json",
|
|
88
|
+
"default": "./package.json"
|
|
89
|
+
},
|
|
90
|
+
"./packageInfo.js": {
|
|
91
|
+
"module": {
|
|
92
|
+
"types": "./packageInfo.d.ts",
|
|
93
|
+
"default": "./packageInfo.js"
|
|
94
|
+
},
|
|
95
|
+
"require": {
|
|
96
|
+
"types": "./cjs/packageInfo.d.ts",
|
|
97
|
+
"default": "./cjs/packageInfo.js"
|
|
98
|
+
},
|
|
99
|
+
"default": {
|
|
100
|
+
"types": "./packageInfo.d.ts",
|
|
101
|
+
"default": "./packageInfo.js"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"./packageInfo": {
|
|
105
|
+
"module": {
|
|
106
|
+
"types": "./packageInfo.d.ts",
|
|
107
|
+
"default": "./packageInfo.js"
|
|
108
|
+
},
|
|
109
|
+
"require": {
|
|
110
|
+
"types": "./cjs/packageInfo.d.ts",
|
|
111
|
+
"default": "./cjs/packageInfo.js"
|
|
112
|
+
},
|
|
113
|
+
"default": {
|
|
114
|
+
"types": "./packageInfo.d.ts",
|
|
115
|
+
"default": "./packageInfo.js"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"./root": {
|
|
119
|
+
"module": {
|
|
120
|
+
"types": "./root.d.ts",
|
|
121
|
+
"default": "./root.js"
|
|
122
|
+
},
|
|
123
|
+
"require": {
|
|
124
|
+
"types": "./cjs/root.d.ts",
|
|
125
|
+
"default": "./cjs/root.js"
|
|
126
|
+
},
|
|
127
|
+
"default": {
|
|
128
|
+
"types": "./root.d.ts",
|
|
129
|
+
"default": "./root.js"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"./rootJs": {
|
|
133
|
+
"module": {
|
|
134
|
+
"types": "./rootJs/index.d.ts",
|
|
135
|
+
"default": "./rootJs/index.js"
|
|
136
|
+
},
|
|
137
|
+
"require": {
|
|
138
|
+
"types": "./cjs/rootJs/index.d.ts",
|
|
139
|
+
"default": "./cjs/rootJs/index.js"
|
|
140
|
+
},
|
|
141
|
+
"default": {
|
|
142
|
+
"types": "./rootJs/index.d.ts",
|
|
143
|
+
"default": "./rootJs/index.js"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"./rootJs/augmented": {
|
|
147
|
+
"module": {
|
|
148
|
+
"types": "./rootJs/augmented.d.ts",
|
|
149
|
+
"default": "./rootJs/augmented.js"
|
|
150
|
+
},
|
|
151
|
+
"require": {
|
|
152
|
+
"types": "./cjs/rootJs/augmented.d.ts",
|
|
153
|
+
"default": "./cjs/rootJs/augmented.js"
|
|
154
|
+
},
|
|
155
|
+
"default": {
|
|
156
|
+
"types": "./rootJs/augmented.d.ts",
|
|
157
|
+
"default": "./rootJs/augmented.js"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"./rootJs/Clazz": {
|
|
161
|
+
"module": {
|
|
162
|
+
"types": "./rootJs/Clazz.d.ts",
|
|
163
|
+
"default": "./rootJs/Clazz.js"
|
|
164
|
+
},
|
|
165
|
+
"require": {
|
|
166
|
+
"types": "./cjs/rootJs/Clazz.d.ts",
|
|
167
|
+
"default": "./cjs/rootJs/Clazz.js"
|
|
168
|
+
},
|
|
169
|
+
"default": {
|
|
170
|
+
"types": "./rootJs/Clazz.d.ts",
|
|
171
|
+
"default": "./rootJs/Clazz.js"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"./rootJs/dynamic.d.mts": "./rootJs/dynamic.d.mts",
|
|
175
|
+
"./rootJs/dynamic.mjs": "./rootJs/dynamic.mjs",
|
|
176
|
+
"./rootJs/dynamic": "./rootJs/dynamic.mjs",
|
|
177
|
+
"./rootJs/Jsx": {
|
|
178
|
+
"module": {
|
|
179
|
+
"types": "./rootJs/Jsx.d.ts",
|
|
180
|
+
"default": "./rootJs/Jsx.js"
|
|
181
|
+
},
|
|
182
|
+
"require": {
|
|
183
|
+
"types": "./cjs/rootJs/Jsx.d.ts",
|
|
184
|
+
"default": "./cjs/rootJs/Jsx.js"
|
|
185
|
+
},
|
|
186
|
+
"default": {
|
|
187
|
+
"types": "./rootJs/Jsx.d.ts",
|
|
188
|
+
"default": "./rootJs/Jsx.js"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"./rootJs/JsxChild": {
|
|
192
|
+
"module": {
|
|
193
|
+
"types": "./rootJs/JsxChild.d.ts",
|
|
194
|
+
"default": "./rootJs/JsxChild.js"
|
|
195
|
+
},
|
|
196
|
+
"require": {
|
|
197
|
+
"types": "./cjs/rootJs/JsxChild.d.ts",
|
|
198
|
+
"default": "./cjs/rootJs/JsxChild.js"
|
|
199
|
+
},
|
|
200
|
+
"default": {
|
|
201
|
+
"types": "./rootJs/JsxChild.d.ts",
|
|
202
|
+
"default": "./rootJs/JsxChild.js"
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
"./rootJs/testJson.json": "./rootJs/testJson.json",
|
|
206
|
+
"./rootStatic/zagros.svg": "./rootStatic/zagros.svg",
|
|
207
|
+
"./rootTests": {
|
|
208
|
+
"module": {
|
|
209
|
+
"types": "./rootTests.d.ts",
|
|
210
|
+
"default": "./rootTests.js"
|
|
211
|
+
},
|
|
212
|
+
"require": {
|
|
213
|
+
"types": "./cjs/rootTests.d.ts",
|
|
214
|
+
"default": "./cjs/rootTests.js"
|
|
215
|
+
},
|
|
216
|
+
"default": {
|
|
217
|
+
"types": "./rootTests.d.ts",
|
|
218
|
+
"default": "./rootTests.js"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
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
|
+
"./scripts/util.mjs": "./scripts/util.mjs",
|
|
268
|
+
"./scripts/util": "./scripts/util.mjs",
|
|
269
|
+
"./types": {
|
|
270
|
+
"module": {
|
|
271
|
+
"types": "./types.d.ts",
|
|
272
|
+
"default": "./types.js"
|
|
273
|
+
},
|
|
274
|
+
"require": {
|
|
275
|
+
"types": "./cjs/types.d.ts",
|
|
276
|
+
"default": "./cjs/types.js"
|
|
277
|
+
},
|
|
278
|
+
"default": {
|
|
279
|
+
"types": "./types.d.ts",
|
|
280
|
+
"default": "./types.js"
|
|
281
|
+
}
|
|
282
|
+
}
|
|
50
283
|
},
|
|
51
284
|
"dependencies": {
|
|
52
285
|
"@eslint/js": "^8.56.0",
|
|
53
|
-
"@pezkuwi/dev-test": "^0.
|
|
54
|
-
"@pezkuwi/dev-ts": "^0.
|
|
286
|
+
"@pezkuwi/dev-test": "^0.85.3",
|
|
287
|
+
"@pezkuwi/dev-ts": "^0.85.3",
|
|
55
288
|
"@rollup/plugin-alias": "^5.1.1",
|
|
56
289
|
"@rollup/plugin-commonjs": "^25.0.8",
|
|
57
290
|
"@rollup/plugin-dynamic-import-vars": "^2.1.5",
|
|
@@ -92,16 +325,5 @@
|
|
|
92
325
|
"webpack-merge": "^5.10.0",
|
|
93
326
|
"webpack-subresource-integrity": "^5.2.0-rc.1",
|
|
94
327
|
"yargs": "^17.7.2"
|
|
95
|
-
},
|
|
96
|
-
"devDependencies": {
|
|
97
|
-
"@testing-library/react": "^14.1.2",
|
|
98
|
-
"@types/node": "^20.11.5",
|
|
99
|
-
"@types/react": "^18.2.48",
|
|
100
|
-
"@types/react-dom": "^18.2.18",
|
|
101
|
-
"@types/yargs": "^17.0.32",
|
|
102
|
-
"react": "^18.2.0",
|
|
103
|
-
"react-dom": "^18.2.0",
|
|
104
|
-
"react-is": "^18.2.0",
|
|
105
|
-
"styled-components": "^6.1.8"
|
|
106
328
|
}
|
|
107
329
|
}
|
package/packageInfo.d.ts
ADDED
package/packageInfo.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
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.85.5' };
|
package/root.d.ts
ADDED
package/root.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
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
ADDED
package/rootJs/Jsx.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React, { useCallback, useState } from 'react';
|
|
3
|
+
import { styled } from 'styled-components';
|
|
4
|
+
import Child from './JsxChild.js';
|
|
5
|
+
function Hidden({ children, className }) {
|
|
6
|
+
const [isMessageVisible, setMessageVisibility] = useState(false);
|
|
7
|
+
const onShow = useCallback((e) => setMessageVisibility(e.target.checked), []);
|
|
8
|
+
return (_jsxs(StyledDiv, { className: className, children: [_jsx("label", { htmlFor: 'toggle', children: "Show Message" }), _jsx("input", { checked: isMessageVisible, id: 'toggle', onChange: onShow, type: 'checkbox' }), isMessageVisible && (_jsxs(_Fragment, { children: [children, _jsx(Child, { label: 'hello' })] }))] }));
|
|
9
|
+
}
|
|
10
|
+
const StyledDiv = styled.div `
|
|
11
|
+
background: red;
|
|
12
|
+
`;
|
|
13
|
+
export default React.memo(Hidden);
|
|
@@ -0,0 +1,9 @@
|
|
|
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;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright 2017-2026 @pezkuwi/dev authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Returns the sum of 2 numbers
|
|
6
|
+
*
|
|
7
|
+
* @param {number} a
|
|
8
|
+
* @param {number} b
|
|
9
|
+
* @returns {number}
|
|
10
|
+
*/
|
|
11
|
+
export function sum (a, b) {
|
|
12
|
+
return a + b;
|
|
13
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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 };
|
package/rootJs/index.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/** This should appear as-is in the output with: 1. extension added, 2. augmented.d.ts correct */
|
|
2
|
+
import './augmented.js';
|
|
3
|
+
/** This import should appear as-in in the ouput (cjs without asserts) */
|
|
4
|
+
import testJson from './testJson.json' with { type: 'json' };
|
|
5
|
+
/** Double double work, i.e. re-exports */
|
|
6
|
+
export { Clazz } from './Clazz.js';
|
|
7
|
+
/** Function to ensure that BigInt does not have the Babel Math.pow() transform */
|
|
8
|
+
export function bigIntExp() {
|
|
9
|
+
// 123_456n * 137_858_491_849n
|
|
10
|
+
return 123456789n * (13n ** 10n);
|
|
11
|
+
}
|
|
12
|
+
/** Function to ensure that dynamic imports work */
|
|
13
|
+
export async function dynamic(a, b) {
|
|
14
|
+
// NOTE we go via this path so it points to the same location in both ESM
|
|
15
|
+
// and CJS output (a './dynamic' import would be different otherwise)
|
|
16
|
+
const { sum } = await import('./dynamic.mjs');
|
|
17
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
18
|
+
return sum(a, b);
|
|
19
|
+
}
|
|
20
|
+
/** Function to ensure we have json correctly imported */
|
|
21
|
+
export function json() {
|
|
22
|
+
return testJson.test.json;
|
|
23
|
+
}
|
|
24
|
+
/** Check support for the ?? operator */
|
|
25
|
+
export function jsOpExp(a) {
|
|
26
|
+
const defaults = {
|
|
27
|
+
a: 42,
|
|
28
|
+
b: 43,
|
|
29
|
+
c: 44
|
|
30
|
+
};
|
|
31
|
+
return a ?? defaults.a;
|
|
32
|
+
}
|
|
33
|
+
/** This is an actual check to ensure PURE is all-happy */
|
|
34
|
+
export const pureOpExp = /*#__PURE__*/ jsOpExp();
|
|
35
|
+
const fooA = 1;
|
|
36
|
+
const fooB = 2;
|
|
37
|
+
const fooC = 3;
|
|
38
|
+
const fooD = 4;
|
|
39
|
+
export { fooA, fooB, fooC, fooD };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 441 441"><defs><style>.cls-1{stroke:#000;stroke-miterlimit:10;}.cls-2{fill:#fff;}</style></defs><title>kusama-ksm-logo</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><rect class="cls-1" x="0.5" y="0.5" width="440" height="440"/><path class="cls-2" d="M373.6,127.4c-5.2-4.1-11.4-9.7-22.7-11.1-10.6-1.4-21.4,5.7-28.7,10.4s-21.1,18.5-26.8,22.7-20.3,8.1-43.8,22.2-115.7,73.3-115.7,73.3l24,.3-107,55.1H63.6L48.2,312s13.6,3.6,25-3.6v3.3s127.4-50.2,152-37.2l-15,4.4c1.3,0,25.5,1.6,25.5,1.6a34.34,34.34,0,0,0,15.4,24.8c14.6,9.6,14.9,14.9,14.9,14.9s-7.6,3.1-7.6,7c0,0,11.2-3.4,21.6-3.1a82.64,82.64,0,0,1,19.5,3.1s-.8-4.2-10.9-7-20.1-13.8-25-19.8a28,28,0,0,1-4.1-27.4c3.5-9.1,15.7-14.1,40.9-27.1,29.7-15.4,36.5-26.8,40.7-35.7s10.4-26.6,13.9-34.9c4.4-10.7,9.8-16.4,14.3-19.8s24.5-10.9,24.5-10.9S378.5,131.3,373.6,127.4Z"/></g></g></svg>
|
package/rootTests.d.ts
ADDED
package/rootTests.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export function runTests({ Clazz, TEST_PURE, bigIntExp, dynamic, jsOpExp, json }) {
|
|
2
|
+
describe('Clazz', () => {
|
|
3
|
+
it('has staticProperty', () => {
|
|
4
|
+
expect(Clazz.staticProperty).toBe('foobar');
|
|
5
|
+
});
|
|
6
|
+
it('creates an instance with get/set', () => {
|
|
7
|
+
const c = new Clazz(456);
|
|
8
|
+
expect(c.something).toBe(123_456_789 & 456);
|
|
9
|
+
c.setSomething(123);
|
|
10
|
+
expect(c.something).toBe(123 & 456);
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
describe('TEST_PURE', () => {
|
|
14
|
+
it('should have the correct value', () => {
|
|
15
|
+
expect(TEST_PURE).toBe('testRoot');
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
describe('dynamic()', () => {
|
|
19
|
+
it('should allow dynamic import usage', async () => {
|
|
20
|
+
expect(await dynamic(5, 37)).toBe(42);
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
describe('bigIntExp()', () => {
|
|
24
|
+
it('should return the correct value', () => {
|
|
25
|
+
expect(bigIntExp()).toBe(123456789n * 137858491849n);
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
describe('jsOpExp', () => {
|
|
29
|
+
it('handles 0 ?? 42 correctly', () => {
|
|
30
|
+
expect(jsOpExp(0)).toBe(0);
|
|
31
|
+
});
|
|
32
|
+
it('handles undefined ?? 42 correctly', () => {
|
|
33
|
+
expect(jsOpExp()).toBe(42);
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
describe('json()', () => {
|
|
37
|
+
it('should return the correct value', () => {
|
|
38
|
+
expect(json()).toBe('works');
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// Copyright 2017-
|
|
2
|
+
// Copyright 2017-2026 @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';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// Copyright 2017-
|
|
2
|
+
// Copyright 2017-2026 @pezkuwi/dev authors & contributors
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
|
|
5
5
|
import JSON5 from 'json5';
|
|
@@ -792,7 +792,8 @@ function buildExports () {
|
|
|
792
792
|
? pkg.main
|
|
793
793
|
: `./${pkg.main}`;
|
|
794
794
|
|
|
795
|
-
|
|
795
|
+
// Only add ./cjs/ prefix if main doesn't already start with ./cjs/
|
|
796
|
+
pkg.main = main.startsWith('./cjs/') ? main : main.replace(/^\.\//, './cjs/');
|
|
796
797
|
pkg.module = main;
|
|
797
798
|
pkg.types = main.replace('.js', '.d.ts');
|
|
798
799
|
}
|
|
@@ -806,7 +807,8 @@ function buildExports () {
|
|
|
806
807
|
? value
|
|
807
808
|
: `./${value}`;
|
|
808
809
|
|
|
809
|
-
|
|
810
|
+
// Only add ./cjs/ prefix if entry doesn't already start with ./cjs/
|
|
811
|
+
pkg[k] = entry.startsWith('./cjs/') ? entry : entry.replace(/^\.\//, './cjs/');
|
|
810
812
|
}
|
|
811
813
|
});
|
|
812
814
|
|