blob: e71303f9b5b5160b31398d04e11689e4cc9a33da [file] [log] [blame]
{
"name": "apache-annotator",
"version": "0.1.0",
"private": true,
"description": "Apache Annotator provides annotation enabling code for browsers, servers, and humans.",
"homepage": "https://annotator.apache.org",
"repository": {
"type": "git",
"url": "https://github.com/apache/incubator-annotator.git"
},
"license": "Apache-2.0",
"author": "Apache Software Foundation",
"workspaces": {
"packages": [
"packages/*"
]
},
"scripts": {
"build": "yarn run build:cjs && yarn run build:esm && yarn run build:misc && yarn run build:types",
"build:babel": "lerna exec --parallel -- babel -d lib -s inline -x .ts --root-mode upward src",
"build:cjs": "cross-env BABEL_ENV=cjs yarn build:babel",
"build:esm": "cross-env BABEL_ENV=esm yarn build:babel --out-file-extension .mjs",
"build:misc": "lerna exec -- cp ../../LICENSE ../../NOTICE .",
"build:types": "tsc --build",
"clean": "tsc --build --clean && lerna exec -- rimraf LICENSE NOTICE lib",
"lint": "tsc --build && eslint .",
"prepare": "yarn run build && lerna run prepare",
"start": "yarn run web:server",
"test": "cross-env BABEL_ENV=test nyc mocha packages/**/*.test.ts",
"validate": "cross-env BABEL_ENV=test mocha test/**/*.test.ts",
"web:build": "webpack --config=web/webpack.config.js --mode development",
"web:server": "webpack-dev-server --config=web/webpack.config.js --hot --mode development"
},
"exports": {
".": {
"import": "./packages/apache-annotator/lib/index.mjs",
"require": "./packages/apache-annotator/lib/index.js"
},
"./dom": {
"import": "./packages/dom/lib/index.mjs",
"require": "./packages/dom/lib/index.js"
},
"./selector": {
"import": "./packages/selector/lib/index.mjs",
"require": "./packages/selector/lib/index.js"
}
},
"devDependencies": {
"@babel/cli": "^7.11.0",
"@babel/core": "^7.11.0",
"@babel/plugin-transform-runtime": "^7.11.0",
"@babel/preset-env": "^7.11.0",
"@babel/preset-typescript": "^7.10.4",
"@babel/register": "^7.11.0",
"@types/chai": "^4.2.11",
"@types/mocha": "^7.0.2",
"@types/node-fetch": "^2.5.7",
"@types/resolve": "^1.17.0",
"@typescript-eslint/eslint-plugin": "^3.7.0",
"@typescript-eslint/parser": "^3.7.0",
"ajv": "^6.11.0",
"babel-loader": "^8.0.5",
"babel-plugin-add-import-extension": "^1.4.1",
"babel-plugin-istanbul": "^6.0.0",
"babel-plugin-module-resolver": "^4.0.0",
"babel-plugin-preserve-comment-header": "^1.0.1",
"chai": "^4.2.0",
"core-js": "^3.6.4",
"cross-env": "^6.0.3",
"eslint": "^7.5.0",
"eslint-config-prettier": "^6.11.0",
"eslint-import-resolver-babel-module": "^5.1.2",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.1.4",
"file-loader": "^6.0.0",
"global-jsdom": "^6.1.0",
"husky": "^4.2.1",
"jsdom": "^16.2.2",
"lerna": "^3.20.2",
"lint-staged": "^10.0.2",
"mocha": "^8.0.1",
"mocha-loader": "^5.1.1",
"multi-entry-loader": "^1.1.2",
"node-fetch": "^2.5.0",
"nyc": "^15.0.0",
"prettier": "^2.0.5",
"resolve": "^1.15.0",
"rimraf": "^3.0.0",
"typescript": "^3.9.7",
"web-annotation-tests": "https://github.com/w3c/web-annotation-tests",
"webpack": "^4.41.5",
"webpack-cli": "^3.3.10",
"webpack-dev-server": "^3.10.1"
},
"engines": {
"node": "^10 || ^11 || ^12 || >=13.7",
"yarn": "^1.5.0"
}
}