@xfe-repo/routes-define-webpack-plugin 0.0.2 → 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.
Files changed (2) hide show
  1. package/package.json +3 -2
  2. package/routes.d.ts +9 -0
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@xfe-repo/routes-define-webpack-plugin",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "sideEffects": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "files": [
9
- "dist"
9
+ "dist",
10
+ "routes.d.ts"
10
11
  ],
11
12
  "dependencies": {
12
13
  "fs-extra": "^11.2.0"
package/routes.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ // Warning: Do not modify this file!!!
2
+ // It was generated automatically by routes-define-webpack-plugin.
3
+ // You can modify it by editing the source file. (routes-define-webpack-plugin/routes.d.ts)
4
+
5
+ export type RoutePathType = RoutesType | `${RoutesType}?${string}`
6
+
7
+ export type RoutesType = keyof typeof routesDefinition
8
+
9
+ export const routesDefinition = 'ROUTES_DEFINE_TEMPLATE'