@schafevormfenster/rest-commons 0.1.2 → 0.1.4

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,5 @@
1
+
2
+ 
3
+ > @schafevormfenster/rest-commons@0.1.3 build /Users/jan-henrik.hempel/Projects/commons/packages/rest-commons
4
+ > tsc
5
+
package/README.md CHANGED
@@ -182,6 +182,19 @@ Don't use this package if you:
182
182
  pnpm add @schafevormfenster/rest-commons
183
183
  ```
184
184
 
185
+ ### TypeScript Sources (Optional)
186
+
187
+ For faster development with Vite, use TypeScript sources directly:
188
+
189
+ ```typescript
190
+ // vite.config.ts - Requires tsconfig "target": "ES2022"+
191
+ export default defineConfig({
192
+ resolve: { conditions: ['source', 'import', 'default'] }
193
+ });
194
+ ```
195
+
196
+ Benefits: Faster HMR, direct debugging, better tree-shaking.
197
+
185
198
  ## Quick Start
186
199
 
187
200
  ```typescript
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "@schafevormfenster/rest-commons",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Centralized authority for REST standards and schemas - XSD schemas, parsing functions, and coding instructions",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
+ "source": "./src/index.ts",
8
9
  "exports": {
9
10
  ".": {
11
+ "source": "./src/index.ts",
10
12
  "types": "./dist/index.d.ts",
11
13
  "default": "./dist/index.js"
12
14
  }
@@ -30,8 +32,8 @@
30
32
  "dayjs": "^1.11.19",
31
33
  "slugify": "^1.6.6",
32
34
  "zod": "^3.25.76",
33
- "@schafevormfenster/logging": "0.1.3",
34
- "@schafevormfenster/security": "0.1.1"
35
+ "@schafevormfenster/logging": "0.1.6",
36
+ "@schafevormfenster/security": "0.1.3"
35
37
  },
36
38
  "scripts": {
37
39
  "typecheck": "tsc --noEmit",