@schematichq/schematic-js 1.5.0 → 1.6.0

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@schematichq/schematic-js",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "main": "dist/schematic.cjs.js",
5
5
  "module": "dist/schematic.esm.js",
6
6
  "types": "dist/schematic.d.ts",
@@ -17,46 +17,45 @@
17
17
  "url": "git+ssh://git@github.com/SchematicHQ/schematic-js.git"
18
18
  },
19
19
  "scripts": {
20
- "build": "./version.sh && yarn cache-version && npx tsc && yarn clean && yarn build:browser && yarn build:cjs && yarn build:esm && yarn build:types",
20
+ "build": "./version.sh && pnpm run cache-version && pnpm exec tsc && pnpm run clean && pnpm run build:browser && pnpm run build:cjs && pnpm run build:esm && pnpm run build:types",
21
21
  "cache-version": "node scripts/generate-cache-version.mjs",
22
- "build:browser": "npx esbuild src/browser.ts --bundle --minify --outfile=dist/schematic.browser.js --platform=browser",
23
- "build:cjs": "npx esbuild src/index.ts --bundle --format=cjs --outfile=dist/schematic.cjs.js",
24
- "build:esm": "npx esbuild src/index.ts --bundle --format=esm --outfile=dist/schematic.esm.js",
25
- "build:types": "npx tsc && npx api-extractor run",
22
+ "build:browser": "pnpm exec esbuild src/browser.ts --bundle --minify --outfile=dist/schematic.browser.js --platform=browser",
23
+ "build:cjs": "pnpm exec esbuild src/index.ts --bundle --format=cjs --outfile=dist/schematic.cjs.js",
24
+ "build:esm": "pnpm exec esbuild src/index.ts --bundle --format=esm --outfile=dist/schematic.esm.js",
25
+ "build:types": "pnpm exec tsc && pnpm exec api-extractor run",
26
26
  "clean": "rm -rf dist",
27
27
  "format": "prettier --write src/*.ts",
28
28
  "lint": "eslint src --report-unused-disable-directives --fix",
29
- "openapi": "rm -rf src/types/api/ && npx openapi-generator-cli generate -c openapi-config.yaml && prettier --write \"src/types/api/**/*.{ts,tsx}\"",
29
+ "openapi": "rm -rf src/types/api/ && pnpm exec openapi-generator-cli generate -c openapi-config.yaml && prettier --write \"src/types/api/**/*.{ts,tsx}\"",
30
30
  "prepare": "husky",
31
- "test": "vitest run",
31
+ "test": "vitest run && pnpm run tsc:check",
32
32
  "test:reactnative": "vitest run --config vitest.config.reactnative.ts",
33
33
  "test:watch": "vitest",
34
- "tsc": "npx tsc"
34
+ "tsc": "pnpm exec tsc",
35
+ "tsc:check": "pnpm exec tsc -p tsconfig.test.json --noEmit"
35
36
  },
36
37
  "dependencies": {
37
38
  "cross-fetch": "^4.1.0",
38
- "uuid": "^14.0.1"
39
+ "uuid": "^14.0.2"
39
40
  },
40
41
  "devDependencies": {
41
42
  "@eslint/js": "^10.0.1",
42
- "@microsoft/api-extractor": "^7.58.9",
43
- "@openapitools/openapi-generator-cli": "^2.39.0",
44
- "@vitest/browser": "^4.1.9",
45
- "esbuild": "^0.28.1",
46
- "eslint": "^10.5.0",
47
- "globals": "^17.6.0",
48
- "happy-dom": "^20.10.6",
43
+ "@microsoft/api-extractor": "^7.59.0",
44
+ "@openapitools/openapi-generator-cli": "^2.41.0",
45
+ "@types/node": "^26.4.0",
46
+ "@vitest/browser": "^5.0.0",
47
+ "esbuild": "^0.28.2",
48
+ "eslint": "^10.10.0",
49
+ "globals": "^17.12.0",
50
+ "happy-dom": "^20.14.0",
49
51
  "husky": "^9.1.7",
50
- "jsdom": "^29.1.1",
52
+ "js-yaml": "^5.4.1",
53
+ "jsdom": "^30.0.1",
51
54
  "mock-socket": "^9.3.1",
52
- "prettier": "^3.8.4",
55
+ "prettier": "^3.9.6",
53
56
  "typescript": "^6.0.3",
54
- "typescript-eslint": "^8.61.1",
55
- "vitest": "^4.1.9"
57
+ "typescript-eslint": "^8.69.0",
58
+ "vitest": "^5.0.0"
56
59
  },
57
- "resolutions": {
58
- "rollup": ">=4.59.0",
59
- "undici": ">=7.24.0"
60
- },
61
- "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
60
+ "packageManager": "pnpm@11.9.0+sha512.bd682d5d03fe525ef7c9fd6780c6884d1e756ac4c9c9fe00c538782824310dcf90e3ddc4f53835f06dfaebd5085e41855e0bcbb3b60de2ac5bbab89e5036f03b"
62
61
  }