Skip to content

Commit ad989d8

Browse files
committed
rename cli > changesets
1 parent 0ab532b commit ad989d8

File tree

87 files changed

+50
-42
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+50
-42
lines changed

.changeset/README.md

+2-2

README.md

+2-4

docs/checking-for-changesets.md

+2-2

docs/command-line-options.md

+2-2

docs/config-file-options.md

+2-2

docs/intro-to-using-changesets.md

+2-2

packages/changesets/CHANGELOG.md

+1
File renamed without changes.

packages/cli/README.md packages/changesets/README.md

+10-9
File renamed without changes.
File renamed without changes.
File renamed without changes.

packages/cli/default-files/README.md packages/changesets/default-files/README.md

+1-1

packages/cli/package.json packages/changesets/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"name": "@changesets/cli",
2+
"name": "@remix-run/changesets",
33
"version": "2.25.2",
44
"description": "Organise your package versioning and publishing to make both contributors and maintainers happy",
55
"bin": {
66
"changeset": "bin.js"
77
},
8-
"repository": "https://github.com/changesets/changesets/tree/main/packages/cli",
8+
"repository": "https://github.com/remix-run/changesets/tree/main/packages/cli",
99
"files": [
1010
"default-files",
1111
"dist",

packages/cli/schema.json packages/changesets/schema.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
}
2727
],
2828
"description": "The configuration for changelog generators.",
29-
"default": ["@changesets/cli", null]
29+
"default": ["@remix-run/changesets", null]
3030
},
3131
"fixed": {
3232
"type": "array",
File renamed without changes.

packages/cli/src/commands/init/index.ts packages/changesets/src/commands/init/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ import chalk from "chalk";
55
import { defaultWrittenConfig } from "../../config";
66
import { info, log, warn, error } from "@changesets/logger";
77

8-
const pkgPath = path.dirname(require.resolve("@changesets/cli/package.json"));
8+
const pkgPath = path.dirname(
9+
require.resolve("@remix-run/changesets/package.json")
10+
);
911

1012
// Modify base branch to "main" without changing defaultWrittenConfig since it also serves as a fallback
1113
// for config files that don't specify a base branch. Changing that to main would be a breaking change.
File renamed without changes.

packages/cli/src/config.test.ts packages/changesets/src/config.test.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ test("read reads the config", async () => {
4242
fixed: [],
4343
linked: [],
4444
changelog: false,
45-
commit: ["@changesets/cli/commit", { skipCI: "version" }],
45+
commit: ["@remix-run/changesets/commit", { skipCI: "version" }],
4646
access: "restricted",
4747
baseBranch: "master",
4848
updateInternalDependencies: "patch",
@@ -66,7 +66,7 @@ test("read reads the config", async () => {
6666
let defaults: Config = {
6767
fixed: [],
6868
linked: [],
69-
changelog: ["@changesets/cli/changelog", null],
69+
changelog: ["@remix-run/changesets/changelog", null],
7070
commit: false,
7171
access: "restricted",
7272
baseBranch: "master",
@@ -131,7 +131,7 @@ let correctCases: Record<string, CorrectCase> = {
131131
},
132132
output: {
133133
...defaults,
134-
commit: ["@changesets/cli/commit", { skipCI: "version" }],
134+
commit: ["@remix-run/changesets/commit", { skipCI: "version" }],
135135
},
136136
},
137137
"commit custom": {
@@ -345,7 +345,7 @@ describe("parser errors", () => {
345345
unsafeParse({ changelog: {} }, defaultPackages);
346346
}).toThrowErrorMatchingInlineSnapshot(`
347347
"Some errors occurred when validating the changesets config:
348-
The \`changelog\` option is set as {} when the only valid values are undefined, false, a module path(e.g. \\"@changesets/cli/changelog\\" or \\"./some-module\\") or a tuple with a module path and config for the changelog generator(e.g. [\\"@changesets/cli/changelog\\", { someOption: true }])"
348+
The \`changelog\` option is set as {} when the only valid values are undefined, false, a module path(e.g. \\"@remix-run/changesets/changelog\\" or \\"./some-module\\") or a tuple with a module path and config for the changelog generator(e.g. [\\"@remix-run/changesets/changelog\\", { someOption: true }])"
349349
`);
350350
});
351351
test("changelog array with 3 values", () => {
@@ -360,7 +360,7 @@ The \`changelog\` option is set as [
360360
\\"some-module\\",
361361
\\"something\\",
362362
\\"other\\"
363-
] when the only valid values are undefined, false, a module path(e.g. \\"@changesets/cli/changelog\\" or \\"./some-module\\") or a tuple with a module path and config for the changelog generator(e.g. [\\"@changesets/cli/changelog\\", { someOption: true }])"
363+
] when the only valid values are undefined, false, a module path(e.g. \\"@remix-run/changesets/changelog\\" or \\"./some-module\\") or a tuple with a module path and config for the changelog generator(e.g. [\\"@remix-run/changesets/changelog\\", { someOption: true }])"
364364
`);
365365
});
366366
test("changelog array with first value not string", () => {
@@ -371,7 +371,7 @@ The \`changelog\` option is set as [
371371
The \`changelog\` option is set as [
372372
false,
373373
\\"something\\"
374-
] when the only valid values are undefined, false, a module path(e.g. \\"@changesets/cli/changelog\\" or \\"./some-module\\") or a tuple with a module path and config for the changelog generator(e.g. [\\"@changesets/cli/changelog\\", { someOption: true }])"
374+
] when the only valid values are undefined, false, a module path(e.g. \\"@remix-run/changesets/changelog\\" or \\"./some-module\\") or a tuple with a module path and config for the changelog generator(e.g. [\\"@remix-run/changesets/changelog\\", { someOption: true }])"
375375
`);
376376
});
377377
test("access other string", () => {
@@ -387,7 +387,7 @@ The \`access\` option is set as \\"something\\" when the only valid values are u
387387
unsafeParse({ commit: {} }, defaultPackages);
388388
}).toThrowErrorMatchingInlineSnapshot(`
389389
"Some errors occurred when validating the changesets config:
390-
The \`commit\` option is set as {} when the only valid values are undefined or a boolean or a module path (e.g. \\"@changesets/cli/commit\\" or \\"./some-module\\") or a tuple with a module path and config for the commit message generator (e.g. [\\"@changesets/cli/commit\\", { \\"skipCI\\": \\"version\\" }])"
390+
The \`commit\` option is set as {} when the only valid values are undefined or a boolean or a module path (e.g. \\"@remix-run/changesets/commit\\" or \\"./some-module\\") or a tuple with a module path and config for the commit message generator (e.g. [\\"@remix-run/changesets/commit\\", { \\"skipCI\\": \\"version\\" }])"
391391
`);
392392
});
393393
describe("fixed", () => {

packages/cli/src/config.ts packages/changesets/src/config.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { getDependentsGraph } from "./get-dependents-graph";
1616

1717
export let defaultWrittenConfig = {
1818
$schema: `https://unpkg.com/${packageJson.name}/@${packageJson.version}/schema.json`,
19-
changelog: "@changesets/cli/changelog",
19+
changelog: "@remix-run/changesets/changelog",
2020
commit: false,
2121
fixed: [] as Fixed,
2222
linked: [] as Linked,
@@ -49,7 +49,7 @@ function getNormalizedCommitOption(
4949
return false;
5050
}
5151
if (thing === true) {
52-
return ["@changesets/cli/commit", { skipCI: "version" }];
52+
return ["@remix-run/changesets/commit", { skipCI: "version" }];
5353
}
5454
if (typeof thing === "string") {
5555
return [thing, null];
@@ -117,7 +117,7 @@ export let parse = (json: WrittenConfig, packages: Packages): Config => {
117117
json.changelog,
118118
null,
119119
2
120-
)} when the only valid values are undefined, false, a module path(e.g. "@changesets/cli/changelog" or "./some-module") or a tuple with a module path and config for the changelog generator(e.g. ["@changesets/cli/changelog", { someOption: true }])`
120+
)} when the only valid values are undefined, false, a module path(e.g. "@remix-run/changesets/changelog" or "./some-module") or a tuple with a module path and config for the changelog generator(e.g. ["@remix-run/changesets/changelog", { someOption: true }])`
121121
);
122122
}
123123

@@ -157,7 +157,7 @@ export let parse = (json: WrittenConfig, packages: Packages): Config => {
157157
json.commit,
158158
null,
159159
2
160-
)} when the only valid values are undefined or a boolean or a module path (e.g. "@changesets/cli/commit" or "./some-module") or a tuple with a module path and config for the commit message generator (e.g. ["@changesets/cli/commit", { "skipCI": "version" }])`
160+
)} when the only valid values are undefined or a boolean or a module path (e.g. "@remix-run/changesets/commit" or "./some-module") or a tuple with a module path and config for the commit message generator (e.g. ["@remix-run/changesets/commit", { "skipCI": "version" }])`
161161
);
162162
}
163163
if (json.baseBranch !== undefined && typeof json.baseBranch !== "string") {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

packages/cli/src/index.ts packages/changesets/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ ${format("", err).replace(process.cwd(), "<cwd>")}
8282
8383
## Versions
8484
85-
- @changesets/cli@${
85+
- @remix-run/changesets@${
8686
// eslint-disable-next-line import/no-extraneous-dependencies
87-
require("@changesets/cli/package.json").version
87+
require("@remix-run/changesets/package.json").version
8888
}
8989
- node@${process.version}
9090
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

packages/cli/CHANGELOG.md

-1
This file was deleted.

yarn.lock

+7
Original file line numberDiff line numberDiff line change
@@ -1310,6 +1310,13 @@
13101310
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
13111311
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
13121312

1313+
"@changesets/changelog-git@^0.1.13":
1314+
version "0.1.13"
1315+
resolved "https://registry.yarnpkg.com/@changesets/changelog-git/-/changelog-git-0.1.13.tgz#182e130add456255d8ee2b4c8eaf88048944aaaf"
1316+
integrity sha512-zvJ50Q+EUALzeawAxax6nF2WIcSsC5PwbuLeWkckS8ulWnuPYx8Fn/Sjd3rF46OzeKA8t30loYYV6TIzp4DIdg==
1317+
dependencies:
1318+
"@changesets/types" "^5.2.0"
1319+
13131320
"@changesets/parse@^0.3.15":
13141321
version "0.3.15"
13151322
resolved "https://registry.yarnpkg.com/@changesets/parse/-/parse-0.3.15.tgz#1bc74f8c43b0861d71f4fccf78950411004ba308"

0 commit comments

Comments
 (0)