|
1 | 1 | { |
2 | 2 | "name": "apify-shared", |
| 3 | + "private": true, |
3 | 4 | "version": "0.7.7", |
4 | 5 | "description": "Tools and constants shared across Apify projects.", |
5 | 6 | "main": "build/index.js", |
|
10 | 11 | "author": { |
11 | 12 | "name": "Apify", |
12 | 13 | "email": "support@apify.com", |
13 | | - "url": "https://www.apify.com" |
| 14 | + "url": "https://apify.com" |
14 | 15 | }, |
15 | 16 | "contributors": [ |
16 | 17 | "Jan Curn <jan@apify.com>", |
17 | 18 | "Marek Trunkát <marek@apify.com>" |
18 | 19 | ], |
19 | 20 | "license": "Apache-2.0", |
| 21 | + "workspaces": [ |
| 22 | + "packages/*" |
| 23 | + ], |
20 | 24 | "repository": { |
21 | 25 | "type": "git", |
22 | | - "url": "git+https://github.com/apifytech/apify-shared-js" |
| 26 | + "url": "git+https://github.com/apify/apify-shared-js" |
23 | 27 | }, |
24 | 28 | "bugs": { |
25 | | - "url": "https://github.com/apifytech/apify-shared-js/issues" |
| 29 | + "url": "https://github.com/apify/apify-shared-js/issues" |
26 | 30 | }, |
27 | 31 | "homepage": "https://apify.com", |
28 | 32 | "scripts": { |
29 | | - "build": "rm -rf build types && babel src --out-dir build && cp src/*.json build && tsc ./src/*.js --allowJs --declaration --emitDeclarationOnly --declarationDir build --skipLibCheck", |
30 | | - "build-doc": "npm run clean && npm run build && node ./node_modules/jsdoc/jsdoc.js --package ./package.json -c ./jsdoc/conf.json -d docs", |
31 | | - "build-local-dev": "npm run build && cp package.json build && pushd build/ && npm i && popd", |
32 | | - "test": "npm run build && mocha --timeout 5000 --require @babel/register --recursive", |
33 | | - "test-cov": "npm run build && babel-node node_modules/isparta/bin/isparta cover --report text --report html node_modules/mocha/bin/_mocha -- --reporter dot", |
| 33 | + "clean": "lerna run clean", |
| 34 | + "build": "lerna run build", |
| 35 | + "test": "jest --silent", |
| 36 | + "test-cov": "jest --coverage", |
34 | 37 | "prepublishOnly": "(test $CI || (echo \"Publishing is reserved to CI!\"; exit 1))", |
35 | | - "clean": "rm -rf build docs types", |
36 | 38 | "lint": "npm run build && eslint src test", |
37 | 39 | "lint:fix": "eslint src test --fix" |
38 | 40 | }, |
39 | | - "dependencies": { |
40 | | - "@hubspot/api-client": "^3.4.1", |
41 | | - "axios": "^0.21.1", |
42 | | - "chalk": "^4.0.0", |
43 | | - "cherow": "^1.6.9", |
44 | | - "clone": "^2.1.1", |
45 | | - "countries-list": "^2.6.1", |
46 | | - "create-hmac": "^1.1.7", |
47 | | - "git-url-parse": "^11.4.4", |
48 | | - "is-buffer": "^2.0.5", |
49 | | - "marked": "^2.0.0", |
50 | | - "match-all": "^1.2.6", |
51 | | - "moment": "^2.29.1", |
52 | | - "request": "^2.88.0", |
53 | | - "underscore": "^1.11.0", |
54 | | - "url": "^0.11.0" |
| 41 | + "jest": { |
| 42 | + "testTimeout": 30000, |
| 43 | + "preset": "ts-jest", |
| 44 | + "testEnvironment": "node", |
| 45 | + "collectCoverage": false, |
| 46 | + "collectCoverageFrom": [ |
| 47 | + "<rootDir>/packages/*/src/**/*.ts" |
| 48 | + ], |
| 49 | + "moduleNameMapper": { |
| 50 | + "@apify/(.*)": "<rootDir>/packages/$1/src" |
| 51 | + }, |
| 52 | + "modulePathIgnorePatterns": [ |
| 53 | + "dist/package.json", |
| 54 | + "<rootDir>/package.json" |
| 55 | + ], |
| 56 | + "globals": { |
| 57 | + "ts-jest": { |
| 58 | + "tsconfig": "test/tsconfig.json" |
| 59 | + } |
| 60 | + } |
55 | 61 | }, |
56 | 62 | "devDependencies": { |
57 | 63 | "@apify/eslint-config": "^0.1.3", |
58 | | - "@babel/cli": "^7.12.13", |
59 | | - "@babel/core": "^7.12.13", |
60 | | - "@babel/plugin-proposal-object-rest-spread": "^7.12.13", |
61 | | - "@babel/preset-env": "^7.12.13", |
62 | | - "@babel/register": "^7.12.13", |
63 | | - "ajv": "^6.12.6", |
64 | | - "apify-jsdoc-template": "github:apifytech/apify-jsdoc-template", |
65 | | - "babel-plugin-add-module-exports": "^1.0.4", |
66 | | - "chai": "^4.2.0", |
67 | | - "chai-as-promised": "^7.1.1", |
| 64 | + "@types/git-url-parse": "^9.0.0", |
| 65 | + "@types/jest": "^26.0.23", |
| 66 | + "@types/marked": "^2.0.2", |
| 67 | + "@types/node": "^14.14.41", |
| 68 | + "@types/underscore": "^1.11.2", |
68 | 69 | "deploy-web-to-s3": "^1.3.0", |
69 | 70 | "eslint": "^7.19.0", |
70 | | - "isparta": "^4.1.1", |
71 | | - "istanbul": "0.4.5", |
72 | | - "jsdoc": "^3.6.6", |
73 | | - "jsdoc-export-default-interop": "^0.3.1", |
74 | | - "mocha": "^7.2.0", |
| 71 | + "jest": "^26.6.3", |
| 72 | + "lerna": "^4.0.0", |
75 | 73 | "nock": "^13.0.7", |
76 | | - "sinon": "^9.2.4", |
77 | 74 | "strip-ansi": "^6.0.0", |
78 | | - "typescript": "^4.2.3" |
| 75 | + "ts-jest": "^26.5.5", |
| 76 | + "ts-node": "^9.1.1", |
| 77 | + "typescript": "^4.2.4", |
| 78 | + "underscore": "^1.13.1" |
79 | 79 | } |
80 | 80 | } |
0 commit comments