forked from changesets/changesets
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Start of new config things! * Add changes to types * More stuff * Some stuff * Add tests and fix things * Fix things * fix All The Things * Update snapshots * Fix type things * Fix linting * whoops, nearly forgot changesets
- Loading branch information
Showing
19 changed files
with
602 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"releases": [ | ||
{ "name": "@changesets/assemble-release-plan", "type": "patch" } | ||
], | ||
"dependents": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Use new Config type which makes linked required |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"releases": [{ "name": "@changesets/types", "type": "minor" }], | ||
"dependents": [ | ||
{ | ||
"name": "@changesets/assemble-release-plan", | ||
"type": "patch", | ||
"dependencies": ["@changesets/config", "@changesets/types"] | ||
}, | ||
{ | ||
"name": "@changesets/config", | ||
"type": "patch", | ||
"dependencies": ["@changesets/types"] | ||
}, | ||
{ | ||
"name": "get-dependents-graph", | ||
"type": "patch", | ||
"dependencies": ["@changesets/types"] | ||
}, | ||
{ | ||
"name": "@changesets/parse", | ||
"type": "patch", | ||
"dependencies": ["@changesets/types"] | ||
}, | ||
{ | ||
"name": "@changesets/read", | ||
"type": "patch", | ||
"dependencies": ["@changesets/parse", "@changesets/types"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add WrittenConfig type and include all properties in Config type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"releases": [{ "name": "@changesets/config", "type": "minor" }], | ||
"dependents": [ | ||
{ | ||
"name": "@changesets/assemble-release-plan", | ||
"type": "patch", | ||
"dependencies": ["@changesets/config"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Initial release with parse and read functions along with defaultConfig and defaultWrittenConfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"changelog": false, | ||
"commit": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# @changesets/config | ||
|
||
> Utilities for reading and parsing Changeset's config | ||
```tsx | ||
import { parse, read, ValidationError } from "@changesets/config"; | ||
|
||
let config = await read(process.cwd(), workspaces); | ||
|
||
let config = parse({ commit: true }, workspaces); | ||
|
||
try { | ||
return parse({ commit: true }, workspaces); | ||
} catch (err) { | ||
if (err instanceof ValidationError) { | ||
let message = err.message; | ||
} else { | ||
throw err; | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "@changesets/config", | ||
"version": "0.0.0", | ||
"description": "Utilities for reading and parsing Changeset's config", | ||
"main": "dist/config.cjs.js", | ||
"module": "dist/config.esm.js", | ||
"license": "MIT", | ||
"repository": "https://github.com/changesets/changesets/tree/master/packages/config", | ||
"files": [ | ||
"dist", | ||
"schema.json" | ||
], | ||
"dependencies": { | ||
"@changesets/types": "^0.0.0", | ||
"fs-extra": "^7.0.1" | ||
}, | ||
"devDependencies": { | ||
"fixturez": "^1.1.0", | ||
"jest-in-case": "^1.0.2" | ||
} | ||
} |
Oops, something went wrong.