seedcord 0.16.0-next.4 → 0.16.0-next.6
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 +2 -0
- package/bin/seedcord.mjs +22 -0
- package/dist/cli.d.mts +1 -0
- package/dist/cli.mjs +2945 -0
- package/dist/cli.mjs.map +1 -0
- package/dist/index.d.mts +41 -2490
- package/dist/index.mjs +2 -3919
- package/dist/src-C8msMz_6.mjs +20 -0
- package/dist/src-C8msMz_6.mjs.map +1 -0
- package/package.json +45 -48
- package/dist/index.cjs +0 -4032
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -1
- package/dist/index.mjs.map +0 -1
package/README.md
CHANGED
package/bin/seedcord.mjs
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { existsSync } from 'node:fs';
|
|
2
|
+
import { dirname, resolve } from 'node:path';
|
|
3
|
+
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
4
|
+
|
|
5
|
+
async function run() {
|
|
6
|
+
const here = dirname(fileURLToPath(import.meta.url));
|
|
7
|
+
const distEntry = resolve(here, '../dist/cli.mjs');
|
|
8
|
+
if (existsSync(distEntry)) {
|
|
9
|
+
await import(pathToFileURL(distEntry).href);
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const srcEntry = resolve(here, '../src/cli.ts');
|
|
14
|
+
await import('tsx/esm/api');
|
|
15
|
+
await import(pathToFileURL(srcEntry).href);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
run().catch((error) => {
|
|
19
|
+
// eslint-disable-next-line no-console
|
|
20
|
+
console.error(error);
|
|
21
|
+
process.exitCode = 1;
|
|
22
|
+
});
|
package/dist/cli.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|