alemonjs 1.0.13 → 1.0.14
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/bin/main.js +1 -1
- package/lib/define/main.js +4 -4
- package/package.json +10 -8
package/bin/main.js
CHANGED
package/lib/define/main.js
CHANGED
|
@@ -18,8 +18,8 @@ export const setAuthenticationByNtqq = ClientByNTQQ.setAuthentication;
|
|
|
18
18
|
export function ApplicationTools(AppName, name = 'apps') {
|
|
19
19
|
const appDir = getAppDir();
|
|
20
20
|
return compilationTools({
|
|
21
|
-
aInput: `${appDir}/${AppName}/${name}/**/*.ts`,
|
|
22
|
-
aOutput: `${appDir}/${AppName}/apps.js`
|
|
21
|
+
aInput: `${appDir.replace(/^\//, '')}/${AppName}/${name}/**/*.ts`,
|
|
22
|
+
aOutput: `${appDir.replace(/^\//, '')}/${AppName}/apps.js`
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
let OptionsCache;
|
|
@@ -168,8 +168,8 @@ export async function defineAlemonConfig(Options) {
|
|
|
168
168
|
}
|
|
169
169
|
if (Options?.app?.module) {
|
|
170
170
|
const word = await compilationTools({
|
|
171
|
-
aInput: Options?.app?.module?.input ?? 'apps/**/*.ts',
|
|
172
|
-
aOutput: Options?.app?.module?.
|
|
171
|
+
aInput: Options?.app?.module?.input?.replace(/^\//, '') ?? 'apps/**/*.ts',
|
|
172
|
+
aOutput: Options?.app?.module?.output.replace(/^\//, '') ?? '.apps/index.js'
|
|
173
173
|
});
|
|
174
174
|
app.component(word);
|
|
175
175
|
}
|
package/package.json
CHANGED
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alemonjs",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"description": "阿柠檬框架",
|
|
5
5
|
"author": "ningmengchongshui",
|
|
6
|
-
"main": "lib/index.js",
|
|
7
6
|
"license": "GPL-2.0",
|
|
8
7
|
"type": "module",
|
|
9
|
-
"exports": {
|
|
10
|
-
"./run": {
|
|
11
|
-
"types": "./run.d.ts",
|
|
12
|
-
"import": "./run.js"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
8
|
"scripts": {
|
|
16
9
|
"app": "alemonjs",
|
|
17
10
|
"dev": "alemonjs dev",
|
|
@@ -24,6 +17,7 @@
|
|
|
24
17
|
"@discordjs/core": "^0.6.0",
|
|
25
18
|
"@discordjs/rest": "^1.7.1",
|
|
26
19
|
"alemon-rollup": "^1.0.2",
|
|
20
|
+
"alemonjs": "^1.0.13",
|
|
27
21
|
"axios": "^1.4.0",
|
|
28
22
|
"discord.js": "^14.11.0",
|
|
29
23
|
"image-size": "^1.0.2",
|
|
@@ -51,6 +45,7 @@
|
|
|
51
45
|
"typescript": ">=5.0.4 <5.1.0"
|
|
52
46
|
},
|
|
53
47
|
"types": "types",
|
|
48
|
+
"main": "lib/index.js",
|
|
54
49
|
"files": [
|
|
55
50
|
"bin",
|
|
56
51
|
"lib",
|
|
@@ -58,6 +53,13 @@
|
|
|
58
53
|
"run.js",
|
|
59
54
|
"run.d.ts"
|
|
60
55
|
],
|
|
56
|
+
"exports": {
|
|
57
|
+
".": "./lib/index.js",
|
|
58
|
+
"./run": {
|
|
59
|
+
"import": "./run.js",
|
|
60
|
+
"types": "./run.d.ts"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
61
63
|
"bin": {
|
|
62
64
|
"alemonjs": "bin/main.js"
|
|
63
65
|
},
|