1 | {
|
2 | "name": "@stencila/schema",
|
3 | "version": "1.11.4",
|
4 | "description": "Extensions to schema.org to support semantic, composable, parameterize-able and executable documents",
|
5 | "files": [
|
6 | "dist"
|
7 | ],
|
8 | "source": "ts/index.ts",
|
9 | "main": "dist/index.js",
|
10 | "module": "dist/index.mjs",
|
11 | "browser": "dist/browser/schema.mjs",
|
12 | "unpkg": "dist/browser/schema.umd.js",
|
13 | "types": "dist/ts/index.d.ts",
|
14 | "scripts": {
|
15 | "format": "npx prettier --write './**/*.{js,json,md,ts,yaml}'",
|
16 | "lint": "npx eslint 'ts/**/*.{js,ts}' --fix",
|
17 | "test": "npm run build:jsonschema && npm run build:ts && npm run build:jsonld && jest --runInBand",
|
18 | "test:cover": "npm test -- --coverage",
|
19 | "build": "npm run build:jsonschema && npm run build:ts && npm run build:jsonld && npm run build:python && npm run build:r && npm run build:rust && npm run build:vscode && npm run build:dist",
|
20 | "build:jsonschema": "ts-node ts/schema.ts",
|
21 | "build:jsonld": "ts-node ts/bindings/jsonld.ts",
|
22 | "build:python": "ts-node ts/bindings/python.ts",
|
23 | "build:r": "ts-node ts/bindings/r.ts",
|
24 | "build:rust": "ts-node ts/bindings/rust.ts",
|
25 | "build:ts": "ts-node ts/bindings/typescript.ts",
|
26 | "build:vscode": "ts-node ts/bindings/vscode.ts",
|
27 | "build:browser": "microbundle --tsconfig tsconfig.browser.json -o dist/browser --format es,umd ts/index.browser.ts",
|
28 | "build:node": "microbundle --tsconfig tsconfig.lib.json --target node --format es,cjs ts/index.ts",
|
29 | "build:dist": "npm run build:node && npm run build:browser && cp public/*.schema.json dist && cp public/*.jsonld dist",
|
30 | "docs": "npm run docs:md && npm run docs:api",
|
31 | "docs:md": "ts-node ts/docs.ts",
|
32 | "docs:api": "ts-node ts/bindings/typescript.ts && typedoc ts/index.ts --readme ts/README.md --tsconfig tsconfig.docs.json --out ts/docs/",
|
33 | "clean": "rimraf coverage dist public ts/types.ts ts/docs python/docs r/docs"
|
34 | },
|
35 | "repository": {
|
36 | "type": "git",
|
37 | "url": "https://github.com/stencila/schema.git"
|
38 | },
|
39 | "author": "Contributors https://github.com/stencila/schema/contributors",
|
40 | "license": "Apache-2.0",
|
41 | "bugs": {
|
42 | "url": "https://github.com/stencila/schema/issues"
|
43 | },
|
44 | "homepage": "https://github.com/stencila/schema#readme",
|
45 | "devDependencies": {
|
46 | "@semantic-release/exec": "5.0.0",
|
47 | "@stencila/dev-config": "2.0.18",
|
48 | "@stoplight/json-ref-resolver": "3.1.2",
|
49 | "@types/fs-extra": "9.0.12",
|
50 | "@types/jest": "27.0.1",
|
51 | "@types/js-yaml": "4.0.3",
|
52 | "@types/lodash": "4.14.172",
|
53 | "@types/node": "16.6.1",
|
54 | "@types/prettier": "2.3.2",
|
55 | "@types/toposort": "2.0.3",
|
56 | "ajv": "8.6.2",
|
57 | "ajv-formats": "2.1.1",
|
58 | "change-case": "4.1.2",
|
59 | "del": "6.0.0",
|
60 | "fs-extra": "10.0.0",
|
61 | "globby": "11.0.4",
|
62 | "got": "11.8.2",
|
63 | "jest": "27.0.6",
|
64 | "jest-file-snapshot": "0.5.0",
|
65 | "js-yaml": "4.1.0",
|
66 | "json-schema": "0.3.0",
|
67 | "lodash": "4.17.21",
|
68 | "microbundle": "0.13.3",
|
69 | "rimraf": "3.0.2",
|
70 | "toposort": "2.0.2",
|
71 | "ts-jest": "27.0.5",
|
72 | "ts-node": "10.2.1",
|
73 | "typedoc": "0.21.6",
|
74 | "typescript": "4.3.5"
|
75 | },
|
76 | "jest": {
|
77 | "preset": "ts-jest",
|
78 | "testEnvironment": "node",
|
79 | "testMatch": [
|
80 | "<rootDir>/ts/**/*.test.[jt]s?(x)"
|
81 | ],
|
82 | "modulePathIgnorePatterns": [
|
83 | "<rootDir>/dist"
|
84 | ],
|
85 | "setupFilesAfterEnv": [
|
86 | "<rootDir>/ts/__tests__/matchers.ts"
|
87 | ],
|
88 | "collectCoverageFrom": [
|
89 | "ts/util/*.ts",
|
90 | "!ts/util/index.ts"
|
91 | ],
|
92 | "watchPathIgnorePatterns": [
|
93 | "__file_snapshots__",
|
94 | "public",
|
95 | "dist"
|
96 | ]
|
97 | },
|
98 | "commitlint": {
|
99 | "extends": [
|
100 | "@commitlint/config-conventional"
|
101 | ],
|
102 | "rules": {
|
103 | "scope-case": [
|
104 | 2,
|
105 | "always",
|
106 | "sentence-case"
|
107 | ],
|
108 | "subject-case": [
|
109 | 2,
|
110 | "always",
|
111 | "sentence-case"
|
112 | ]
|
113 | }
|
114 | },
|
115 | "eslintConfig": {
|
116 | "extends": "@stencila/eslint-config",
|
117 | "ignorePatterns": [
|
118 | "*.test.ts"
|
119 | ],
|
120 | "rules": {
|
121 | "@typescript-eslint/no-unsafe-assignment": "warn",
|
122 | "@typescript-eslint/no-unsafe-call": "warn",
|
123 | "@typescript-eslint/no-unsafe-member-access": "warn",
|
124 | "@typescript-eslint/no-unsafe-return": "warn",
|
125 | "@typescript-eslint/restrict-template-expressions": "warn"
|
126 | },
|
127 | "env": {
|
128 | "es6": true,
|
129 | "node": true,
|
130 | "jest": true
|
131 | }
|
132 | },
|
133 | "eslintIgnore": [
|
134 | "public",
|
135 | "dist",
|
136 | "docs",
|
137 | "__file_snapshots__"
|
138 | ],
|
139 | "husky": {
|
140 | "hooks": {
|
141 | "pre-commit": "pretty-quick --staged",
|
142 | "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
143 | }
|
144 | },
|
145 | "prettier": "@stencila/dev-config/prettier-config.json",
|
146 | "release": {
|
147 | "extends": "@stencila/semantic-release-config",
|
148 | "plugins": [
|
149 | "@semantic-release/commit-analyzer",
|
150 | "@semantic-release/release-notes-generator",
|
151 | "@semantic-release/changelog",
|
152 | [
|
153 | "@semantic-release/exec",
|
154 | {
|
155 | "prepareCmd": "./.ci/prepare-release.sh ${nextRelease.version}"
|
156 | }
|
157 | ],
|
158 | "@semantic-release/npm",
|
159 | [
|
160 | "@semantic-release/git",
|
161 | {
|
162 | "assets": [
|
163 | "CHANGELOG.md",
|
164 | "package.json",
|
165 | "package-lock.json",
|
166 | "python/stencila/schema/types.py",
|
167 | "python/setup.py",
|
168 | "r/R/types.R",
|
169 | "r/NAMESPACE",
|
170 | "r/DESCRIPTION",
|
171 | "rust/src/types.rs",
|
172 | "rust/src/schemas.rs",
|
173 | "rust/Cargo.toml",
|
174 | "rust/Cargo.lock",
|
175 | "ts/types.ts",
|
176 | ".vscode/settings.json"
|
177 | ]
|
178 | }
|
179 | ],
|
180 | [
|
181 | "@semantic-release/github",
|
182 | {
|
183 | "assets": [
|
184 | {
|
185 | "path": "docs.tar.gz"
|
186 | }
|
187 | ]
|
188 | }
|
189 | ]
|
190 | ]
|
191 | },
|
192 | "renovate": {
|
193 | "extends": [
|
194 | "@stencila"
|
195 | ],
|
196 | "schedule": [
|
197 | "before 1am on Monday"
|
198 | ]
|
199 | }
|
200 | }
|