@1szx1/vite-plugin-swagger2ts 1.0.13 → 1.0.15

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.
@@ -17,7 +17,7 @@ var __copyProps = (to, from, except, desc) => {
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
 
20
- // src/adapters.ts
20
+ // src/adapters/index.ts
21
21
  var adapters_exports = {};
22
22
  __export(adapters_exports, {
23
23
  axiosAdapter: () => axiosAdapter
package/package.json CHANGED
@@ -1,10 +1,7 @@
1
1
  {
2
2
  "name": "@1szx1/vite-plugin-swagger2ts",
3
3
  "description": "fork for https://github.com/1SZX1/vite-plugin-swagger2ts",
4
- "version": "1.0.13",
5
- "main": "dist/index.cjs",
6
- "module": "dist/index.mjs",
7
- "types": "index.d.ts",
4
+ "version": "1.0.15",
8
5
  "license": "MIT",
9
6
  "author": "1SZX1 <2414126198@qq.com>",
10
7
  "repository": {
@@ -18,17 +15,29 @@
18
15
  ],
19
16
  "exports": {
20
17
  ".": {
21
- "require": "./dist/index.cjs",
22
- "import": "./dist/index.mjs"
18
+ "require": "./dist/index.js",
19
+ "import": "./dist/index.mjs",
20
+ "types": "./dist/index.d.ts"
23
21
  },
24
22
  "./adapters": {
25
- "require": "./dist/adapters.cjs",
26
- "import": "./dist/adapters.mjs"
23
+ "require": "./dist/adapters/index.js",
24
+ "import": "./dist/adapters/index.mjs",
25
+ "types": "./dist/adapters/index.d.ts"
27
26
  }
28
27
  },
28
+ "main": "dist/index.js",
29
+ "module": "dist/index.mjs",
30
+ "types": "index.d.ts",
31
+ "typesVersions": {
32
+ "*": {
33
+ "*": [
34
+ "./dist/*"
35
+ ]
36
+ }
37
+ },
29
38
  "scripts": {
30
39
  "dev": "pnpm run build -- --watch --ignore-watch examples",
31
- "build": "tsup src/index.ts src/adapters.ts --dts --format cjs,esm",
40
+ "build": "tsup src/index.ts src/adapters/index.ts --dts --format cjs,esm",
32
41
  "prepublishOnly": "pnpm run build",
33
42
  "release": "pnpx git-ensure -a && pnpx bumpp --commit --tag --push",
34
43
  "demo:dev": "pnpm -C examples/demo run dev",
File without changes
File without changes