UNPKG

5.61 kBJSONView Raw
1{
2 "name": "@stencila/schema",
3 "version": "1.18.0",
4 "description": "Extensions to schema.org to support semantic, composable, parameterize-able and executable documents",
5 "files": [
6 "dist"
7 ],
8 "source": "src/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/src/index.d.ts",
14 "scripts": {
15 "format": "npx prettier --write './**/*.{js,json,md,ts,yaml}'",
16 "lint": "npx eslint 'src/**/*.{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 src/schema.ts",
21 "build:jsonld": "ts-node src/bindings/jsonld.ts",
22 "build:python": "ts-node src/bindings/python.ts",
23 "build:r": "ts-node src/bindings/r.ts",
24 "build:rust": "ts-node src/bindings/rust.ts",
25 "build:ts": "ts-node src/bindings/typescript.ts",
26 "build:vscode": "ts-node src/bindings/vscode.ts",
27 "build:browser": "microbundle --tsconfig tsconfig.browser.json -o dist/browser --format es,umd src/index.browser.ts",
28 "build:node": "microbundle --tsconfig tsconfig.lib.json --target node --format es,cjs src/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 src/docs.ts",
32 "docs:api": "ts-node src/bindings/typescript.ts && typedoc src/index.ts --readme src/README.md --tsconfig tsconfig.docs.json --out src/docs/",
33 "clean": "rimraf coverage dist public src/types.ts"
34 },
35 "repository": {
36 "type": "git",
37 "url": "https://github.com/stencila/stencila.git"
38 },
39 "author": "Contributors https://github.com/stencila/stencila/contributors",
40 "license": "Apache-2.0",
41 "bugs": {
42 "url": "https://github.com/stencila/stencila/issues"
43 },
44 "homepage": "https://github.com/stencila/stencila#readme",
45 "devDependencies": {
46 "@semantic-release/exec": "6.0.3",
47 "@stencila/dev-config": "3.0.4",
48 "@stencila/eslint-config": "3.0.1",
49 "@stencila/semantic-release-config": "2.0.6",
50 "@stoplight/json-ref-resolver": "3.1.3",
51 "@types/fs-extra": "9.0.13",
52 "@types/jest": "27.4.0",
53 "@types/js-yaml": "4.0.5",
54 "@types/lodash": "4.14.178",
55 "@types/node": "17.0.12",
56 "@types/prettier": "2.4.3",
57 "@types/toposort": "2.0.3",
58 "@typescript-eslint/eslint-plugin": "5.10.1",
59 "ajv": "8.9.0",
60 "ajv-formats": "2.1.1",
61 "change-case": "4.1.2",
62 "del": "6.0.0",
63 "eslint-config-standard-with-typescript": "21.0.1",
64 "eslint-plugin-prettier": "^4.0.0",
65 "fs-extra": "10.0.0",
66 "globby": "11.1.0",
67 "got": "11.8.3",
68 "jest": "27.4.7",
69 "jest-file-snapshot": "0.5.0",
70 "js-yaml": "4.1.0",
71 "json-schema": "0.4.0",
72 "lodash": "4.17.21",
73 "microbundle": "0.14.2",
74 "prettier": "2.5.1",
75 "rimraf": "3.0.2",
76 "toposort": "2.0.2",
77 "ts-jest": "27.1.3",
78 "ts-node": "10.4.0",
79 "typedoc": "0.22.11",
80 "typescript": "4.5.5"
81 },
82 "jest": {
83 "preset": "ts-jest",
84 "testEnvironment": "node",
85 "testMatch": [
86 "<rootDir>/src/**/*.test.[jt]s?(x)"
87 ],
88 "modulePathIgnorePatterns": [
89 "<rootDir>/dist"
90 ],
91 "setupFilesAfterEnv": [
92 "<rootDir>/src/__tests__/matchers.ts"
93 ],
94 "collectCoverageFrom": [
95 "src/util/*.ts",
96 "!src/util/index.ts"
97 ],
98 "watchPathIgnorePatterns": [
99 "__file_snapshots__",
100 "public",
101 "dist"
102 ]
103 },
104 "commitlint": {
105 "extends": [
106 "@commitlint/config-conventional"
107 ],
108 "rules": {
109 "scope-case": [
110 2,
111 "always",
112 "sentence-case"
113 ],
114 "subject-case": [
115 2,
116 "always",
117 "sentence-case"
118 ]
119 }
120 },
121 "eslintConfig": {
122 "extends": "@stencila/eslint-config",
123 "ignorePatterns": [
124 "*.test.ts"
125 ],
126 "rules": {
127 "@typescript-eslint/no-unsafe-assignment": "warn",
128 "@typescript-eslint/no-unsafe-call": "warn",
129 "@typescript-eslint/no-unsafe-member-access": "warn",
130 "@typescript-eslint/no-unsafe-return": "warn",
131 "@typescript-eslint/restrict-template-expressions": "warn",
132 "@typescript-eslint/no-use-before-define": "off"
133 },
134 "env": {
135 "es6": true,
136 "node": true,
137 "jest": true
138 }
139 },
140 "eslintIgnore": [
141 "public",
142 "dist",
143 "docs",
144 "__file_snapshots__"
145 ],
146 "prettier": "@stencila/dev-config/prettier-config.json",
147 "release": {
148 "extends": "@stencila/semantic-release-config",
149 "plugins": [
150 "@semantic-release/commit-analyzer",
151 "@semantic-release/release-notes-generator",
152 "@semantic-release/changelog",
153 [
154 "@semantic-release/exec",
155 {
156 "prepareCmd": "./.ci/prepare-release.sh ${nextRelease.version}"
157 }
158 ],
159 "@semantic-release/npm",
160 [
161 "@semantic-release/git",
162 {
163 "assets": [
164 "CHANGELOG.md",
165 "package.json",
166 "package-lock.json",
167 "src/types.ts",
168 ".vscode/settings.json"
169 ]
170 }
171 ],
172 [
173 "@semantic-release/github",
174 {
175 "assets": [
176 {
177 "path": "docs.tar.gz"
178 }
179 ]
180 }
181 ]
182 ]
183 }
184}