Skip to content

Commit 4bf1304

Browse files
authored
fix: make core plugins compile generated ts files by default (#373)
1 parent 0d7a2bf commit 4bf1304

File tree

22 files changed

+16
-53
lines changed

22 files changed

+16
-53
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "zenstack-monorepo",
3-
"version": "1.0.0-alpha.111",
3+
"version": "1.0.0-alpha.112",
44
"description": "",
55
"scripts": {
66
"build": "pnpm -r build",

packages/language/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@zenstackhq/language",
3-
"version": "1.0.0-alpha.111",
3+
"version": "1.0.0-alpha.112",
44
"displayName": "ZenStack modeling language compiler",
55
"description": "ZenStack modeling language compiler",
66
"homepage": "https://zenstack.dev",

packages/next/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@zenstackhq/next",
3-
"version": "1.0.0-alpha.111",
3+
"version": "1.0.0-alpha.112",
44
"displayName": "ZenStack Next.js integration",
55
"description": "ZenStack Next.js integration",
66
"homepage": "https://zenstack.dev",

packages/plugins/openapi/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@zenstackhq/openapi",
33
"displayName": "ZenStack Plugin and Runtime for OpenAPI",
4-
"version": "1.0.0-alpha.111",
4+
"version": "1.0.0-alpha.112",
55
"description": "ZenStack plugin and runtime supporting OpenAPI",
66
"main": "index.js",
77
"repository": {

packages/plugins/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@zenstackhq/react",
33
"displayName": "ZenStack plugin and runtime for ReactJS",
4-
"version": "1.0.0-alpha.111",
4+
"version": "1.0.0-alpha.112",
55
"description": "ZenStack plugin and runtime for ReactJS",
66
"main": "index.js",
77
"repository": {

packages/plugins/trpc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@zenstackhq/trpc",
33
"displayName": "ZenStack plugin for tRPC",
4-
"version": "1.0.0-alpha.111",
4+
"version": "1.0.0-alpha.112",
55
"description": "ZenStack plugin for tRPC",
66
"main": "index.js",
77
"repository": {

packages/runtime/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@zenstackhq/runtime",
33
"displayName": "ZenStack Runtime Library",
4-
"version": "1.0.0-alpha.111",
4+
"version": "1.0.0-alpha.112",
55
"description": "Runtime of ZenStack for both client-side and server-side environments.",
66
"repository": {
77
"type": "git",

packages/schema/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"publisher": "zenstack",
44
"displayName": "ZenStack Language Tools",
55
"description": "A toolkit for building secure CRUD apps with Next.js + Typescript",
6-
"version": "1.0.0-alpha.111",
6+
"version": "1.0.0-alpha.112",
77
"author": {
88
"name": "ZenStack Team"
99
},

packages/schema/src/plugins/access-policy/policy-guard-generator.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ export default class PolicyGenerator {
123123

124124
sf.addStatements('export default policy');
125125

126-
// emit if generated into standard location or compilation is forced
127-
const shouldCompile = !options.output || options.compile === true;
126+
const shouldCompile = options.compile !== false;
128127
if (!shouldCompile || options.preserveTsFiles === true) {
129128
// save ts files
130129
await saveProject(project);

packages/schema/src/plugins/model-meta/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ export default async function run(model: Model, options: PluginOptions) {
5050
});
5151
sf.addStatements('export default metadata;');
5252

53-
// emit if generated into standard location or compilation is forced
54-
const shouldCompile = !options.output || options.compile === true;
53+
const shouldCompile = options.compile !== false;
5554
if (!shouldCompile || options.preserveTsFiles === true) {
5655
// save ts files
5756
await saveProject(project);

0 commit comments

Comments
 (0)