UNPKG

@atlaskit/adf-schema

Version:

Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs

90 lines (89 loc) 4.44 kB
{ "name": "@atlaskit/adf-schema", "version": "51.5.5", "description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs", "publishConfig": { "registry": "https://registry.npmjs.org/" }, "repository": { "type": "git", "url": "git+https://bitbucket.org/atlassian/adf-schema.git" }, "atlassian": { "team": "Editor: Lego" }, "author": "Atlassian Pty Ltd", "license": "Apache-2.0", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "module:es2019": "dist/es2019/index.js", "types": "dist/types/index.d.ts", "sideEffects": false, "atlaskit:src": "src/index.ts", "scripts": { "clean:build": "rm -rf dist", "ak-postbuild": "yarn build:move:json-schema", "test": "yarn test:unit", "test:unit": "yarn workspace @atlaskit/editor-prosemirror build && jest --testPathPattern=packages/adf-schema/ --config=../../jest.config.js", "test:json-schema": "yarn run jest --expand --testPathPattern=packages/adf-schema/schema-generators/__tests__/unit/json-full-schema.unit.ts --config=../../jest.config.js", "build:cjs": "NODE_ENV=production BABEL_ENV=production:node-cjs babel --config-file ./babel.config.js src --out-dir dist/cjs -x .ts,.tsx", "build:esm": "NODE_ENV=production BABEL_ENV=production:esm babel --config-file ./babel.config.js src -d dist/esm -x .ts,.tsx", "build:es2019": "NODE_ENV=production BABEL_ENV=production:es2019 babel --config-file ./babel.config.js src -d dist/es2019 -x .ts,.tsx", "build:types": "NODE_ENV=production yarn tsc --project ./build/tsconfig.json --emitDeclarationOnly --outDir ./dist/types --rootDir ./src && yarn build:jsontypes", "build:jsontypes": "mkdir -p dist/types/json-schema && cp src/json-schema/index.ts dist/types/json-schema/index.d.ts", "build:all": "yarn build:cjs && yarn build:esm && yarn build:es2019 && yarn build:types", "build": "yarn clean:build && yarn workspace @atlaskit/editor-prosemirror build && yarn workspace @atlaskit/adf-schema-generator build && yarn run build:all && yarn run build:schema:all", "build:move:json-schema": "mkdir -p dist && cp -r json-schema dist", "build:schema:pm": "yarn ts-node ./schema-generators/pm-full-schema.ts && prettier --write --no-editorconfig './src/next-schema/generated/**/*.ts'", "build:schema:json": "mkdir -p json-schema/v1/ && yarn ts-node ./schema-generators/json-full-schema.ts && prettier --write --no-editorconfig './json-schema/v1/*.json' && yarn run build:move:json-schema", "build:schema:validator": "yarn ts-node ./schema-generators/validator-full-schema.ts && prettier --write --no-editorconfig './src/validator-schema/generated/**/*.ts'", "build:schema:all": "yarn build:schema:pm && yarn build:schema:json && yarn build:schema:validator" }, "dependencies": { "@atlaskit/adf-schema-generator": "^2.1.0", "@atlaskit/editor-prosemirror": "^7.2.0", "@atlaskit/feature-gate-js-client": "^5.5.0", "@babel/runtime": "^7.0.0", "css-color-names": "0.0.4", "linkify-it": "^3.0.3", "memoize-one": "^6.0.0" }, "devDependencies": { "@atlaskit/codemod-utils": "^4.2.0", "@atlassian/adf-schema-json": "^1.33.0", "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1", "@babel/cli": "^7.20.0", "@babel/core": "7.24.9", "@babel/plugin-proposal-class-properties": "^7.18.6", "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6", "@babel/plugin-proposal-object-rest-spread": "^7.20.0", "@babel/plugin-proposal-optional-chaining": "^7.20.0", "@babel/plugin-syntax-dynamic-import": "^7.8.3", "@babel/plugin-transform-runtime": "^7.20.0", "@babel/preset-env": "^7.20.0", "@babel/preset-react": "^7.18.6", "@babel/preset-typescript": "^7.20.0", "@compiled/babel-plugin": "^0.38.1", "@manypkg/find-root": "^1.1.0", "@types/jest": "^29.5.12", "@types/json-schema": "^7.0.15", "@types/linkify-it": "^3.0.2", "@types/node": "~22.17.1", "babel-plugin-transform-define": "^2.0.0", "eslint": "^8.57.0", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "json-schema-diff-validator": "^0.4.1", "prettier": "^3.2.5", "prop-types": "^15.5.10", "react": "^16.8.0", "react-dom": "^16.8.0", "react-magnetic-di": "^3.1.4", "rxjs": "^5.5.0", "styled-components": "^3.2.6", "ts-jest": "^29.2.2", "ts-node": "^10.9.1", "typescript": "5.9.2" }, "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1" }