@schematichq/schematic-react 0.2.0-rc.0 → 0.2.0-rc.1

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -4,12 +4,13 @@
4
4
  "module": "dist/schematic-react.esm.js",
5
5
  "author": "Ben Papillon <ben@schematichq.com>",
6
6
  "devDependencies": {
7
- "@craftjs/core": "^0.2.8",
7
+ "@craftjs/core": "^0.2.10",
8
8
  "@microsoft/api-extractor": "^7.38.3",
9
9
  "@openapitools/openapi-generator-cli": "^2.13.4",
10
10
  "@types/jest": "^29.5.11",
11
11
  "@types/pako": "^2.0.3",
12
- "@types/react": "^18.2.48",
12
+ "@types/react": "^18.2.79",
13
+ "@types/react-dom": "^18.2.25",
13
14
  "@typescript-eslint/eslint-plugin": "^6.19.1",
14
15
  "@typescript-eslint/parser": "^6.13.2",
15
16
  "classnames": "^2.5.1",
@@ -39,21 +40,22 @@
39
40
  "url": "git+ssh://git@github.com/SchematicHQ/schematic-js.git"
40
41
  },
41
42
  "scripts": {
43
+ "dev": "yarn tsc --watch",
42
44
  "build": "yarn tsc && yarn openapi && yarn format && yarn lint && yarn clean && yarn build:cjs && yarn build:esm && yarn build:types",
43
- "build:cjs": "npx esbuild src/index.ts --bundle --external:react --format=cjs --outfile=dist/schematic-react.cjs.js",
44
- "build:esm": "npx esbuild src/index.ts --bundle --external:react --format=esm --outfile=dist/schematic-react.esm.js",
45
+ "build:cjs": "npx esbuild src/index.ts --bundle --external:react --external:react-dom --format=cjs --outfile=dist/schematic-react.cjs.js",
46
+ "build:esm": "npx esbuild src/index.ts --bundle --external:react --external:react-dom --format=esm --outfile=dist/schematic-react.esm.js",
45
47
  "build:types": "npx tsc && npx api-extractor run",
46
48
  "clean": "rm -rf dist",
47
49
  "format": "prettier --write \"src/**/*.{ts,tsx}\"",
48
50
  "lint": "eslint src --ext ts,tsx --report-unused-disable-directives --fix",
49
- "openapi": "npx openapi-generator-cli generate -c openapi-config.yaml",
51
+ "openapi": "rm -rf src/api/ && npx openapi-generator-cli generate -c openapi-config.yaml && prettier --write \"src/api/**/*.{ts,tsx}\"",
50
52
  "test": "jest --config jest.config.js",
51
53
  "tsc": "npx tsc"
52
54
  },
53
55
  "types": "dist/schematic-react.d.ts",
54
- "version": "0.2.0-rc.0",
56
+ "version": "0.2.0-rc.1",
55
57
  "dependencies": {
56
- "@schematichq/schematic-js": "^0.1.12",
58
+ "@schematichq/schematic-js": "^0.1.13",
57
59
  "pako": "^2.1.0",
58
60
  "styled-components": "^6.1.12"
59
61
  },