@vaultgradient/pipequery-cli 0.10.2 → 0.10.5

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/package.json CHANGED
@@ -1,11 +1,22 @@
1
1
  {
2
2
  "name": "@vaultgradient/pipequery-cli",
3
- "version": "0.10.2",
3
+ "version": "0.10.5",
4
4
  "description": "CLI for PipeQuery — data sources, aggregations, APIs, and terminal dashboards",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "pq": "./dist/index.js"
8
8
  },
9
+ "exports": {
10
+ ".": "./dist/index.js",
11
+ "./engine": {
12
+ "types": "./dist/engine.d.ts",
13
+ "default": "./dist/engine.js"
14
+ },
15
+ "./sources": {
16
+ "types": "./dist/sources/manager.d.ts",
17
+ "default": "./dist/sources/manager.js"
18
+ }
19
+ },
9
20
  "scripts": {
10
21
  "build": "tsup",
11
22
  "dev": "tsup --watch",
package/tsconfig.json CHANGED
@@ -4,6 +4,7 @@
4
4
  "module": "ESNext",
5
5
  "moduleResolution": "bundler",
6
6
  "lib": ["ES2022"],
7
+ "types": ["node"],
7
8
  "strict": true,
8
9
  "skipLibCheck": true,
9
10
  "noEmit": true,
@@ -11,7 +12,8 @@
11
12
  "declaration": true,
12
13
  "esModuleInterop": true,
13
14
  "forceConsistentCasingInFileNames": true,
14
- "resolveJsonModule": true
15
+ "resolveJsonModule": true,
16
+ "ignoreDeprecations": "6.0"
15
17
  },
16
18
  "include": ["src"]
17
19
  }
package/tsup.config.ts CHANGED
@@ -1,13 +1,36 @@
1
1
  import { defineConfig } from 'tsup';
2
2
 
3
- export default defineConfig({
4
- entry: ['src/index.ts'],
5
- format: ['esm'],
6
- target: 'node24',
7
- platform: 'node',
8
- clean: true,
9
- splitting: false,
10
- banner: {
11
- js: '#!/usr/bin/env node',
3
+ // Two-stage build: the CLI binary (with a shebang) and library entry points
4
+ // (with .d.ts declarations). The CLI build cleans `dist/`; the lib build runs
5
+ // after and preserves it.
6
+ //
7
+ // Library entries are additive; consumers can use the CLI as before, and
8
+ // programmatic consumers can import `@andreadito/pq/engine` /
9
+ // `@andreadito/pq/sources` for embedding scenarios (e.g. a custom MCP gateway).
10
+ export default defineConfig([
11
+ {
12
+ name: 'cli',
13
+ entry: ['src/index.ts'],
14
+ format: ['esm'],
15
+ target: 'node24',
16
+ platform: 'node',
17
+ clean: true,
18
+ splitting: false,
19
+ banner: {
20
+ js: '#!/usr/bin/env node',
21
+ },
12
22
  },
13
- });
23
+ {
24
+ name: 'lib',
25
+ entry: {
26
+ engine: 'src/engine.ts',
27
+ 'sources/manager': 'src/server/sources/manager.ts',
28
+ },
29
+ format: ['esm'],
30
+ target: 'node24',
31
+ platform: 'node',
32
+ clean: false,
33
+ splitting: false,
34
+ dts: true,
35
+ },
36
+ ]);