UNPKG

@atlaskit/adf-schema

Version:

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

85 lines (84 loc) 4.35 kB
{ "name": "@atlaskit/adf-schema", "version": "48.0.0", "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" }, "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, "scripts": { "clean:build": "rm -rf dist", "ak-postbuild": "yarn build: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 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 './src/next-schema/generated/**/*.ts'", "build:schema:json": "mkdir -p json-schema/v1/ && yarn ts-node ./schema-generators/json-full-schema.ts && prettier --write './json-schema/v1/*.json' && yarn run build:move:json-schema", "build:schema:validator": "yarn ts-node ./schema-generators/validator-full-schema.ts && prettier --write './src/validator-schema/generated/**/*.ts'", "build:schema:all": "yarn build:schema:pm && yarn build:schema:json && yarn build:schema:validator", "clean": "../../scripts/build-clean.sh", "link:afe": "yarn build:all && node ./copy-dist-to-afe.js" }, "dependencies": { "@atlaskit/editor-prosemirror": "*", "@atlaskit/feature-gate-js-client": "^4.26.4", "@babel/runtime": "^7.0.0", "css-color-names": "0.0.4", "linkify-it": "^2.0.3", "memoize-one": "^6.0.0" }, "devDependencies": { "@atlaskit/adf-schema-generator": "^2.1.1", "@atlaskit/codemod-utils": "^4.2.4", "@atlassian/adf-schema-json": "^1.31.0", "@babel/cli": "^7.22.9", "@babel/core": "^7.22.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.22.9", "@babel/preset-react": "^7.18.6", "@babel/preset-typescript": "^7.22.5", "@compiled/babel-plugin": "0.15.0", "@manypkg/find-root": "^1.1.0", "@types/jest": "^29.5.3", "@types/json-schema": "^7.0.15", "@types/linkify-it": "^2.0.4", "@types/node": "^20.4.8", "babel-plugin-transform-define": "^2.0.0", "cross-env": "^7.0.3", "jest": "^29.6.2", "jest-environment-jsdom": "^29.6.2", "json-schema-diff-validator": "^0.4.1", "prop-types": "^15.5.4", "react": "^16.8.0", "react-dom": "^16.8.0", "react-magnetic-di": "^2.2.6", "rxjs": "^5.5.0", "styled-components": "^3.2.6", "ts-jest": "^29.1.1", "ts-node": "^10.9.2", "typescript": "^5.6.3" } }