Skip to content

Commit

Permalink
fixing some dependencies stuff (#214)
Browse files Browse the repository at this point in the history
* fixing some dependencies stuff

* bumping some packages

* update image

* iteration

* iteration
  • Loading branch information
Noviny committed Nov 4, 2019
1 parent 5271b00 commit 9cd1eaf
Show file tree
Hide file tree
Showing 18 changed files with 2,122 additions and 1,425 deletions.
8 changes: 8 additions & 0 deletions .changeset/mighty-suits-lay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@changesets/cli": patch
"@changesets/logger": patch
"@changesets/pre": patch
"@changesets/test-utils": patch
---

Remove unused dependencies
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: 2
version: 3
jobs:
test:
docker:
- image: circleci/node:10.6.0
- image: circleci/node:10.13.0
working_directory: ~/repo
steps:
- checkout
Expand Down Expand Up @@ -37,7 +37,7 @@ jobs:

typescript:
docker:
- image: circleci/node:10.6.0
- image: circleci/node:10.13.0
working_directory: ~/repo
steps:
- checkout
Expand All @@ -55,7 +55,7 @@ jobs:

lint:
docker:
- image: circleci/node:10.6.0
- image: circleci/node:10.13.0
working_directory: ~/repo
steps:
- checkout
Expand Down
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist
__fixtures__
node_modules
node_modules
scratchings.js
9 changes: 8 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"rules": {
"prettier/prettier": "error",
"standard/computed-property-even-spacing": "off",
"lines-between-class-members": "off",
"no-template-curly-in-string": "off",
"camelcase": "off",
"import/no-duplicates": "off",
Expand All @@ -31,7 +32,13 @@
},
"overrides": [
{
"files": ["*.test.js", "**/__tests__/**", "*.test.ts"],
"files": [
"*.test.js",
"**/__tests__/**",
"*.test.ts",
"**/test.ts",
"**/test-utils/**/*"
],
"env": {
"jest": true
}
Expand Down
5 changes: 1 addition & 4 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,5 @@ module.exports = {
}
]
],
overrides: [
{ test: "**/*.ts", presets: ["@babel/preset-typescript"] },
{ test: "**/*.js", presets: ["@babel/preset-flow"] }
]
overrides: [{ test: "**/*.ts", presets: ["@babel/preset-typescript"] }]
};
61 changes: 15 additions & 46 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,66 +30,35 @@
"@babel/cli": "^7.4.4",
"@babel/core": "^7.4.5",
"@babel/preset-env": "^7.4.4",
"@babel/preset-flow": "^7.0.0",
"@babel/preset-typescript": "^7.3.3",
"@babel/runtime": "^7.4.4",
"@manypkg/cli": "^0.8.0",
"@manypkg/cli": "^0.8.1",
"@types/fs-extra": "^5.1.0",
"@types/jest": "^24.0.12",
"@types/jest-in-case": "^1.0.1",
"@types/js-yaml": "^3.12.1",
"@types/lodash": "^4.14.136",
"@types/meow": "^5.0.0",
"@types/node": "^12.7.11",
"@types/prettier": "^1.18.0",
"@types/prettier": "^1.18.3",
"@types/semver": "^6.0.0",
"@typescript-eslint/eslint-plugin": "^1.9.0",
"@typescript-eslint/parser": "^1.9.0",
"boxen": "^1.3.0",
"chalk": "^2.1.0",
"cli-table": "^0.3.1",
"@typescript-eslint/eslint-plugin": "^2.6.0",
"@typescript-eslint/parser": "^2.6.0",
"codecov": "^3.5.0",
"dataloader": "^1.4.0",
"detect-indent": "^6.0.0",
"dotenv": "^8.1.0",
"enquirer": "^2.3.0",
"eslint": "^5.16.0",
"eslint-config-prettier": "^4.2.0",
"eslint-config-standard": "^12.0.0",
"eslint-plugin-import": "^2.17.2",
"eslint-plugin-jest": "^22.5.1",
"eslint-plugin-node": "^9.0.1",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-promise": "^4.1.1",
"eslint-plugin-standard": "^4.0.0",
"fixturez": "^1.1.0",
"fs-extra": "^7.0.1",
"fuzzy": "^0.1.3",
"globby": "^9.2.0",
"human-id": "^1.0.2",
"inquirer": "^3.3.0",
"inquirer-checkbox-plus-prompt": "^1.0.1",
"is-ci": "^2.0.0",
"eslint": "^6.6.0",
"eslint-config-prettier": "^6.5.0",
"eslint-config-standard": "^14.1.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jest": "^23.0.2",
"eslint-plugin-node": "^10.0.0",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"jest": "^24.7.1",
"jest-fixtures": "^0.5.0",
"jest-in-case": "^1.0.2",
"jest-junit": "^6.4.0",
"js-yaml": "^3.13.1",
"lodash.startcase": "^4.4.0",
"meow": "^5.0.0",
"node-fetch": "^2.5.0",
"outdent": "^0.5.0",
"p-limit": "^2.2.0",
"pkg-dir": "^4.1.0",
"preconstruct": "^0.1.2",
"prettier": "^1.14.3",
"resolve-from": "^5.0.0",
"semver": "^5.4.1",
"spawndamnit": "^2.0.0",
"strip-ansi": "^5.2.0",
"term-size": "^2.1.0",
"tty-table": "^2.7.0",
"typescript": "^3.4.5"
"prettier": "^1.18.2",
"typescript": "^3.6.4"
},
"preconstruct": {
"packages": [
Expand Down
2 changes: 1 addition & 1 deletion packages/apply-release-plan/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"get-workspaces": "^0.5.2",
"lodash.startcase": "^4.4.0",
"outdent": "^0.5.0",
"prettier": "^1.14.3",
"prettier": "^1.18.2",
"resolve-from": "^5.0.0",
"semver": "^5.4.1"
},
Expand Down
4 changes: 1 addition & 3 deletions packages/assemble-release-plan/src/determine-dependents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ export default function getDependents(
const pkgDependents = dependencyGraph.get(nextRelease.name);
if (!pkgDependents) {
throw new Error(
`Error in determining dependents - could not find package in repository: ${
nextRelease.name
}`
`Error in determining dependents - could not find package in repository: ${nextRelease.name}`
);
}
// For each dependent we are going to see whether it needs to be bumped because it's dependency
Expand Down
7 changes: 1 addition & 6 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,17 @@
"@types/semver": "^6.0.0",
"boxen": "^1.3.0",
"chalk": "^2.1.0",
"cli-table": "^0.3.1",
"detect-indent": "^6.0.0",
"enquirer": "^2.3.0",
"fs-extra": "^7.0.1",
"fuzzy": "^0.1.3",
"get-dependents-graph": "^0.1.2",
"get-workspaces": "^0.5.2",
"globby": "^9.2.0",
"human-id": "^1.0.2",
"is-ci": "^2.0.0",
"lodash.startcase": "^4.4.0",
"meow": "^5.0.0",
"outdent": "^0.5.0",
"p-limit": "^2.2.0",
"pkg-dir": "^4.1.0",
"prettier": "^1.14.3",
"prettier": "^1.18.2",
"semver": "^5.4.1",
"spawndamnit": "^2.0.0",
"term-size": "^2.1.0",
Expand Down
1 change: 0 additions & 1 deletion packages/cli/src/commands/add/__tests__/add.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @flow
import { copyFixtureIntoTempDir } from "jest-fixtures";
import stripAnsi from "strip-ansi";
import * as git from "@changesets/git";
Expand Down
2 changes: 0 additions & 2 deletions packages/cli/src/commands/add/createChangeset.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// @flow

import chalk from "chalk";

import semver from "semver";
Expand Down
1 change: 0 additions & 1 deletion packages/cli/src/utils/v1-legacy/removeFolders.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @flow
import path from "path";
import fs from "fs-extra";

Expand Down
4 changes: 1 addition & 3 deletions packages/config/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ import { Config, WrittenConfig, Workspace } from "@changesets/types";
import packageJson from "../package.json";

export let defaultWrittenConfig = {
$schema: `https://unpkg.com/@changesets/config@${
packageJson.version
}/schema.json`,
$schema: `https://unpkg.com/@changesets/config@${packageJson.version}/schema.json`,
changelog: "@changesets/cli/changelog",
commit: false,
linked: [] as ReadonlyArray<ReadonlyArray<string>>,
Expand Down
4 changes: 1 addition & 3 deletions packages/get-github-info/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,7 @@ export async function getInfo(request: {
data.associatedPullRequests &&
data.associatedPullRequests.nodes &&
data.associatedPullRequests.nodes[0]
? `[#${data.associatedPullRequests.nodes[0].number}](${
data.associatedPullRequests.nodes[0].url
})`
? `[#${data.associatedPullRequests.nodes[0].number}](${data.associatedPullRequests.nodes[0].url})`
: null,
user:
data.author && data.author.user
Expand Down
6 changes: 0 additions & 6 deletions packages/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
"license": "MIT",
"repository": "https://github.com/changesets/changesets/tree/master/packages/logger",
"dependencies": {
"@changesets/types": "^0.4.0",
"@types/node": "^12.7.11",
"chalk": "^2.1.0"
},
"devDependencies": {
"jest-fixtures": "^0.5.0",
"outdent": "^0.5.0"
}
}
3 changes: 1 addition & 2 deletions packages/pre/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"get-workspaces": "^0.5.2"
},
"devDependencies": {
"fixturez": "^1.1.0",
"outdent": "^0.5.0"
"fixturez": "^1.1.0"
}
}
7 changes: 1 addition & 6 deletions packages/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@
"license": "MIT",
"repository": "https://github.com/changesets/changesets/tree/master/packages/test-utils",
"dependencies": {
"@changesets/logger": "^0.0.2",
"@changesets/types": "^0.4.0"
},
"devDependencies": {
"jest-fixtures": "^0.5.0",
"outdent": "^0.5.0"
"@changesets/logger": "^0.0.2"
}
}

0 comments on commit 9cd1eaf

Please sign in to comment.