zcb 0.0.20 → 0.0.22

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zcb",
3
3
  "description": "Build configs with type safety from zod schema.",
4
- "version": "0.0.20",
4
+ "version": "0.0.22",
5
5
  "author": "Dylan Aubrey",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/badbatch/zod-config-builder",
@@ -11,8 +11,11 @@
11
11
  "bin": {
12
12
  "zcb": "./bin/zcb.mjs"
13
13
  },
14
- "main": "./dist/main/index.mjs",
15
- "types": "./dist/types/index.d.ts",
14
+ "exports": {
15
+ "types": "./dist/types/index.d.ts",
16
+ "import": "./dist/esm/index.mjs",
17
+ "require": "./dist/cjs/index.mjs"
18
+ },
16
19
  "publishConfig": {
17
20
  "access": "public"
18
21
  },
@@ -20,8 +23,8 @@
20
23
  "fs-extra": "^11.1.1",
21
24
  "handlebars": "^4.7.7",
22
25
  "json-schema": "^0.4.0",
23
- "shelljs": "^0.8.4",
24
- "yargs": "^15.1.0",
26
+ "shelljs": "^0.8.5",
27
+ "yargs": "^15.4.1",
25
28
  "zod": "^3.21.4",
26
29
  "zod-to-json-schema": "^3.21.0"
27
30
  },
@@ -35,10 +38,12 @@
35
38
  "@babel/cli": "^7.21.5",
36
39
  "@babel/core": "^7.21.8",
37
40
  "@babel/eslint-parser": "^7.21.8",
38
- "@babel/plugin-proposal-class-properties": "^7.18.6",
39
- "@babel/plugin-proposal-export-namespace-from": "^7.18.9",
41
+ "@babel/plugin-proposal-decorators": "^7.23.3",
40
42
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
41
43
  "@babel/plugin-syntax-import-assertions": "^7.20.0",
44
+ "@babel/plugin-transform-class-properties": "^7.23.3",
45
+ "@babel/plugin-transform-export-namespace-from": "^7.23.4",
46
+ "@babel/plugin-transform-modules-commonjs": "^7.23.3",
42
47
  "@babel/plugin-transform-runtime": "^7.21.4",
43
48
  "@babel/preset-env": "^7.21.5",
44
49
  "@babel/preset-react": "^7.18.6",
@@ -48,44 +53,44 @@
48
53
  "@commitlint/config-conventional": "^17.6.3",
49
54
  "@commitlint/prompt-cli": "^17.6.3",
50
55
  "@jest/globals": "^29.5.0",
51
- "@repodog/babel-config": "^1.1.4",
52
- "@repodog/cli": "^1.1.5",
53
- "@repodog/commitlint-config": "^1.1.4",
54
- "@repodog/eslint-config": "^1.1.4",
55
- "@repodog/jest-config": "^1.1.4",
56
- "@repodog/markdownlint-config": "^1.1.4",
57
- "@repodog/prettier-config": "^1.1.4",
58
- "@repodog/rollup-config": "^1.1.4",
59
- "@repodog/syncpack-config": "^1.1.4",
60
- "@repodog/ts-config": "^1.1.4",
56
+ "@repodog/babel-config": "^1.1.11",
57
+ "@repodog/cli": "^1.2.2",
58
+ "@repodog/commitlint-config": "^1.1.6",
59
+ "@repodog/eslint-config": "^1.1.17",
60
+ "@repodog/eslint-config-jest": "^1.1.10",
61
+ "@repodog/jest-config": "^1.1.11",
62
+ "@repodog/markdownlint-config": "^1.1.5",
63
+ "@repodog/prettier-config": "^1.1.5",
64
+ "@repodog/rollup-config": "^1.1.8",
65
+ "@repodog/syncpack-config": "^1.2.1",
66
+ "@repodog/ts-config": "^1.1.6",
61
67
  "@rollup/plugin-babel": "^6.0.3",
68
+ "@rollup/plugin-commonjs": "^25.0.7",
62
69
  "@rollup/plugin-image": "^3.0.2",
63
70
  "@rollup/plugin-json": "^6.0.0",
64
71
  "@rollup/plugin-node-resolve": "^15.0.2",
65
72
  "@rollup/plugin-terser": "^0.4.1",
66
73
  "@types/fs-extra": "^11.0.1",
67
- "@types/jest": "^25.1.3",
74
+ "@types/jest": "^25.2.3",
68
75
  "@types/json-schema": "^7.0.11",
69
76
  "@types/lodash-es": "^4.17.9",
70
- "@types/node": "^18.11.18",
71
- "@types/shelljs": "^0.8.11",
72
- "@types/yargs": "^15.0.4",
77
+ "@types/node": "^18.16.7",
78
+ "@types/shelljs": "^0.8.12",
79
+ "@types/yargs": "^15.0.15",
73
80
  "@typescript-eslint/eslint-plugin": "^5.59.5",
74
81
  "@typescript-eslint/parser": "^5.59.5",
75
82
  "babel-jest": "^29.5.0",
76
83
  "babel-plugin-codegen": "^4.1.5",
77
84
  "babel-plugin-macros": "^3.1.0",
78
- "core-js": "^3.27.2",
79
- "del-cli": "^3.0.0",
85
+ "core-js": "^3.30.2",
86
+ "del-cli": "^3.0.1",
80
87
  "eslint": "^8.40.0",
81
88
  "eslint-config-prettier": "^8.8.0",
82
89
  "eslint-import-resolver-typescript": "^3.5.5",
83
90
  "eslint-plugin-import": "^2.27.5",
84
91
  "eslint-plugin-jest": "^27.2.1",
85
- "eslint-plugin-jsx-a11y": "^6.7.1",
92
+ "eslint-plugin-prefer-arrow": "^1.2.3",
86
93
  "eslint-plugin-prettier": "^4.2.1",
87
- "eslint-plugin-react": "^7.32.2",
88
- "eslint-plugin-react-hooks": "^4.6.0",
89
94
  "eslint-plugin-sort-class-members": "^1.18.0",
90
95
  "eslint-plugin-sort-destructure-keys": "^1.5.0",
91
96
  "eslint-plugin-sort-keys-fix": "^1.1.2",
@@ -95,6 +100,8 @@
95
100
  "husky": "^8.0.3",
96
101
  "identity-obj-proxy": "^3.0.0",
97
102
  "jest": "^29.5.0",
103
+ "jest-environment-jsdom": "^29.7.0",
104
+ "jest-environment-node": "^29.7.0",
98
105
  "lodash-es": "^4.17.21",
99
106
  "markdownlint-cli": "^0.34.0",
100
107
  "prettier": "^2.8.8",
@@ -107,7 +114,7 @@
107
114
  "ts-node": "^10.9.1",
108
115
  "ts-toolbelt": "^9.6.0",
109
116
  "type-fest": "^3.10.0",
110
- "typescript": "^5.0.3"
117
+ "typescript": "^5.0.4"
111
118
  },
112
119
  "keywords": [
113
120
  "config",
@@ -120,7 +127,8 @@
120
127
  "clean:dist": "del-cli ./dist",
121
128
  "commit": "commit",
122
129
  "compile": "pnpm run /^compile:.*/",
123
- "compile:main": "rollup -c ./rollup.config.cjs",
130
+ "compile:cjs": "MODULE_SYSTEM=cjs rollup -c ./rollup.config.cjs",
131
+ "compile:esm": "rollup -c ./rollup.config.cjs",
124
132
  "compile:types": "tsc --project ./tsconfig.build.json",
125
133
  "cut:changelog": "changelog",
126
134
  "cut:post-version": "pnpm run build",
File without changes
File without changes
File without changes