mclimate-payload-helper 1.0.0 → 1.0.1

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.
@@ -1,3 +1,3 @@
1
- import { UserType } from '@/types';
1
+ import { UserType } from './types';
2
2
  export declare function validateUser(data: unknown): UserType;
3
3
  //# sourceMappingURL=validation.d.ts.map
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.validateUser = validateUser;
4
- const types_1 = require("@/types");
4
+ const types_1 = require("./types");
5
5
  function validateUser(data) {
6
6
  return types_1.userSchema.parse(data);
7
7
  }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "mclimate-payload-helper",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Mclimate payload helper",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {
8
- "build": "tsc --build",
8
+ "build": "tsc && tsc-alias",
9
9
  "prepublishOnly": "npm run build"
10
10
  },
11
11
  "author": "Mclimate",
@@ -13,7 +13,10 @@
13
13
  "devDependencies": {
14
14
  "@types/node": "^22.5.2",
15
15
  "prettier": "^3.3.3",
16
- "typescript": "^5.5.4"
16
+ "tsc-alias": "^1.8.10",
17
+ "tsconfig-paths": "^4.2.0",
18
+ "typescript": "^5.5.4",
19
+ "typescript-transform-paths": "^3.5.0"
17
20
  },
18
21
  "dependencies": {
19
22
  "zod": "^3.23.8"
package/tsconfig.json CHANGED
@@ -9,6 +9,10 @@
9
9
  "paths": {
10
10
  "@/*": ["./src/*"]
11
11
  },
12
+ "plugins": [
13
+ { "transform": "typescript-transform-paths" },
14
+ { "transform": "typescript-transform-paths", "afterDeclarations": true }
15
+ ],
12
16
  "esModuleInterop": true,
13
17
  "forceConsistentCasingInFileNames": true,
14
18
  "strict": true,