@zenstackhq/cli 3.0.0-beta.23 → 3.0.0-beta.25
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/.turbo/turbo-build.log +8 -26
- package/dist/index.cjs +241 -129
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +238 -126
- package/dist/index.js.map +1 -1
- package/package.json +11 -12
- package/src/actions/action-utils.ts +27 -7
- package/src/actions/db.ts +6 -2
- package/src/actions/format.ts +27 -0
- package/src/actions/generate.ts +13 -1
- package/src/actions/index.ts +4 -2
- package/src/actions/migrate.ts +14 -2
- package/src/actions/seed.ts +38 -0
- package/src/index.ts +57 -14
- package/src/plugins/typescript.ts +12 -1
- package/src/utils/exec-utils.ts +18 -7
- package/test/db.test.ts +43 -0
- package/test/format.test.ts +33 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @zenstackhq/cli@3.0.0-beta.
|
|
2
|
+
> @zenstackhq/cli@3.0.0-beta.25 build /home/runner/work/zenstack-v3/zenstack-v3/packages/cli
|
|
3
3
|
> tsc --noEmit && tsup-node
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: {"index":"src/index.ts"}
|
|
@@ -10,31 +10,13 @@
|
|
|
10
10
|
[34mCLI[39m Cleaning output folder
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[34mCJS[39m Build start
|
|
13
|
-
[
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
[
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
You need to set the output format to "esm" for "import.meta" to work correctly.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
[warn] [33m▲ [43;33m[[43;30mWARNING[43;33m][0m [1m"import.meta" is not available with the "cjs" output format and will be empty[0m [empty-import-meta]
|
|
23
|
-
|
|
24
|
-
src/utils/exec-utils.ts:30:35:
|
|
25
|
-
[37m 30 │ ...rismaPath = fileURLToPath([32mimport.meta[37m.resolve('prisma/build/ind...
|
|
26
|
-
╵ [32m~~~~~~~~~~~[0m
|
|
27
|
-
|
|
28
|
-
You need to set the output format to "esm" for "import.meta" to work correctly.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
[32mESM[39m [1mdist/index.js [22m[32m33.49 KB[39m
|
|
32
|
-
[32mESM[39m [1mdist/index.js.map [22m[32m70.32 KB[39m
|
|
33
|
-
[32mESM[39m ⚡️ Build success in 195ms
|
|
34
|
-
[32mCJS[39m [1mdist/index.cjs [22m[32m37.29 KB[39m
|
|
35
|
-
[32mCJS[39m [1mdist/index.cjs.map [22m[32m70.85 KB[39m
|
|
36
|
-
[32mCJS[39m ⚡️ Build success in 196ms
|
|
13
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m41.99 KB[39m
|
|
14
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m80.26 KB[39m
|
|
15
|
+
[32mCJS[39m ⚡️ Build success in 183ms
|
|
16
|
+
[32mESM[39m [1mdist/index.js [22m[32m37.94 KB[39m
|
|
17
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m79.68 KB[39m
|
|
18
|
+
[32mESM[39m ⚡️ Build success in 185ms
|
|
37
19
|
[34mDTS[39m Build start
|
|
38
|
-
[32mDTS[39m ⚡️ Build success in
|
|
20
|
+
[32mDTS[39m ⚡️ Build success in 3662ms
|
|
39
21
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m13.00 B[39m
|
|
40
22
|
[32mDTS[39m [1mdist/index.d.cts [22m[32m13.00 B[39m
|