chayns-toolkit 3.1.1 → 3.1.2
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/lib/cli.js +19 -19
- package/lib/commands/testCommand.d.ts +4 -4
- package/lib/commands/testCommand.js +1 -2
- package/lib/commands/testCommand.js.map +1 -1
- package/lib/features/config-file/configSchema.d.ts +38 -38
- package/lib/features/config-file/loadConfig.js +25 -11
- package/lib/features/config-file/loadConfig.js.map +1 -1
- package/lib/util/format.d.ts +1 -1
- package/lib/util/getPackageManager.d.ts +1 -1
- package/lib/util/getPackageManager.js +1 -2
- package/lib/util/getPackageManager.js.map +1 -1
- package/lib/util/loadPackageJson.js +1 -2
- package/lib/util/loadPackageJson.js.map +1 -1
- package/lib/util/output.d.ts +1 -1
- package/lib/util/output.js.map +1 -1
- package/lib/util/project.js +22 -8
- package/lib/util/project.js.map +1 -1
- package/lib/util/runSteps.d.ts +2 -2
- package/lib/util/runSteps.js +1 -2
- package/lib/util/runSteps.js.map +1 -1
- package/package.json +3 -5
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type { StepParams } from "../util/runSteps";
|
|
2
|
-
|
|
2
|
+
type TestOptions = {
|
|
3
3
|
watch: boolean;
|
|
4
4
|
setupFile: string;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
type BabelPresetOptions = {
|
|
7
7
|
typescriptSupport: boolean;
|
|
8
8
|
flowSupport: boolean;
|
|
9
9
|
transpileModules: string | boolean;
|
|
10
10
|
reactRefreshSupport: boolean;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
type BabelTransformOptions = {
|
|
13
13
|
presets: Array<string | BabelPresetOptions>;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
15
|
+
export type JestConfig = Partial<{
|
|
16
16
|
transform: {
|
|
17
17
|
[glob: string]: [string, BabelTransformOptions] | string;
|
|
18
18
|
};
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.testCommand =
|
|
6
|
+
exports.testCommand = testCommand;
|
|
7
7
|
const fs_1 = __importDefault(require("fs"));
|
|
8
8
|
const jest_1 = require("jest");
|
|
9
9
|
const path_1 = __importDefault(require("path"));
|
|
@@ -61,5 +61,4 @@ function testCommand({ watch, setupFile, }) {
|
|
|
61
61
|
await (0, jest_1.run)(args);
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
-
exports.testCommand = testCommand;
|
|
65
64
|
//# sourceMappingURL=testCommand.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testCommand.js","sourceRoot":"","sources":["../../src/commands/testCommand.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"testCommand.js","sourceRoot":"","sources":["../../src/commands/testCommand.ts"],"names":[],"mappings":";;;;;AAoCA,kCA4DC;AAhGD,4CAAmB;AACnB,+BAA0B;AAC1B,gDAAuB;AACvB,2CAAuC;AACvC,6CAAyC;AAgCzC,SAAgB,WAAW,CAAC,EAC3B,KAAK,EACL,SAAS,GACI;IACb,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;QAC3B,IAAI,UAAU,GAAe;YAC5B,SAAS,EAAE;gBACV,aAAa,EAAE;oBACd,YAAY;oBACZ;wBACC,OAAO,EAAE,CAAC,qBAAqB,EAAE,mBAAmB,CAAC;qBACrD;iBACD;aACD;YACD,oBAAoB,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC;YAChD,gBAAgB,EAAE;gBACjB,wBAAwB,EAAE,YAAY;gBACtC,qFAAqF,EACpF,cAAI,CAAC,OAAO,CAAC,SAAS,EAAE,QAAQ,EAAE,cAAc,CAAC;aAClD;YACD,sBAAsB,EAAE,CAAC,sBAAsB,CAAC;YAChD,kBAAkB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<RsbuildConfig, z.ZodTypeDef, RsbuildConfig>>>;
|
|
178
178
|
jest: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodType<Partial<{
|
|
179
179
|
transform: {
|
|
180
|
-
[glob: string]:
|
|
181
|
-
presets:
|
|
180
|
+
[glob: string]: [string, {
|
|
181
|
+
presets: Array<string | {
|
|
182
182
|
typescriptSupport: boolean;
|
|
183
183
|
flowSupport: boolean;
|
|
184
184
|
transpileModules: string | boolean;
|
|
185
185
|
reactRefreshSupport: boolean;
|
|
186
|
-
}
|
|
187
|
-
}];
|
|
186
|
+
}>;
|
|
187
|
+
}] | string;
|
|
188
188
|
};
|
|
189
189
|
moduleFileExtensions: string[];
|
|
190
190
|
testPathIgnorePatterns: string[];
|
|
@@ -195,14 +195,14 @@ export declare const configSchema: z.ZodObject<{
|
|
|
195
195
|
testEnvironment: "jsdom" | "node";
|
|
196
196
|
}>, z.ZodTypeDef, Partial<{
|
|
197
197
|
transform: {
|
|
198
|
-
[glob: string]:
|
|
199
|
-
presets:
|
|
198
|
+
[glob: string]: [string, {
|
|
199
|
+
presets: Array<string | {
|
|
200
200
|
typescriptSupport: boolean;
|
|
201
201
|
flowSupport: boolean;
|
|
202
202
|
transpileModules: string | boolean;
|
|
203
203
|
reactRefreshSupport: boolean;
|
|
204
|
-
}
|
|
205
|
-
}];
|
|
204
|
+
}>;
|
|
205
|
+
}] | string;
|
|
206
206
|
};
|
|
207
207
|
moduleFileExtensions: string[];
|
|
208
208
|
testPathIgnorePatterns: string[];
|
|
@@ -213,14 +213,14 @@ export declare const configSchema: z.ZodObject<{
|
|
|
213
213
|
testEnvironment: "jsdom" | "node";
|
|
214
214
|
}>>], z.ZodUnknown>, z.ZodType<Partial<{
|
|
215
215
|
transform: {
|
|
216
|
-
[glob: string]:
|
|
217
|
-
presets:
|
|
216
|
+
[glob: string]: [string, {
|
|
217
|
+
presets: Array<string | {
|
|
218
218
|
typescriptSupport: boolean;
|
|
219
219
|
flowSupport: boolean;
|
|
220
220
|
transpileModules: string | boolean;
|
|
221
221
|
reactRefreshSupport: boolean;
|
|
222
|
-
}
|
|
223
|
-
}];
|
|
222
|
+
}>;
|
|
223
|
+
}] | string;
|
|
224
224
|
};
|
|
225
225
|
moduleFileExtensions: string[];
|
|
226
226
|
testPathIgnorePatterns: string[];
|
|
@@ -231,14 +231,14 @@ export declare const configSchema: z.ZodObject<{
|
|
|
231
231
|
testEnvironment: "jsdom" | "node";
|
|
232
232
|
}>, z.ZodTypeDef, Partial<{
|
|
233
233
|
transform: {
|
|
234
|
-
[glob: string]:
|
|
235
|
-
presets:
|
|
234
|
+
[glob: string]: [string, {
|
|
235
|
+
presets: Array<string | {
|
|
236
236
|
typescriptSupport: boolean;
|
|
237
237
|
flowSupport: boolean;
|
|
238
238
|
transpileModules: string | boolean;
|
|
239
239
|
reactRefreshSupport: boolean;
|
|
240
|
-
}
|
|
241
|
-
}];
|
|
240
|
+
}>;
|
|
241
|
+
}] | string;
|
|
242
242
|
};
|
|
243
243
|
moduleFileExtensions: string[];
|
|
244
244
|
testPathIgnorePatterns: string[];
|
|
@@ -284,17 +284,17 @@ export declare const configSchema: z.ZodObject<{
|
|
|
284
284
|
webpack?: ((args_0: RsbuildConfig, args_1: {
|
|
285
285
|
dev: boolean;
|
|
286
286
|
target: "client" | "server" | null;
|
|
287
|
-
}, ...
|
|
287
|
+
}, ...args: unknown[]) => RsbuildConfig) | undefined;
|
|
288
288
|
jest?: ((args_0: Partial<{
|
|
289
289
|
transform: {
|
|
290
|
-
[glob: string]:
|
|
291
|
-
presets:
|
|
290
|
+
[glob: string]: [string, {
|
|
291
|
+
presets: Array<string | {
|
|
292
292
|
typescriptSupport: boolean;
|
|
293
293
|
flowSupport: boolean;
|
|
294
294
|
transpileModules: string | boolean;
|
|
295
295
|
reactRefreshSupport: boolean;
|
|
296
|
-
}
|
|
297
|
-
}];
|
|
296
|
+
}>;
|
|
297
|
+
}] | string;
|
|
298
298
|
};
|
|
299
299
|
moduleFileExtensions: string[];
|
|
300
300
|
testPathIgnorePatterns: string[];
|
|
@@ -303,16 +303,16 @@ export declare const configSchema: z.ZodObject<{
|
|
|
303
303
|
[glob: string]: string;
|
|
304
304
|
};
|
|
305
305
|
testEnvironment: "jsdom" | "node";
|
|
306
|
-
}>, ...
|
|
306
|
+
}>, ...args: unknown[]) => Partial<{
|
|
307
307
|
transform: {
|
|
308
|
-
[glob: string]:
|
|
309
|
-
presets:
|
|
308
|
+
[glob: string]: [string, {
|
|
309
|
+
presets: Array<string | {
|
|
310
310
|
typescriptSupport: boolean;
|
|
311
311
|
flowSupport: boolean;
|
|
312
312
|
transpileModules: string | boolean;
|
|
313
313
|
reactRefreshSupport: boolean;
|
|
314
|
-
}
|
|
315
|
-
}];
|
|
314
|
+
}>;
|
|
315
|
+
}] | string;
|
|
316
316
|
};
|
|
317
317
|
moduleFileExtensions: string[];
|
|
318
318
|
testPathIgnorePatterns: string[];
|
|
@@ -358,17 +358,17 @@ export declare const configSchema: z.ZodObject<{
|
|
|
358
358
|
webpack?: ((args_0: RsbuildConfig, args_1: {
|
|
359
359
|
dev: boolean;
|
|
360
360
|
target: "client" | "server" | null;
|
|
361
|
-
}, ...
|
|
361
|
+
}, ...args: unknown[]) => RsbuildConfig) | undefined;
|
|
362
362
|
jest?: ((args_0: Partial<{
|
|
363
363
|
transform: {
|
|
364
|
-
[glob: string]:
|
|
365
|
-
presets:
|
|
364
|
+
[glob: string]: [string, {
|
|
365
|
+
presets: Array<string | {
|
|
366
366
|
typescriptSupport: boolean;
|
|
367
367
|
flowSupport: boolean;
|
|
368
368
|
transpileModules: string | boolean;
|
|
369
369
|
reactRefreshSupport: boolean;
|
|
370
|
-
}
|
|
371
|
-
}];
|
|
370
|
+
}>;
|
|
371
|
+
}] | string;
|
|
372
372
|
};
|
|
373
373
|
moduleFileExtensions: string[];
|
|
374
374
|
testPathIgnorePatterns: string[];
|
|
@@ -377,16 +377,16 @@ export declare const configSchema: z.ZodObject<{
|
|
|
377
377
|
[glob: string]: string;
|
|
378
378
|
};
|
|
379
379
|
testEnvironment: "jsdom" | "node";
|
|
380
|
-
}>, ...
|
|
380
|
+
}>, ...args: unknown[]) => Partial<{
|
|
381
381
|
transform: {
|
|
382
|
-
[glob: string]:
|
|
383
|
-
presets:
|
|
382
|
+
[glob: string]: [string, {
|
|
383
|
+
presets: Array<string | {
|
|
384
384
|
typescriptSupport: boolean;
|
|
385
385
|
flowSupport: boolean;
|
|
386
386
|
transpileModules: string | boolean;
|
|
387
387
|
reactRefreshSupport: boolean;
|
|
388
|
-
}
|
|
389
|
-
}];
|
|
388
|
+
}>;
|
|
389
|
+
}] | string;
|
|
390
390
|
};
|
|
391
391
|
moduleFileExtensions: string[];
|
|
392
392
|
testPathIgnorePatterns: string[];
|
|
@@ -397,5 +397,5 @@ export declare const configSchema: z.ZodObject<{
|
|
|
397
397
|
testEnvironment: "jsdom" | "node";
|
|
398
398
|
}>) | undefined;
|
|
399
399
|
}>;
|
|
400
|
-
export
|
|
401
|
-
export
|
|
400
|
+
export type ToolkitConfig = z.input<typeof configSchema>;
|
|
401
|
+
export type ParsedToolkitConfig = z.output<typeof configSchema>;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -11,15 +15,26 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
11
15
|
}) : function(o, v) {
|
|
12
16
|
o["default"] = v;
|
|
13
17
|
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
21
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.JS_CONFIG_FILENAME =
|
|
36
|
+
exports.JS_CONFIG_FILENAME = void 0;
|
|
37
|
+
exports.loadConfig = loadConfig;
|
|
23
38
|
const zod_1 = require("zod");
|
|
24
39
|
const project_1 = require("../../util/project");
|
|
25
40
|
const configSchema_1 = require("./configSchema");
|
|
@@ -27,7 +42,7 @@ async function loadConfig() {
|
|
|
27
42
|
let config = {};
|
|
28
43
|
if (project_1.project.hasFile(exports.JS_CONFIG_FILENAME)) {
|
|
29
44
|
delete require.cache[project_1.project.resolvePath(exports.JS_CONFIG_FILENAME)];
|
|
30
|
-
config = (await Promise.resolve(
|
|
45
|
+
config = (await Promise.resolve(`${`file://${project_1.project.resolvePath(exports.JS_CONFIG_FILENAME)}?update=${Date.now()}`}`).then(s => __importStar(require(s)))).default;
|
|
31
46
|
}
|
|
32
47
|
try {
|
|
33
48
|
const validatedValue = configSchema_1.configSchema.parse(config);
|
|
@@ -49,6 +64,5 @@ async function loadConfig() {
|
|
|
49
64
|
throw error;
|
|
50
65
|
}
|
|
51
66
|
}
|
|
52
|
-
exports.loadConfig = loadConfig;
|
|
53
67
|
exports.JS_CONFIG_FILENAME = "toolkit.config.js";
|
|
54
68
|
//# sourceMappingURL=loadConfig.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadConfig.js","sourceRoot":"","sources":["../../../src/features/config-file/loadConfig.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"loadConfig.js","sourceRoot":"","sources":["../../../src/features/config-file/loadConfig.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,gCAqCC;AAzCD,6BAA8B;AAC9B,gDAA4C;AAC5C,iDAAiF;AAE1E,KAAK,UAAU,UAAU;IAC/B,IAAI,MAAM,GAAkB,EAAE,CAAA;IAE9B,IAAI,iBAAO,CAAC,OAAO,CAAC,0BAAkB,CAAC,EAAE,CAAC;QACzC,OAAO,OAAO,CAAC,KAAK,CAAC,iBAAO,CAAC,WAAW,CAAC,0BAAkB,CAAC,CAAC,CAAA;QAC7D,MAAM,GACL,CAAC,yBACA,UAAU,iBAAO,CAAC,WAAW,CAAC,0BAAkB,CAAC,WAAW,IAAI,CAAC,GAAG,EAAE,EAAE,uCACxE,CAGD,CAAC,OAAO,CAAA;IACV,CAAC;IAED,IAAI,CAAC;QACJ,MAAM,cAAc,GAAG,2BAAY,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;QAEjD,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,cAAc,CAAC,WAAW,CAAA;QAEtD,IAAI,IAAI,KAAK,UAAU,EAAE,CAAC;YACzB,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,IAAI,GAAG,CAAC,CAAA;YAElC,cAAc,CAAC,WAAW,CAAC,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAA;QAClE,CAAC;QAED,OAAO,cAAc,CAAA;IACtB,CAAC;IAAC,OAAO,KAAc,EAAE,CAAC;QACzB,IAAI,KAAK,YAAY,cAAQ,EAAE,CAAC;YAC/B,MAAM,YAAY,GAAG,KAAK,CAAC,MAAM;iBAC/B,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,OAAO,IAAI,CAAC;iBAC/D,IAAI,CAAC,EAAE,CAAC,CAAA;YACV,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,CAAA;QAC9B,CAAC;QAED,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;QACpB,MAAM,KAAK,CAAA;IACZ,CAAC;AACF,CAAC;AAEY,QAAA,kBAAkB,GAAG,mBAAmB,CAAA"}
|
package/lib/util/format.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type PackageManager = "npm" | "yarn";
|
|
2
2
|
export declare function getPackageManager(): PackageManager | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getPackageManager =
|
|
3
|
+
exports.getPackageManager = getPackageManager;
|
|
4
4
|
const format_1 = require("./format");
|
|
5
5
|
const output_1 = require("./output");
|
|
6
6
|
const project_1 = require("./project");
|
|
@@ -17,7 +17,6 @@ function getPackageManager() {
|
|
|
17
17
|
return "yarn";
|
|
18
18
|
return undefined;
|
|
19
19
|
}
|
|
20
|
-
exports.getPackageManager = getPackageManager;
|
|
21
20
|
const npmSearchPaths = [
|
|
22
21
|
"./package-lock.json",
|
|
23
22
|
"../package-lock.json",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPackageManager.js","sourceRoot":"","sources":["../../src/util/getPackageManager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getPackageManager.js","sourceRoot":"","sources":["../../src/util/getPackageManager.ts"],"names":[],"mappings":";;AAMA,8CAgBC;AAtBD,qCAA6B;AAC7B,qCAAiC;AACjC,uCAAmC;AAInC,SAAgB,iBAAiB;IAChC,MAAM,cAAc,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,iBAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAA;IAC3E,MAAM,WAAW,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,iBAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAA;IAEzE,IAAI,cAAc,IAAI,WAAW,EAAE,CAAC;QACnC,eAAM,CAAC,IAAI,CACV,iBAAiB,WAAE,CAAC,IAAI,CAAA,mBAAmB,QAAQ,WAAE,CAAC,IAAI,CAAA,WAAW,2BAA2B,CAChG,CAAA;QACD,eAAM,CAAC,KAAK,CACX,+EAA+E,CAC/E,CAAA;IACF,CAAC;IAED,IAAI,cAAc;QAAE,OAAO,KAAK,CAAA;IAChC,IAAI,WAAW;QAAE,OAAO,MAAM,CAAA;IAC9B,OAAO,SAAS,CAAA;AACjB,CAAC;AAED,MAAM,cAAc,GAAG;IACtB,qBAAqB;IACrB,sBAAsB;IACtB,yBAAyB;CACzB,CAAA;AAED,MAAM,eAAe,GAAG,CAAC,aAAa,EAAE,cAAc,EAAE,iBAAiB,CAAC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.loadPackageJson =
|
|
3
|
+
exports.loadPackageJson = loadPackageJson;
|
|
4
4
|
const project_1 = require("./project");
|
|
5
5
|
async function loadPackageJson() {
|
|
6
6
|
const packageJsonString = await project_1.project.readFile("package.json");
|
|
@@ -9,5 +9,4 @@ async function loadPackageJson() {
|
|
|
9
9
|
}
|
|
10
10
|
return JSON.parse(packageJsonString);
|
|
11
11
|
}
|
|
12
|
-
exports.loadPackageJson = loadPackageJson;
|
|
13
12
|
//# sourceMappingURL=loadPackageJson.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadPackageJson.js","sourceRoot":"","sources":["../../src/util/loadPackageJson.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"loadPackageJson.js","sourceRoot":"","sources":["../../src/util/loadPackageJson.ts"],"names":[],"mappings":";;AAGA,0CAOC;AATD,uCAAmC;AAE5B,KAAK,UAAU,eAAe;IACpC,MAAM,iBAAiB,GAAG,MAAM,iBAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAA;IAEhE,IAAI,iBAAiB,KAAK,IAAI,EAAE,CAAC;QAChC,MAAM,KAAK,CAAC,iCAAiC,CAAC,CAAA;IAC/C,CAAC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAgB,CAAA;AACpD,CAAC"}
|
package/lib/util/output.d.ts
CHANGED
package/lib/util/output.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../src/util/output.ts"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAEZ,QAAA,MAAM,GAAG;IACrB,IAAI,CAAC,IAAY;QAChB,OAAO,CAAC,IAAI,CAAC,GAAG,eAAK,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC,CAAA;IAC3D,CAAC;IACD,IAAI,CAAC,IAAY;QAChB,OAAO,CAAC,IAAI,CAAC,GAAG,eAAK,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC,CAAA;IAC3D,CAAC;IACD,IAAI,CAAC,IAAY;QAChB,OAAO,CAAC,IAAI,CAAC,GAAG,eA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I,CAAC,WAAW,IAAI,EAAE,CAAC,CAAA;IAChC,CAAC;IACD,IAAI,CAAC,IAAa;QACjB,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QAChB,IAAI,IAAI,EAAE,CAAC;YACV,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QACnB,CAAC;aAAM,CAAC;YACP,OAAO,CAAC,IAAI,EAAE,CAAA;QACf,CAAC;IACF,CAAC;CACD,CAAA"}
|
package/lib/util/project.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -11,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
11
15
|
}) : function(o, v) {
|
|
12
16
|
o["default"] = v;
|
|
13
17
|
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
21
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
36
|
exports.project = void 0;
|
|
23
37
|
const fs = __importStar(require("fs"));
|
package/lib/util/project.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.js","sourceRoot":"","sources":["../../src/util/project.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"project.js","sourceRoot":"","sources":["../../src/util/project.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAwB;AACxB,2CAA4B;AAC5B,+BAAgC;AAEhC,MAAM,aAAa,GAAG,IAAA,gBAAS,EAAC,EAAE,CAAC,QAAQ,CAAC,CAAA;AAC5C,MAAM,cAAc,GAAG,IAAA,gBAAS,EAAC,EAAE,CAAC,SAAS,CAAC,CAAA;AAC9C,MAAM,WAAW,GAAG,IAAA,gBAAS,EAAC,EAAE,CAAC,MAAM,CAAC,CAAA;AAE3B,QAAA,OAAO,GAAG;IACtB,WAAW,CAAC,YAAoB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAA;IAClC,CAAC;IAED,OAAO,CAAC,YAAoB;QAC3B,OAAO,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAA;IACrD,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,YAAoB;QAClC,MAAM,YAAY,GAAG,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,CAAA;QAEnD,IAAI,CAAC;YACJ,MAAM,OAAO,GAAG,MAAM,aAAa,CAAC,YAAY,EAAE;gBACjD,QAAQ,EAAE,OAAO;aACjB,CAAC,CAAA;YAEF,OAAO,OAAO,CAAA;QACf,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACzB,MAAM,SAAS,GAAG,KAAyB,CAAA;YAE3C,IAAI,SAAS,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;gBACjC,OAAO,IAAI,CAAA;YACZ,CAAC;YACD,MAAM,KAAK,CAAA;QACZ,CAAC;IACF,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,YAAoB,EAAE,QAAgB;QACrD,MAAM,YAAY,GAAG,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,CAAA;QAEnD,MAAM,cAAc,CAAC,YAAY,EAAE,QAAQ,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAA;IACpE,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,YAAoB;QACpC,MAAM,YAAY,GAAG,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,CAAA;QAEnD,MAAM,WAAW,CAAC,YAAY,CAAC,CAAA;IAChC,CAAC;CACD,CAAA"}
|
package/lib/util/runSteps.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export interface StepParams {
|
|
|
6
6
|
packageJson: PackageJson;
|
|
7
7
|
packageManager: PackageManager | undefined;
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
type PromiseOrNot<T> = T | Promise<T>;
|
|
10
|
+
type Step = (params: StepParams) => PromiseOrNot<boolean> | PromiseOrNot<void>;
|
|
11
11
|
export declare function runSteps(...sequences: Array<Step[]>): Promise<void>;
|
|
12
12
|
export {};
|
package/lib/util/runSteps.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.runSteps =
|
|
3
|
+
exports.runSteps = runSteps;
|
|
4
4
|
const loadConfig_1 = require("../features/config-file/loadConfig");
|
|
5
5
|
const format_1 = require("./format");
|
|
6
6
|
const getPackageManager_1 = require("./getPackageManager");
|
|
@@ -42,5 +42,4 @@ async function runSteps(...sequences) {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
exports.runSteps = runSteps;
|
|
46
45
|
//# sourceMappingURL=runSteps.js.map
|
package/lib/util/runSteps.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runSteps.js","sourceRoot":"","sources":["../../src/util/runSteps.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"runSteps.js","sourceRoot":"","sources":["../../src/util/runSteps.ts"],"names":[],"mappings":";;AAiBA,4BAwCC;AAvDD,mEAA+D;AAC/D,qCAA6B;AAC7B,2DAAuE;AACvE,uDAAmD;AACnD,qCAAiC;AAW1B,KAAK,UAAU,QAAQ,CAAC,GAAG,SAAwB;IACzD,IAAI,MAA2B,CAAA;IAE/B,IAAI,CAAC;QACJ,MAAM,GAAG,MAAM,IAAA,uBAAU,GAAE,CAAA;IAC5B,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACZ,MAAM,KAAK,GAAG,CAAU,CAAA;QACxB,eAAM,CAAC,KAAK,CAAC,sCAAsC,WAAE,CAAC,IAAI,CAAA,mBAAmB,UAAU,CAAC,CAAA;QACxF,eAAM,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;QAC3B,eAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;QACd,OAAM;IACP,CAAC;IAED,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACvD,IAAA,iCAAe,GAAE;QACjB,IAAA,qCAAiB,GAAE;KACnB,CAAC,CAAA;IAEF,IAAI,cAAc,GAAG,IAAI,CAAA;IAEzB,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;QAClC,IAAI,cAAc,EAAE,CAAC;YACpB,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE,CAAC;gBAC7B,4CAA4C;gBAC5C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC;oBACzB,MAAM;oBACN,WAAW;oBACX,cAAc;iBACd,CAAC,CAAA;gBAEF,IAAI,MAAM,EAAE,CAAC;oBACZ,cAAc,GAAG,KAAK,CAAA;gBACvB,CAAC;YACF,CAAC;YAED,IAAI,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC1D,eAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAA;YACjB,CAAC;QACF,CAAC;IACF,CAAC;AACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chayns-toolkit",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"description": "A zero-config toolchain for developing chayns® apps.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chayns",
|
|
@@ -64,7 +64,6 @@
|
|
|
64
64
|
"@typescript-eslint/eslint-plugin": "^5.4.0",
|
|
65
65
|
"@typescript-eslint/parser": "^5.4.0",
|
|
66
66
|
"ajv": "^8.17.1",
|
|
67
|
-
"dotenv": "^16.4.5",
|
|
68
67
|
"eslint": "^8.3.0",
|
|
69
68
|
"eslint-config-airbnb": "^19.0.1",
|
|
70
69
|
"eslint-config-airbnb-typescript": "^16.0.0",
|
|
@@ -76,11 +75,10 @@
|
|
|
76
75
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
77
76
|
"eslint-plugin-react": "^7.27.1",
|
|
78
77
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
79
|
-
"html-webpack-plugin": "^5.
|
|
78
|
+
"html-webpack-plugin": "^5.6.3",
|
|
80
79
|
"html-webpack-tags-plugin": "^3.0.2",
|
|
81
80
|
"jest": "^29.7.0",
|
|
82
81
|
"mini-css-extract-plugin": "^2.4.5",
|
|
83
|
-
"pnpapi": "^0.0.0",
|
|
84
82
|
"postcss": "^8.4.4",
|
|
85
83
|
"postcss-flexbugs-fixes": "^5.0.2",
|
|
86
84
|
"postcss-loader": "^6.2.1",
|
|
@@ -115,7 +113,7 @@
|
|
|
115
113
|
"semver": "^7.3.5",
|
|
116
114
|
"shx": "^0.3.3",
|
|
117
115
|
"type-fest": "^2.6.0",
|
|
118
|
-
"typescript": "^
|
|
116
|
+
"typescript": "^5.7.3"
|
|
119
117
|
},
|
|
120
118
|
"engines": {
|
|
121
119
|
"node": ">=20.10.0"
|