@auth-gate/billing 0.12.1 → 0.12.2
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/cli.mjs +0 -0
- package/package.json +3 -4
- package/bin/cli.mjs +0 -17
package/dist/cli.mjs
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@auth-gate/billing",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.2",
|
|
4
4
|
"description": "Billing as code for AuthGate — define plans, prices, and features in TypeScript and sync them to AuthGate + Stripe with a single CLI command.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -11,13 +11,12 @@
|
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
"bin": {
|
|
14
|
-
"auth-gate-billing": "./
|
|
14
|
+
"auth-gate-billing": "./dist/cli.mjs"
|
|
15
15
|
},
|
|
16
16
|
"main": "./dist/index.cjs",
|
|
17
17
|
"module": "./dist/index.mjs",
|
|
18
18
|
"types": "./dist/index.d.ts",
|
|
19
19
|
"files": [
|
|
20
|
-
"bin",
|
|
21
20
|
"dist",
|
|
22
21
|
"icon.png"
|
|
23
22
|
],
|
|
@@ -25,7 +24,7 @@
|
|
|
25
24
|
"chalk": "^5.4.0",
|
|
26
25
|
"dotenv": "^17.2.4",
|
|
27
26
|
"jiti": "^2.4.0",
|
|
28
|
-
"@auth-gate/core": "0.12.
|
|
27
|
+
"@auth-gate/core": "0.12.2"
|
|
29
28
|
},
|
|
30
29
|
"peerDependencies": {
|
|
31
30
|
"stripe": ">=14"
|
package/bin/cli.mjs
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import { existsSync } from "node:fs";
|
|
4
|
-
import { dirname, resolve } from "node:path";
|
|
5
|
-
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
6
|
-
import { createJiti } from "jiti";
|
|
7
|
-
|
|
8
|
-
const dir = dirname(fileURLToPath(import.meta.url));
|
|
9
|
-
const distEntry = resolve(dir, "../dist/cli.mjs");
|
|
10
|
-
const srcEntry = resolve(dir, "../src/cli.ts");
|
|
11
|
-
|
|
12
|
-
if (existsSync(distEntry)) {
|
|
13
|
-
await import(pathToFileURL(distEntry).href);
|
|
14
|
-
} else {
|
|
15
|
-
const jiti = createJiti(import.meta.url);
|
|
16
|
-
await jiti.import(srcEntry);
|
|
17
|
-
}
|