Skip to content

Commit

Permalink
chore(package): reorder package.json
Browse files Browse the repository at this point in the history
This should happen automatically whenever changes are committed.
  • Loading branch information
eventualbuddha committed Aug 9, 2019
1 parent 3871ade commit 52c889a
Show file tree
Hide file tree
Showing 6 changed files with 311 additions and 141 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "codemod",
"private": true,
"workspaces": {
"packages": [
Expand All @@ -11,6 +12,7 @@
"scripts": {
"test": "script/ci"
},
"dependencies": {},
"devDependencies": {
"@types/globby": "^8.0.0",
"@types/mz": "^0.0.32",
Expand All @@ -26,11 +28,9 @@
"ts-node": "^7.0.1",
"typescript": "^3.5.3"
},
"name": "codemod",
"resolutions": {
"**/ip-regex": "^2.0.0",
"**/@babel/parser": "7.5.5",
"**/@babel/types": "7.5.5"
},
"dependencies": {}
"**/@babel/types": "7.5.5",
"**/ip-regex": "^2.0.0"
}
}
98 changes: 49 additions & 49 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,70 @@
"name": "@codemod/cli",
"version": "2.1.9",
"description": "codemod rewrites JavaScript and TypeScript",
"repository": {
"type": "git",
"url": "https://github.com/codemod-js/codemod.git"
},
"license": "Apache-2.0",
"author": "Brian Donovan",
"files": [
"bin",
"src/**/*.js",
"src/**/*.d.ts",
"src/**/*.js.map"
],
"main": "src/index.js",
"types": "src/index.d.ts",
"bin": {
"codemod": "./bin/codemod"
},
"scripts": {
"prepare": "tsc",
"test": "script/ci"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -e $GIT_PARAMS",
"post-checkout": "yarnhook",
"post-merge": "yarnhook",
"post-rewrite": "yarnhook",
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.ts": [
"*.md": [
"prettier --write",
"git add"
],
"*.md": [
"*.ts": [
"prettier --write",
"git add"
]
},
"bin": {
"codemod": "./bin/codemod"
"dependencies": {
"@babel/core": "^7.5.5",
"@babel/generator": "^7.5.5",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"@babel/preset-typescript": "^7.3.3",
"@babel/traverse": "^7.5.5",
"@babel/types": "^7.5.5",
"@codemod/core": "^1.0.1",
"@codemod/parser": "^1.0.2",
"core-js": "^3.1.4",
"get-stream": "^4.0.0",
"globby": "^8.0.1",
"got": "^8.3.1",
"mz": "^2.7.0",
"pirates": "^4.0.0",
"prettier": "^1.13.4",
"recast": "^0.16.1",
"regenerator-runtime": "^0.13.3",
"resolve": "^1.7.1",
"source-map-support": "^0.5.6",
"tmp": "^0.0.33",
"whatwg-url": "^7.0.0"
},
"files": [
"bin",
"src/**/*.js",
"src/**/*.d.ts",
"src/**/*.js.map"
],
"author": "Brian Donovan",
"license": "Apache-2.0",
"devDependencies": {
"@commitlint/cli": "^7.2.1",
"@commitlint/config-conventional": "^7.1.2",
Expand Down Expand Up @@ -59,46 +96,9 @@
"semver": "^5.6.0",
"yarnhook": "^0.3.0"
},
"dependencies": {
"@babel/core": "^7.5.5",
"@babel/generator": "^7.5.5",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"@babel/preset-typescript": "^7.3.3",
"@babel/traverse": "^7.5.5",
"@babel/types": "^7.5.5",
"@codemod/core": "^1.0.1",
"@codemod/parser": "^1.0.2",
"core-js": "^3.1.4",
"get-stream": "^4.0.0",
"globby": "^8.0.1",
"got": "^8.3.1",
"mz": "^2.7.0",
"pirates": "^4.0.0",
"prettier": "^1.13.4",
"recast": "^0.16.1",
"regenerator-runtime": "^0.13.3",
"resolve": "^1.7.1",
"source-map-support": "^0.5.6",
"tmp": "^0.0.33",
"whatwg-url": "^7.0.0"
},
"engines": {
"node": ">=6.0.0"
},
"repository": {
"type": "git",
"url": "https://github.com/codemod-js/codemod.git"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -e $GIT_PARAMS",
"post-checkout": "yarnhook",
"post-merge": "yarnhook",
"post-rewrite": "yarnhook",
"pre-commit": "lint-staged"
}
},
"publishConfig": {
"access": "public"
}
Expand Down
14 changes: 7 additions & 7 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
"name": "@codemod/core",
"version": "1.0.1",
"description": "Runs babel plugins for codemods, i.e. by preserving formatting using Recast.",
"main": "src/index.js",
"types": "src/index.d.ts",
"repository": "https://github.com/codemod-js/codemod",
"author": "Brian Donovan",
"license": "Apache-2.0",
"scripts": {
"prepare": "tsc",
"test": "script/ci"
},
"author": "Brian Donovan",
"files": [
"src/**/*.js",
"src/**/*.d.ts",
"src/**/*.js.map"
],
"main": "src/index.js",
"types": "src/index.d.ts",
"scripts": {
"prepare": "tsc",
"test": "script/ci"
},
"dependencies": {
"@babel/core": "^7.5.5",
"@codemod/parser": "^1.0.2",
Expand Down
28 changes: 14 additions & 14 deletions packages/matchers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,21 @@
"name": "@codemod/matchers",
"version": "1.0.4",
"description": "Matchers for JavaScript & TypeScript codemods.",
"keywords": [],
"license": "Apache-2.0",
"author": "Brian Donovan",
"files": [
"src/**/*.js",
"src/**/*.d.ts",
"src/**/*.js.map",
"!src/__tests__/**/*"
],
"main": "src/index.js",
"types": "src/index.d.ts",
"scripts": {
"prepare": "tsc",
"test": "script/ci"
},
"dependencies": {
"@babel/types": "^7.5.5"
},
Expand All @@ -23,20 +37,6 @@
"jest": "^23.6.0",
"ts-jest": "^23.10.5"
},
"scripts": {
"prepare": "tsc",
"test": "script/ci"
},
"keywords": [],
"author": "Brian Donovan",
"license": "Apache-2.0",
"files": [
"src/**/*.js",
"src/**/*.d.ts",
"src/**/*.js.map",
"!src/__tests__/**/*"
],
"types": "src/index.d.ts",
"publishConfig": {
"access": "public"
}
Expand Down
14 changes: 7 additions & 7 deletions packages/parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
"name": "@codemod/parser",
"version": "1.0.2",
"description": "Wrapper around @babel/parser that allows parsing everything.",
"main": "src/index.js",
"types": "src/index.d.ts",
"repository": "https://github.com/codemod-js/codemod",
"author": "Brian Donovan",
"license": "Apache-2.0",
"scripts": {
"prepare": "tsc",
"test": "jest"
},
"author": "Brian Donovan",
"files": [
"src/**/*.js",
"src/**/*.d.ts",
"src/**/*.js.map"
],
"main": "src/index.js",
"types": "src/index.d.ts",
"scripts": {
"prepare": "tsc",
"test": "jest"
},
"dependencies": {
"@babel/parser": "^7.5.5"
},
Expand Down
Loading

0 comments on commit 52c889a

Please sign in to comment.