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 CHANGED
@@ -7,6 +7,8 @@
7
7
 
8
8
  ---
9
9
 
10
+ The seedcord CLI and dev tooling.
11
+
10
12
  _This repository is a work in progress._
11
13
 
12
14
  - There are no stable releases yet but changes are being made actively.
@@ -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 { };