@aeriajs/cli 0.0.255 → 0.0.256
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/dist/icons.d.ts +1 -2
- package/dist/icons.js +1 -5
- package/dist/iconsExtraction.js +2 -3
- package/package.json +8 -9
package/dist/icons.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export declare const extractIcons: (target: unknown) => string[];
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const iconsCjsContent: (icons: string[]) => string;
|
|
2
|
+
export declare const iconsJsContent: (icons: string[]) => string;
|
|
4
3
|
export declare const iconsDtsContent: (icons: string[]) => string;
|
package/dist/icons.js
CHANGED
|
@@ -14,14 +14,10 @@ export const extractIcons = (target) => {
|
|
|
14
14
|
}
|
|
15
15
|
return foundIcons;
|
|
16
16
|
};
|
|
17
|
-
export const
|
|
17
|
+
export const iconsJsContent = (icons) => {
|
|
18
18
|
const content = `export const icons = ${JSON.stringify(icons)};\n`;
|
|
19
19
|
return content;
|
|
20
20
|
};
|
|
21
|
-
export const iconsCjsContent = (icons) => {
|
|
22
|
-
const content = `exports.icons = ${JSON.stringify(icons)};\n`;
|
|
23
|
-
return content;
|
|
24
|
-
};
|
|
25
21
|
export const iconsDtsContent = (icons) => {
|
|
26
22
|
const types = icons.map((icon) => ` | '${icon}'`);
|
|
27
23
|
const lines = [
|
package/dist/iconsExtraction.js
CHANGED
|
@@ -2,7 +2,7 @@ import * as fs from 'node:fs/promises';
|
|
|
2
2
|
import * as path from 'node:path';
|
|
3
3
|
import { getCollections } from '@aeriajs/entrypoint';
|
|
4
4
|
import { Result } from '@aeriajs/types';
|
|
5
|
-
import { extractIcons,
|
|
5
|
+
import { extractIcons, iconsJsContent, iconsDtsContent } from './icons.js';
|
|
6
6
|
const DATA_PATH = '.aeria';
|
|
7
7
|
export const iconsExtraction = async () => {
|
|
8
8
|
const collections = await getCollections();
|
|
@@ -19,8 +19,7 @@ export const iconsExtraction = async () => {
|
|
|
19
19
|
icons.push(...extractIcons(collection.description));
|
|
20
20
|
}
|
|
21
21
|
const uniqueIcons = Array.from(new Set(icons));
|
|
22
|
-
await fs.writeFile(path.join(base, 'icons.
|
|
23
|
-
await fs.writeFile(path.join(base, 'icons.cjs'), iconsCjsContent(uniqueIcons));
|
|
22
|
+
await fs.writeFile(path.join(base, 'icons.js'), iconsJsContent(uniqueIcons));
|
|
24
23
|
await fs.writeFile(path.join(base, 'icons.d.ts'), iconsDtsContent(uniqueIcons));
|
|
25
24
|
return Result.result('icon extraction succeeded');
|
|
26
25
|
};
|
package/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.256",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
|
-
"module": "dist/index.mjs",
|
|
8
7
|
"types": "dist/index.d.ts",
|
|
9
8
|
"bin": {
|
|
10
9
|
"aeria": "bin/index.js"
|
|
@@ -12,7 +11,7 @@
|
|
|
12
11
|
"exports": {
|
|
13
12
|
".": {
|
|
14
13
|
"types": "./dist/index.d.ts",
|
|
15
|
-
"
|
|
14
|
+
"default": "./dist/index.js"
|
|
16
15
|
},
|
|
17
16
|
"./config/*": "./dist/config/*"
|
|
18
17
|
},
|
|
@@ -40,12 +39,12 @@
|
|
|
40
39
|
"@aeriajs/types": "link:../types"
|
|
41
40
|
},
|
|
42
41
|
"peerDependencies": {
|
|
43
|
-
"@aeriajs/builtins": "^0.0.
|
|
44
|
-
"@aeriajs/common": "^0.0.
|
|
45
|
-
"@aeriajs/compiler": "^0.0.
|
|
46
|
-
"@aeriajs/core": "^0.0.
|
|
47
|
-
"@aeriajs/entrypoint": "^0.0.
|
|
48
|
-
"@aeriajs/types": "^0.0.
|
|
42
|
+
"@aeriajs/builtins": "^0.0.278",
|
|
43
|
+
"@aeriajs/common": "^0.0.158",
|
|
44
|
+
"@aeriajs/compiler": "^0.0.63",
|
|
45
|
+
"@aeriajs/core": "^0.0.278",
|
|
46
|
+
"@aeriajs/entrypoint": "^0.0.164",
|
|
47
|
+
"@aeriajs/types": "^0.0.136"
|
|
49
48
|
},
|
|
50
49
|
"scripts": {
|
|
51
50
|
"test": "echo skipping",
|