@scalar/nextjs-openapi 0.1.13 → 0.1.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @scalar/nextjs-openapi
2
2
 
3
+ ## 0.1.15
4
+
5
+ ### Patch Changes
6
+
7
+ - 36fd1fc: feat: support src/ directory (not just app/)
8
+ - @scalar/nextjs-api-reference@0.7.13
9
+
10
+ ## 0.1.14
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [62c4ce3]
15
+ - @scalar/types@0.1.12
16
+ - @scalar/nextjs-api-reference@0.7.13
17
+ - @scalar/ts-to-openapi@0.0.5
18
+
3
19
  ## 0.1.13
4
20
 
5
21
  ### Patch Changes
package/dist/openapi.js CHANGED
@@ -56,7 +56,7 @@ const OpenAPI = (config = {}) => {
56
56
  const resp = getPathSchema(sourceFile, program);
57
57
  // Grab the path from the fileName
58
58
  const rawPath = fileName
59
- .replace(/^app|\/route\.ts$/g, '')
59
+ .replace(/^(?:src\/)?app|\/route\.ts$/g, '')
60
60
  .replace(/\[/g, '{')
61
61
  .replace(/]/g, '}');
62
62
  const path = rawPath.startsWith('/') ? rawPath : '/' + rawPath;
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "scalar",
17
17
  "references"
18
18
  ],
19
- "version": "0.1.13",
19
+ "version": "0.1.15",
20
20
  "engines": {
21
21
  "node": ">=18"
22
22
  },
@@ -34,9 +34,9 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "fast-glob": "^3.3.2",
37
- "@scalar/nextjs-api-reference": "0.7.12",
38
- "@scalar/types": "0.1.11",
39
- "@scalar/ts-to-openapi": "0.0.5"
37
+ "@scalar/ts-to-openapi": "0.0.5",
38
+ "@scalar/nextjs-api-reference": "0.7.13",
39
+ "@scalar/types": "0.1.12"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/node": "^20.17.10",
@@ -44,7 +44,7 @@
44
44
  "@types/react-dom": "^19.0.2",
45
45
  "next": "^15.2.3",
46
46
  "openapi-types": "^12.1.3",
47
- "@scalar/build-tooling": "0.1.17"
47
+ "@scalar/build-tooling": "0.1.18"
48
48
  },
49
49
  "scripts": {
50
50
  "build": "scalar-build-rollup",