@enspirit/emb 0.0.3 → 0.0.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/README.md +1 -1
- package/dist/src/config/validation.js +3 -4
- package/oclif.manifest.json +35 -35
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -2,6 +2,7 @@ import { Ajv } from 'ajv';
|
|
|
2
2
|
import { readFile, stat } from 'node:fs/promises';
|
|
3
3
|
import yaml from 'yaml';
|
|
4
4
|
import { toProjectConfig } from './convert.js';
|
|
5
|
+
import configSchema from './schema.json' with { type: 'json' };
|
|
5
6
|
export const validateUserConfig = async (pathOrObject) => {
|
|
6
7
|
const ajv = new Ajv();
|
|
7
8
|
let userConfig;
|
|
@@ -17,11 +18,9 @@ export const validateUserConfig = async (pathOrObject) => {
|
|
|
17
18
|
else {
|
|
18
19
|
userConfig = pathOrObject;
|
|
19
20
|
}
|
|
20
|
-
/*
|
|
21
21
|
if (!ajv.validate(configSchema, userConfig)) {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
ajv.errors.forEach((err) => console.error(err));
|
|
23
|
+
throw new Error(`Your .emb.yml is incorrect`);
|
|
24
24
|
}
|
|
25
|
-
*/
|
|
26
25
|
return toProjectConfig(userConfig);
|
|
27
26
|
};
|
package/oclif.manifest.json
CHANGED
|
@@ -450,6 +450,40 @@
|
|
|
450
450
|
"prune.js"
|
|
451
451
|
]
|
|
452
452
|
},
|
|
453
|
+
"run": {
|
|
454
|
+
"aliases": [],
|
|
455
|
+
"args": {
|
|
456
|
+
"component": {
|
|
457
|
+
"description": "Component name",
|
|
458
|
+
"name": "component",
|
|
459
|
+
"required": true
|
|
460
|
+
},
|
|
461
|
+
"script": {
|
|
462
|
+
"description": "NPM script to run",
|
|
463
|
+
"name": "script",
|
|
464
|
+
"required": true
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
"description": "Run an npm script from a component's package.json",
|
|
468
|
+
"flags": {},
|
|
469
|
+
"hasDynamicHelp": false,
|
|
470
|
+
"hiddenAliases": [],
|
|
471
|
+
"id": "run",
|
|
472
|
+
"pluginAlias": "@enspirit/emb",
|
|
473
|
+
"pluginName": "@enspirit/emb",
|
|
474
|
+
"pluginType": "core",
|
|
475
|
+
"strict": true,
|
|
476
|
+
"enableJsonFlag": false,
|
|
477
|
+
"isESM": true,
|
|
478
|
+
"relativePath": [
|
|
479
|
+
"dist",
|
|
480
|
+
"src",
|
|
481
|
+
"cli",
|
|
482
|
+
"commands",
|
|
483
|
+
"run",
|
|
484
|
+
"index.js"
|
|
485
|
+
]
|
|
486
|
+
},
|
|
453
487
|
"tasks": {
|
|
454
488
|
"aliases": [],
|
|
455
489
|
"args": {},
|
|
@@ -534,41 +568,7 @@
|
|
|
534
568
|
"tasks",
|
|
535
569
|
"run.js"
|
|
536
570
|
]
|
|
537
|
-
},
|
|
538
|
-
"run": {
|
|
539
|
-
"aliases": [],
|
|
540
|
-
"args": {
|
|
541
|
-
"component": {
|
|
542
|
-
"description": "Component name",
|
|
543
|
-
"name": "component",
|
|
544
|
-
"required": true
|
|
545
|
-
},
|
|
546
|
-
"script": {
|
|
547
|
-
"description": "NPM script to run",
|
|
548
|
-
"name": "script",
|
|
549
|
-
"required": true
|
|
550
|
-
}
|
|
551
|
-
},
|
|
552
|
-
"description": "Run an npm script from a component's package.json",
|
|
553
|
-
"flags": {},
|
|
554
|
-
"hasDynamicHelp": false,
|
|
555
|
-
"hiddenAliases": [],
|
|
556
|
-
"id": "run",
|
|
557
|
-
"pluginAlias": "@enspirit/emb",
|
|
558
|
-
"pluginName": "@enspirit/emb",
|
|
559
|
-
"pluginType": "core",
|
|
560
|
-
"strict": true,
|
|
561
|
-
"enableJsonFlag": false,
|
|
562
|
-
"isESM": true,
|
|
563
|
-
"relativePath": [
|
|
564
|
-
"dist",
|
|
565
|
-
"src",
|
|
566
|
-
"cli",
|
|
567
|
-
"commands",
|
|
568
|
-
"run",
|
|
569
|
-
"index.js"
|
|
570
|
-
]
|
|
571
571
|
}
|
|
572
572
|
},
|
|
573
|
-
"version": "0.0.
|
|
573
|
+
"version": "0.0.5"
|
|
574
574
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enspirit/emb",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.5",
|
|
5
5
|
"keywords": ["monorepo", "docker", "taskrunner", "ci", "docker compose", "sentinel", "makefile"],
|
|
6
6
|
"author": "Louis Lambeau <louis.lambeau@enspirit.be>",
|
|
7
7
|
"license": "ISC",
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
"pack:macos": "oclif pack macos",
|
|
21
21
|
"pack:deb": "oclif pack deb",
|
|
22
22
|
"postpack": "shx rm -f oclif.manifest.json",
|
|
23
|
-
"postbuild": "oclif manifest --dir dist",
|
|
24
23
|
"posttest": "npm run lint",
|
|
25
24
|
"prepack": "oclif manifest && oclif readme",
|
|
26
25
|
"test": "npm run build:types && npm run test:unit",
|
|
@@ -30,6 +29,7 @@
|
|
|
30
29
|
"version": "oclif readme && git add README.md"
|
|
31
30
|
},
|
|
32
31
|
"dependencies": {
|
|
32
|
+
"@fastify/deepmerge": "^3.1.0",
|
|
33
33
|
"@listr2/manager": "^3.0.1",
|
|
34
34
|
"@oclif/core": "^4.5.2",
|
|
35
35
|
"@oclif/plugin-autocomplete": "^3.2.34",
|
|
@@ -56,7 +56,6 @@
|
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@eslint/eslintrc": "^3.3.1",
|
|
58
58
|
"@eslint/js": "^9.32.0",
|
|
59
|
-
"@fastify/deepmerge": "^3.1.0",
|
|
60
59
|
"@oclif/prettier-config": "^0.2.1",
|
|
61
60
|
"@oclif/test": "^4",
|
|
62
61
|
"@tsconfig/node20": "^20.1.6",
|