expresso-swagger 0.0.1 → 0.0.3

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.
@@ -0,0 +1,9 @@
1
+ import { ExpressoSwagger } from '../core';
2
+ import { ExpressoSwaggerUI } from '../ui';
3
+ /**
4
+ * Ritorna il percorso assoluto della cartella UI compilata.
5
+ * Utile per servire i file statici con qualsiasi framework (Express, Fastify, ecc.)
6
+ */
7
+ export declare function getUIPath(): string;
8
+ export { ExpressoSwagger, ExpressoSwaggerUI };
9
+ export * from '../core/types';
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "expresso-swagger",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "A modern, beautiful Swagger UI replacement with built-in credential support and easy programmatic configuration.",
5
5
  "main": "./dist/lib/index.js",
6
6
  "module": "./dist/lib/index.mjs",
7
- "types": "./dist/lib/index.d.ts",
7
+ "types": "./dist/lib/lib/index.d.ts",
8
8
  "files": [
9
9
  "dist"
10
10
  ],
@@ -15,8 +15,7 @@
15
15
  "build:lib": "npm run build:lib:esm && npm run build:lib:cjs && npm run build:lib:types",
16
16
  "build:lib:esm": "esbuild src/lib/index.ts --bundle --platform=node --format=esm --outfile=dist/lib/index.mjs --external:react --external:react-dom --external:path --external:fs --external:axios",
17
17
  "build:lib:cjs": "esbuild src/lib/index.ts --bundle --platform=node --format=cjs --outfile=dist/lib/index.js --external:react --external:react-dom --external:path --external:fs --external:axios",
18
- "build:lib:types": "tsc src/lib/index.ts --declaration --emitDeclarationOnly --outDir dist/lib --esModuleInterop --jsx react-jsx --skipLibCheck",
19
- "preview": "vite preview",
18
+ "build:lib:types": "tsc src/lib/index.ts --declaration --emitDeclarationOnly --outDir dist/lib --esModuleInterop --jsx react-jsx --skipLibCheck --rootDir src",
20
19
  "test": "vitest run",
21
20
  "prepublishOnly": "npm run build"
22
21
  },