|
1 | 1 | {
|
2 |
| - "name": "@ackee/antonio", |
3 |
| - "version": "4.0.0-alpha.5", |
4 |
| - "description": "A HTTP client built on fetch with axios-like API.", |
5 |
| - "main": "es/index.js", |
6 |
| - "module": "es/index.js", |
7 |
| - "sideEffects": false, |
| 2 | + "private": true, |
| 3 | + "workspaces": [ |
| 4 | + "packages/@ackee/*" |
| 5 | + ], |
8 | 6 | "scripts": {
|
9 |
| - "build:lib": "BABEL_ENV=lib babel src --out-dir lib --extensions \".ts\" --source-maps inline", |
10 |
| - "build:es": "BABEL_ENV=es babel src --out-dir es --extensions \".ts\" --source-maps inline", |
11 |
| - "build:js": "yarn build:es", |
12 |
| - "build:types": "tsc --project tsconfig.types.json --emitDeclarationOnly", |
13 |
| - "clean": "rm -rf lib es", |
| 7 | + "bootstrap": "lerna bootstrap --use-workspaces", |
| 8 | + "postinstall": "yarn bootstrap", |
| 9 | + "build:lib": "lerna exec --scope=@ackee/antonio-core -- babel src --out-dir lib --extensions \".ts\" --config-file=./babel.config.js --source-maps inline", |
| 10 | + "build:es": "lerna exec --scope=@ackee/antonio-core -- babel src --out-dir es --extensions \".ts\" --config-file=./babel.config.js --source-maps inline", |
| 11 | + "build:test": "babel ./packages/test/src --out-dir lib --extensions \".ts\" --config-file=./babel.config.js", |
| 12 | + "build:types": "lerna exec --scope=@ackee/antonio-core -- tsc --project ./tsconfig.types.json --emitDeclarationOnly", |
| 13 | + "build:js": "yarn build:es & yarn build:lib", |
14 | 14 | "build": "yarn clean && yarn build:js && yarn build:types",
|
15 |
| - "prepare": "yarn build", |
16 |
| - "lint": "tslint \"src/**/*.ts\"", |
17 |
| - "test": "BABEL_ENV=test jest", |
18 |
| - "push": "yarn build && yalc push", |
| 15 | + "clean": "lerna exec -- rm -rf lib es", |
| 16 | + "lint": "lerna exec --scope=@ackee/antonio-core -- eslint 'src/**/*.ts'", |
19 | 17 | "type-check": "tsc --noEmit",
|
20 | 18 | "type-check:watch": "yarn type-check -- --watch",
|
21 |
| - "start": "yarn build && onchange 'src/**/*.ts' -- yarn rebuild", |
22 |
| - "rebuild": "yarn clean && yarn build:es && yalc push", |
| 19 | + "test": "jest", |
| 20 | + "push": "yarn build && yalc push", |
| 21 | + "rebuild": "yarn build && yalc push", |
| 22 | + "start": "yarn build && onchange 'packages/@ackee/*/src/**/*.ts' -- yarn rebuild", |
23 | 23 | "changelog": "gitmoji-changelog",
|
24 | 24 | "version": "yarn changelog && code --wait CHANGELOG.md && git add CHANGELOG.md",
|
25 | 25 | "release": "yarn version",
|
26 |
| - "prettier": "prettier --config ./prettier.config.ts --write './src/**/*.ts'", |
27 |
| - "size": "package-size ./es --no-cache" |
28 |
| - }, |
29 |
| - "author": "Jiří Čermák <[email protected]>", |
30 |
| - "license": "MIT", |
31 |
| - "repository": { |
32 |
| - "type": "git", |
33 |
| - "url": "https://github.com/AckeeCZ/antonio" |
| 26 | + "format": "prettier --config ./prettier.config.js --write 'packages/@ackee/*/src/**/*.ts' '*.{js,json}' --loglevel warn" |
34 | 27 | },
|
35 | 28 | "devDependencies": {
|
| 29 | + "@ackee/browserslist-config": "^1.0.1", |
| 30 | + "@ackee/eslint-config": "^3.0.0", |
36 | 31 | "@babel/cli": "7.x",
|
37 | 32 | "@babel/core": "7.x",
|
38 |
| - "@babel/plugin-proposal-class-properties": "^7.8.3", |
39 |
| - "@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3", |
| 33 | + "@babel/eslint-parser": "^7.13.14", |
| 34 | + "@babel/plugin-proposal-class-properties": "7.x", |
| 35 | + "@babel/plugin-proposal-nullish-coalescing-operator": "7.x", |
40 | 36 | "@babel/plugin-proposal-object-rest-spread": "7.x",
|
| 37 | + "@babel/plugin-proposal-optional-chaining": "7.x", |
41 | 38 | "@babel/plugin-transform-runtime": "7.x",
|
42 | 39 | "@babel/preset-env": "7.x",
|
43 |
| - "@babel/preset-modules": "0.x", |
44 |
| - "@babel/preset-typescript": "^7.9.0", |
45 |
| - "@types/jest": "^25.2.1", |
46 |
| - "babel-eslint": "10.x", |
| 40 | + "@babel/preset-typescript": "7.x", |
| 41 | + "@types/jest": "25.x", |
| 42 | + "@types/node": "^14.14.37", |
| 43 | + "@typescript-eslint/eslint-plugin": "4.x", |
| 44 | + "@typescript-eslint/parser": "4.x", |
| 45 | + "babel-eslint": "^10.1.0", |
47 | 46 | "babel-plugin-custom-import-path-transform": "1.x",
|
48 |
| - "eslint": "6.x", |
49 |
| - "eslint-plugin-jest": "23.x", |
| 47 | + "babel-plugin-module-resolver": "4.x", |
| 48 | + "babel-plugin-transform-imports": "^2.0.0", |
| 49 | + "core-js": "^3.11.2", |
| 50 | + "eslint": "^7.5.0", |
| 51 | + "eslint-plugin-compat": "3.9.0", |
| 52 | + "eslint-plugin-flowtype": "^5.2.0", |
| 53 | + "eslint-plugin-import": "2.x", |
| 54 | + "eslint-plugin-jsx-a11y": "6.x", |
| 55 | + "eslint-plugin-react": "7.x", |
| 56 | + "eslint-plugin-react-hooks": "^4.0.8", |
50 | 57 | "gitmoji-changelog": "2.x",
|
51 | 58 | "husky": "4.x",
|
52 | 59 | "jest": "26.x",
|
| 60 | + "lerna": "4.x", |
53 | 61 | "lint-staged": "^10.2.2",
|
54 |
| - "onchange": "5.x", |
| 62 | + "onchange": "7.x", |
55 | 63 | "package-size": "2.x",
|
56 | 64 | "prettier": "2.x",
|
57 | 65 | "prettier-config-ackee": "0.x",
|
58 | 66 | "redux-saga": "1.x",
|
59 | 67 | "reselect": "4.x",
|
60 | 68 | "ts-jest": "25.x",
|
61 |
| - "tslint-config-ackee": "^0.3.0", |
62 |
| - "tslint-config-prettier": "1.x", |
63 |
| - "typescript": "3.x" |
| 69 | + "typescript": "4.x" |
64 | 70 | },
|
65 | 71 | "dependencies": {
|
66 |
| - "@babel/runtime": "7.x" |
| 72 | + "@babel/runtime": "7.x", |
| 73 | + "loglevel": "1.x" |
67 | 74 | },
|
68 | 75 | "husky": {
|
69 | 76 | "hooks": {
|
70 |
| - "pre-commit": "lint-staged", |
71 |
| - "pre-push": "yarn lint" |
| 77 | + "pre-commit": "lint-staged" |
72 | 78 | }
|
73 | 79 | },
|
74 | 80 | "lint-staged": {
|
75 |
| - "src/*.{ts,json,scss,less,css,md}": [ |
76 |
| - "prettier --config ./prettier.config.js --write" |
| 81 | + "*.{ts,json,md}": [ |
| 82 | + "yarn format" |
77 | 83 | ],
|
78 |
| - "src/*.{ts}": [ |
79 |
| - "yarn lint" |
| 84 | + "*.{ts}": [ |
| 85 | + "yarn lint && yarn type-check" |
80 | 86 | ]
|
81 | 87 | },
|
82 |
| - "publishConfig": { |
83 |
| - "access": "public" |
| 88 | + "browserslist": [ |
| 89 | + "extends @ackee/browserslist-config" |
| 90 | + ], |
| 91 | + "license": "MIT", |
| 92 | + "author": "Jiří Čermák <[email protected]>", |
| 93 | + "repository": { |
| 94 | + "type": "git", |
| 95 | + "url": "git+https://github.com/AckeeCZ/antonio.git" |
84 | 96 | }
|
85 | 97 | }
|
0 commit comments