create-reciple 7.11.3 → 7.11.4
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/utils/functions.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { PackageManager } from './types.js';
|
|
2
1
|
export declare function runScript(command: string, cwd: string, options?: string[]): Promise<void>;
|
|
3
|
-
export
|
|
2
|
+
export { resolvePackageManager } from '@reciple/utils';
|
|
4
3
|
export declare function copyFile(from: string, to: string, rename?: (f: string) => string): void;
|
package/bin/utils/functions.js
CHANGED
|
@@ -4,17 +4,7 @@ import { dirname, join } from 'node:path';
|
|
|
4
4
|
export async function runScript(command, cwd, options) {
|
|
5
5
|
execSync(`${command}${options?.length ? (' ' + options.join(' ')) : ''}`, { cwd, env: { ...process.env, FORCE_COLOR: '1' }, stdio: ['inherit', 'inherit', 'inherit'] });
|
|
6
6
|
}
|
|
7
|
-
export
|
|
8
|
-
const npmConfigUserAgent = process.env.npm_config_user_agent?.toLowerCase();
|
|
9
|
-
if (!npmConfigUserAgent)
|
|
10
|
-
return;
|
|
11
|
-
if (npmConfigUserAgent.startsWith('npm'))
|
|
12
|
-
return 'npm';
|
|
13
|
-
if (npmConfigUserAgent.startsWith('yarn'))
|
|
14
|
-
return 'yarn';
|
|
15
|
-
if (npmConfigUserAgent.startsWith('pnpm'))
|
|
16
|
-
return 'pnpm';
|
|
17
|
-
}
|
|
7
|
+
export { resolvePackageManager } from '@reciple/utils';
|
|
18
8
|
export function copyFile(from, to, rename) {
|
|
19
9
|
const isDirectory = lstatSync(from).isDirectory();
|
|
20
10
|
if (isDirectory) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../src/utils/functions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC1E,OAAO,EAAE,QAAQ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AAO;KACV;IAED,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC5C,YAAY,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;AAC3B,CAAC"}
|
package/bin/utils/types.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export type PackageManager = keyof typeof packageManagerPlaceholders;
|
|
1
|
+
export { PackageManager } from '@reciple/utils';
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "create-reciple",
|
|
3
3
|
"description": "A Reciple Discord bot project builder",
|
|
4
4
|
"license": "GPL-3.0",
|
|
5
|
-
"version": "7.11.
|
|
5
|
+
"version": "7.11.4",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "./bin/bin.d.ts",
|
|
8
8
|
"bin": "./bin/bin.js",
|
|
@@ -24,16 +24,17 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@clack/prompts": "^0.6.3",
|
|
27
|
+
"@reciple/utils": "^7.1.0",
|
|
27
28
|
"kleur": "^4.1.5",
|
|
28
29
|
"prompts": "^2.4.2"
|
|
29
30
|
},
|
|
30
31
|
"devDependencies": {
|
|
31
|
-
"@types/node": "^20.4.
|
|
32
|
-
"discord.js": "^14.
|
|
32
|
+
"@types/node": "^20.4.8",
|
|
33
|
+
"discord.js": "^14.12.1",
|
|
33
34
|
"nodemon": "^3.0.1",
|
|
34
|
-
"reciple": "^7.9.
|
|
35
|
+
"reciple": "^7.9.2",
|
|
35
36
|
"rimraf": "^5.0.1",
|
|
36
37
|
"typescript": "^5.1.6"
|
|
37
38
|
},
|
|
38
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "8762515a10fd5f0fba0eb1214a72d44e3aae5579"
|
|
39
40
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"build": "rimraf ./modules && tsc",
|
|
6
6
|
"start": "reciple",
|
|
7
7
|
"build:start": "SCRIPT_RUN build && reciple",
|
|
8
|
-
"dev": "nodemon --ext ts,mts,cts,json,yml,yaml --exec \"SCRIPT_RUN build && reciple\" --signal SIGHUP"
|
|
8
|
+
"dev": "nodemon --ext ts,mts,cts,json,yml,yaml --ignore ./modules --exec \"SCRIPT_RUN build && reciple\" --signal SIGHUP"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"discord.js": "DISCORDJS",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"build": "rimraf ./modules && tsc",
|
|
7
7
|
"start": "reciple",
|
|
8
8
|
"build:start": "SCRIPT_RUN build && reciple",
|
|
9
|
-
"dev": "nodemon --ext ts,mts,cts,json,yml,yaml --exec \"SCRIPT_RUN build && reciple\" --signal SIGHUP"
|
|
9
|
+
"dev": "nodemon --ext ts,mts,cts,json,yml,yaml --ignore ./modules --exec \"SCRIPT_RUN build && reciple\" --signal SIGHUP"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"discord.js": "DISCORDJS",
|