UNPKG

@rjsf/core

Version:

A simple React component capable of building HTML forms out of a JSON schema.

130 lines (129 loc) 3.78 kB
{ "name": "@rjsf/core", "version": "6.3.1", "description": "A simple React component capable of building HTML forms out of a JSON schema.", "scripts": { "compileReplacer": "tsc -p tsconfig.replacer.json && move-file lodashReplacer.js lodashReplacer.cjs", "build:ts": "npm run compileReplacer && rimraf ./lib && tsc -b tsconfig.build.json && tsc-alias -p tsconfig.build.json", "build:cjs": "esbuild ./src/index.ts --bundle --outfile=dist/index.cjs --sourcemap --packages=external --format=cjs", "build:esm": "esbuild ./src/index.ts --bundle --outfile=dist/index.esm.js --sourcemap --packages=external --format=esm", "build:umd": "rollup dist/index.esm.js --format=umd --file=dist/core.umd.js --name=JSONSchemaForm", "build": "npm run build:ts && npm run build:cjs && npm run build:esm && npm run build:umd", "cs-check": "prettier -l \"{src,test}/**/*.[jt]s?(x)\"", "cs-format": "prettier \"{src,test}/**/*.[jt]s?(x)\" --write", "lint": "eslint src test", "precommit": "lint-staged", "publish-to-npm": "npm run build && npm publish", "test": "jest", "test:debug": "node --inspect-brk ../../node_modules/.bin/jest", "test:update": "jest --u", "test:watch": "jest --watch", "test-coverage": "jest --coverage" }, "lint-staged": { "{src,test}/**/*.[jt]s?(x)": [ "eslint --fix" ] }, "main": "dist/index.js", "module": "lib/index.js", "typings": "lib/index.d.ts", "type": "module", "exports": { ".": { "types": "./lib/index.d.ts", "require": "./dist/index.cjs", "import": "./lib/index.js" }, "./lib": { "types": "./lib/index.d.ts", "require": "./dist/index.cjs", "import": "./lib/index.js" }, "./lib/*.js": { "types": "./lib/*.d.ts", "require": "./dist/*.cjs", "import": "./lib/*.js" }, "./dist": { "types": "./lib/index.d.ts", "require": "./dist/index.cjs", "import": "./lib/index.js" }, "./dist/*.cjs": { "types": "./lib/*.d.ts", "require": "./dist/*.cjs", "import": "./lib/*.js" } }, "files": [ "dist", "lib", "src" ], "engineStrict": false, "engines": { "node": ">=20" }, "peerDependencies": { "@rjsf/utils": "^6.3.x", "react": ">=18" }, "dependencies": { "lodash": "^4.17.23", "lodash-es": "^4.17.23", "markdown-to-jsx": "^8.0.0", "prop-types": "^15.8.1" }, "devDependencies": { "@rjsf/snapshot-tests": "6.3.1", "@rjsf/utils": "6.3.1", "@rjsf/validator-ajv8": "6.3.1", "@testing-library/jest-dom": "^6.9.1", "@testing-library/react": "^16.3.2", "@testing-library/user-event": "^14.6.1", "@types/react-portal": "^4.0.7", "ajv": "^8.17.1", "atob": "^2.1.2", "eslint": "^8.57.1", "jsdom": "^27.0.1", "react-portal": "^4.3.0" }, "directories": { "test": "test" }, "repository": { "type": "git", "url": "git+https://github.com/rjsf-team/react-jsonschema-form.git" }, "author": "Nicolas Perriault <nperriault@mozilla.com>", "contributors": [ "Heath Chiavettone <heath.chiavettone@freenome.com" ], "keywords": [ "react", "form", "json-schema" ], "license": "Apache-2.0", "homepage": "https://github.com/rjsf-team/react-jsonschema-form", "publishConfig": { "access": "public" }, "nx": { "targets": { "build": { "dependsOn": [ { "//": "Break the dependency cycle between @rjsf/core and @rjsf/snapshot-tests by explicitly listing the dependencies needed for build", "projects": [ "@rjsf/utils", "@rjsf/validator-ajv8" ], "target": "build" } ] } } } }