@auth-gate/billing 0.11.0 → 0.12.1
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 +1 -1
- package/bin/cli.mjs +17 -0
- package/dist/cli.mjs +0 -0
- package/package.json +5 -3
package/README.md
CHANGED
package/bin/cli.mjs
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
}
|
package/dist/cli.mjs
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@auth-gate/billing",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.1",
|
|
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.",
|
|
4
5
|
"type": "module",
|
|
5
6
|
"exports": {
|
|
6
7
|
".": {
|
|
@@ -10,12 +11,13 @@
|
|
|
10
11
|
}
|
|
11
12
|
},
|
|
12
13
|
"bin": {
|
|
13
|
-
"auth-gate-billing": "./
|
|
14
|
+
"auth-gate-billing": "./bin/cli.mjs"
|
|
14
15
|
},
|
|
15
16
|
"main": "./dist/index.cjs",
|
|
16
17
|
"module": "./dist/index.mjs",
|
|
17
18
|
"types": "./dist/index.d.ts",
|
|
18
19
|
"files": [
|
|
20
|
+
"bin",
|
|
19
21
|
"dist",
|
|
20
22
|
"icon.png"
|
|
21
23
|
],
|
|
@@ -23,7 +25,7 @@
|
|
|
23
25
|
"chalk": "^5.4.0",
|
|
24
26
|
"dotenv": "^17.2.4",
|
|
25
27
|
"jiti": "^2.4.0",
|
|
26
|
-
"@auth-gate/core": "0.
|
|
28
|
+
"@auth-gate/core": "0.12.1"
|
|
27
29
|
},
|
|
28
30
|
"peerDependencies": {
|
|
29
31
|
"stripe": ">=14"
|