@powerlines/plugin-prisma 0.1.4 → 0.1.6

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.
@@ -1,5 +1,5 @@
1
1
  export { getSchema } from './get-schema.cjs';
2
- export { P as PrismaSchemaCreator } from '../index-COZMC3fs.cjs';
2
+ export { P as PrismaSchemaCreator } from '../index-Bl0X2hsA.cjs';
3
3
  import '../types/prisma.cjs';
4
4
  import '@storm-software/build-tools/types';
5
5
  import '@storm-software/config-tools/types';
@@ -1,5 +1,5 @@
1
1
  export { getSchema } from './get-schema.js';
2
- export { P as PrismaSchemaCreator } from '../index-BF_DlZlE.js';
2
+ export { P as PrismaSchemaCreator } from '../index-B7VM-6jk.js';
3
3
  import '../types/prisma.js';
4
4
  import '@storm-software/build-tools/types';
5
5
  import '@storm-software/config-tools/types';
@@ -1,5 +1,5 @@
1
1
  import 'prisma-util/schema-creator';
2
- export { P as PrismaSchemaCreator } from '../index-COZMC3fs.cjs';
2
+ export { P as PrismaSchemaCreator } from '../index-Bl0X2hsA.cjs';
3
3
  import '../types/prisma.cjs';
4
4
  import '@storm-software/build-tools/types';
5
5
  import '@storm-software/config-tools/types';
@@ -1,5 +1,5 @@
1
1
  import 'prisma-util/schema-creator';
2
- export { P as PrismaSchemaCreator } from '../index-BF_DlZlE.js';
2
+ export { P as PrismaSchemaCreator } from '../index-B7VM-6jk.js';
3
3
  import '../types/prisma.js';
4
4
  import '@storm-software/build-tools/types';
5
5
  import '@storm-software/config-tools/types';
@@ -1108,7 +1108,7 @@ type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig>
1108
1108
  declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "release", "finalize"];
1109
1109
  type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
1110
1110
 
1111
- interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> {
1111
+ interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> {
1112
1112
  /**
1113
1113
  * The order in which the plugin should be applied.
1114
1114
  */
@@ -1116,13 +1116,13 @@ interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends k
1116
1116
  /**
1117
1117
  * A filter to determine when the hook should be called.
1118
1118
  */
1119
- filter?: TFilter;
1119
+ filter?: Pick<HookFilter, TFilter>;
1120
1120
  /**
1121
1121
  * The hook function to be called.
1122
1122
  */
1123
1123
  handler: THookFunction;
1124
1124
  }
1125
- type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> = THookFunction | PluginHookObject<THookFunction, TFilter>;
1125
+ type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> = THookFunction | PluginHookObject<THookFunction, TFilter>;
1126
1126
  /**
1127
1127
  * A result returned by the plugin from the `generateTypes` hook that describes the declaration types output file.
1128
1128
  */
@@ -1108,7 +1108,7 @@ type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig>
1108
1108
  declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "release", "finalize"];
1109
1109
  type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
1110
1110
 
1111
- interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> {
1111
+ interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> {
1112
1112
  /**
1113
1113
  * The order in which the plugin should be applied.
1114
1114
  */
@@ -1116,13 +1116,13 @@ interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends k
1116
1116
  /**
1117
1117
  * A filter to determine when the hook should be called.
1118
1118
  */
1119
- filter?: TFilter;
1119
+ filter?: Pick<HookFilter, TFilter>;
1120
1120
  /**
1121
1121
  * The hook function to be called.
1122
1122
  */
1123
1123
  handler: THookFunction;
1124
1124
  }
1125
- type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> = THookFunction | PluginHookObject<THookFunction, TFilter>;
1125
+ type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> = THookFunction | PluginHookObject<THookFunction, TFilter>;
1126
1126
  /**
1127
1127
  * A result returned by the plugin from the `generateTypes` hook that describes the declaration types output file.
1128
1128
  */
@@ -1,4 +1,4 @@
1
- 'use strict';Object.defineProperty(exports,'__esModule',{value:true});var chunkFBBMZ4NC_cjs=require('../chunk-FBBMZ4NC.cjs'),execute=require('@stryke/cli/execute'),exists=require('@stryke/fs/exists'),packageFns=require('@stryke/fs/package-fns'),joinPaths=require('@stryke/path/join-paths'),replace=require('@stryke/path/replace'),f=require('defu'),getConfigPath=require('powerlines/plugin-utils/get-config-path'),paths=require('powerlines/plugin-utils/paths'),getSchema=require('./helpers/get-schema'),schemaCreator=require('./helpers/schema-creator'),types=require('./types');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var f__default=/*#__PURE__*/_interopDefault(f);/*****************************************
1
+ 'use strict';Object.defineProperty(exports,'__esModule',{value:true});var chunkFBBMZ4NC_cjs=require('./chunk-FBBMZ4NC.cjs'),execute=require('@stryke/cli/execute'),exists=require('@stryke/fs/exists'),packageFns=require('@stryke/fs/package-fns'),joinPaths=require('@stryke/path/join-paths'),replace=require('@stryke/path/replace'),f=require('defu'),getConfigPath=require('powerlines/plugin-utils/get-config-path'),paths=require('powerlines/plugin-utils/paths'),getSchema=require('./helpers/get-schema'),schemaCreator=require('./helpers/schema-creator'),types=require('./types');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var f__default=/*#__PURE__*/_interopDefault(f);/*****************************************
2
2
  *
3
3
  * ⚡ Built by Storm Software
4
4
  *
@@ -1,6 +1,6 @@
1
- import { a as PrismaPluginContext, b as PrismaPluginOptions, c as Plugin } from '../index-COZMC3fs.cjs';
2
- export { e as PrismaPluginResolvedConfig, d as PrismaPluginUserConfig } from '../index-COZMC3fs.cjs';
3
- export { ActiveConnectorType, BinaryTargetsEnvValue, ConnectorType, DataSource, EnvPaths, EnvValue, GeneratorConfig, GetSchemaOptions, GetSchemaResponse, MultipleSchemas, PrismaSchema, SchemaFileInput } from '../types/prisma.cjs';
1
+ import { a as PrismaPluginContext, b as PrismaPluginOptions, c as Plugin } from './index-Bl0X2hsA.cjs';
2
+ export { e as PrismaPluginResolvedConfig, d as PrismaPluginUserConfig } from './index-Bl0X2hsA.cjs';
3
+ export { ActiveConnectorType, BinaryTargetsEnvValue, ConnectorType, DataSource, EnvPaths, EnvValue, GeneratorConfig, GetSchemaOptions, GetSchemaResponse, MultipleSchemas, PrismaSchema, SchemaFileInput } from './types/prisma.cjs';
4
4
  import '@storm-software/build-tools/types';
5
5
  import '@storm-software/config-tools/types';
6
6
  import '@storm-software/config/types';
@@ -1,6 +1,6 @@
1
- import { a as PrismaPluginContext, b as PrismaPluginOptions, c as Plugin } from '../index-BF_DlZlE.js';
2
- export { e as PrismaPluginResolvedConfig, d as PrismaPluginUserConfig } from '../index-BF_DlZlE.js';
3
- export { ActiveConnectorType, BinaryTargetsEnvValue, ConnectorType, DataSource, EnvPaths, EnvValue, GeneratorConfig, GetSchemaOptions, GetSchemaResponse, MultipleSchemas, PrismaSchema, SchemaFileInput } from '../types/prisma.js';
1
+ import { a as PrismaPluginContext, b as PrismaPluginOptions, c as Plugin } from './index-B7VM-6jk.js';
2
+ export { e as PrismaPluginResolvedConfig, d as PrismaPluginUserConfig } from './index-B7VM-6jk.js';
3
+ export { ActiveConnectorType, BinaryTargetsEnvValue, ConnectorType, DataSource, EnvPaths, EnvValue, GeneratorConfig, GetSchemaOptions, GetSchemaResponse, MultipleSchemas, PrismaSchema, SchemaFileInput } from './types/prisma.js';
4
4
  import '@storm-software/build-tools/types';
5
5
  import '@storm-software/config-tools/types';
6
6
  import '@storm-software/config/types';
@@ -1,4 +1,4 @@
1
- import {a}from'../chunk-UCUR73HG.js';import {execute,executePackage}from'@stryke/cli/execute';import {existsSync}from'@stryke/fs/exists';import {isPackageListed}from'@stryke/fs/package-fns';import {joinPaths}from'@stryke/path/join-paths';import {replacePath}from'@stryke/path/replace';import f from'defu';import {getConfigPath}from'powerlines/plugin-utils/get-config-path';import {replacePathTokens}from'powerlines/plugin-utils/paths';import {getSchema}from'./helpers/get-schema';import {PrismaSchemaCreator}from'./helpers/schema-creator';export*from'./types';/*****************************************
1
+ import {a}from'./chunk-UCUR73HG.js';import {execute,executePackage}from'@stryke/cli/execute';import {existsSync}from'@stryke/fs/exists';import {isPackageListed}from'@stryke/fs/package-fns';import {joinPaths}from'@stryke/path/join-paths';import {replacePath}from'@stryke/path/replace';import f from'defu';import {getConfigPath}from'powerlines/plugin-utils/get-config-path';import {replacePathTokens}from'powerlines/plugin-utils/paths';import {getSchema}from'./helpers/get-schema';import {PrismaSchemaCreator}from'./helpers/schema-creator';export*from'./types';/*****************************************
2
2
  *
3
3
  * ⚡ Built by Storm Software
4
4
  *
@@ -1,4 +1,4 @@
1
- export { a as PrismaPluginContext, b as PrismaPluginOptions, e as PrismaPluginResolvedConfig, d as PrismaPluginUserConfig } from '../index-COZMC3fs.cjs';
1
+ export { a as PrismaPluginContext, b as PrismaPluginOptions, e as PrismaPluginResolvedConfig, d as PrismaPluginUserConfig } from '../index-Bl0X2hsA.cjs';
2
2
  export { ActiveConnectorType, BinaryTargetsEnvValue, ConnectorType, DataSource, EnvPaths, EnvValue, GeneratorConfig, GetSchemaOptions, GetSchemaResponse, MultipleSchemas, PrismaSchema, SchemaFileInput } from './prisma.cjs';
3
3
  import '@storm-software/build-tools/types';
4
4
  import '@storm-software/config-tools/types';
@@ -1,4 +1,4 @@
1
- export { a as PrismaPluginContext, b as PrismaPluginOptions, e as PrismaPluginResolvedConfig, d as PrismaPluginUserConfig } from '../index-BF_DlZlE.js';
1
+ export { a as PrismaPluginContext, b as PrismaPluginOptions, e as PrismaPluginResolvedConfig, d as PrismaPluginUserConfig } from '../index-B7VM-6jk.js';
2
2
  export { ActiveConnectorType, BinaryTargetsEnvValue, ConnectorType, DataSource, EnvPaths, EnvValue, GeneratorConfig, GetSchemaOptions, GetSchemaResponse, MultipleSchemas, PrismaSchema, SchemaFileInput } from './prisma.js';
3
3
  import '@storm-software/build-tools/types';
4
4
  import '@storm-software/config-tools/types';
@@ -1,4 +1,4 @@
1
- export { a as PrismaPluginContext, b as PrismaPluginOptions, e as PrismaPluginResolvedConfig, d as PrismaPluginUserConfig } from '../index-COZMC3fs.cjs';
1
+ export { a as PrismaPluginContext, b as PrismaPluginOptions, e as PrismaPluginResolvedConfig, d as PrismaPluginUserConfig } from '../index-Bl0X2hsA.cjs';
2
2
  import './prisma.cjs';
3
3
  import '@storm-software/build-tools/types';
4
4
  import '@storm-software/config-tools/types';
@@ -1,4 +1,4 @@
1
- export { a as PrismaPluginContext, b as PrismaPluginOptions, e as PrismaPluginResolvedConfig, d as PrismaPluginUserConfig } from '../index-BF_DlZlE.js';
1
+ export { a as PrismaPluginContext, b as PrismaPluginOptions, e as PrismaPluginResolvedConfig, d as PrismaPluginUserConfig } from '../index-B7VM-6jk.js';
2
2
  import './prisma.js';
3
3
  import '@storm-software/build-tools/types';
4
4
  import '@storm-software/config-tools/types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-prisma",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "type": "module",
5
5
  "description": "A Powerlines plugin to generate project code and a Prisma client from a Prisma schema (PSL).",
6
6
  "repository": {
@@ -127,14 +127,14 @@
127
127
  "files": ["dist/**/*"],
128
128
  "keywords": ["prisma", "powerlines", "storm-software", "powerlines-plugin"],
129
129
  "dependencies": {
130
- "@stryke/path": "^0.18.5",
131
- "@stryke/fs": "^0.32.10",
132
- "@stryke/type-checks": "^0.3.10",
133
- "@stryke/types": "^0.10.0",
134
- "@stryke/cli": "^0.12.4",
130
+ "@stryke/path": "^0.19.0",
131
+ "@stryke/fs": "^0.32.11",
132
+ "@stryke/type-checks": "^0.3.11",
133
+ "@stryke/types": "^0.10.1",
134
+ "@stryke/cli": "^0.12.5",
135
135
  "defu": "^6.1.4",
136
136
  "jiti": "^2.6.1",
137
- "powerlines": "^0.19.0",
137
+ "powerlines": "^0.19.2",
138
138
  "ts-pattern": "^5.9.0",
139
139
  "prisma-util": "^2.1.1",
140
140
  "@prisma/get-platform": "^6.19.0",
@@ -142,10 +142,10 @@
142
142
  "fp-ts": "^2.16.11"
143
143
  },
144
144
  "devDependencies": {
145
- "@powerlines/nx": "^0.10.4",
146
- "@powerlines/plugin-plugin": "^0.11.12",
145
+ "@powerlines/nx": "^0.10.6",
146
+ "@powerlines/plugin-plugin": "^0.11.14",
147
147
  "@types/node": "^22.19.0"
148
148
  },
149
149
  "publishConfig": { "access": "public" },
150
- "gitHead": "8ee43c2a7eebce6b221aa572553f4296c87fce76"
150
+ "gitHead": "487dbe9d301ea6c2bba10d3dec1706b64a079452"
151
151
  }