Skip to content

Commit

Permalink
fix: don't use package name starting with dot (#1854)
Browse files Browse the repository at this point in the history
  • Loading branch information
ymc9 authored Nov 14, 2024
1 parent 3134f0d commit 85a8d5d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/schema/src/plugins/plugin-utils.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { DEFAULT_RUNTIME_LOAD_PATH, type PolicyOperationKind } from '@zenstackhq/runtime';
import { PluginGlobalOptions, ensureEmptyDir, getLiteral } from '@zenstackhq/sdk';
import { ensureEmptyDir, getLiteral, PluginGlobalOptions } from '@zenstackhq/sdk';
import { isPlugin, Model, Plugin } from '@zenstackhq/sdk/ast';
import fs from 'fs';
import path from 'path';
import { PluginRunnerOptions } from '../cli/plugin-runner';
import { isPlugin, Model, Plugin } from '@zenstackhq/sdk/ast';
import { getVersion } from '../utils/version-utils';

export const ALL_OPERATION_KINDS: PolicyOperationKind[] = ['create', 'update', 'postUpdate', 'read', 'delete'];

Expand Down Expand Up @@ -33,8 +34,8 @@ export function ensureDefaultOutputFolder(options: PluginRunnerOptions) {
ensureEmptyDir(output);
if (!options.output) {
const pkgJson = {
name: '.zenstack',
version: '1.0.0',
name: 'zenstack-generated',
version: getVersion() ?? '1.0.0',
exports: {
'./enhance': {
types: './enhance.d.ts',
Expand Down

0 comments on commit 85a8d5d

Please sign in to comment.