bun-workspaces 0.3.0 → 1.0.0-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/README.md +32 -2
  2. package/bun.lock +576 -0
  3. package/package.json +14 -15
  4. package/src/cli/cli.ts +3 -8
  5. package/src/cli/globalOptions.ts +61 -23
  6. package/src/cli/projectCommands.ts +41 -40
  7. package/src/config/bunWorkspacesConfig.ts +62 -0
  8. package/src/config/configFile.ts +33 -0
  9. package/src/config/index.ts +7 -0
  10. package/src/internal/env.ts +25 -1
  11. package/src/internal/logger.ts +143 -19
  12. package/src/project/project.ts +24 -1
  13. package/src/workspaces/errors.ts +2 -0
  14. package/src/workspaces/findWorkspaces.ts +36 -8
  15. package/src/workspaces/index.ts +0 -1
  16. package/src/workspaces/packageJson.ts +1 -1
  17. package/src/workspaces/workspace.ts +2 -0
  18. package/.vscode/extensions.json +0 -12
  19. package/.vscode/settings.json +0 -23
  20. package/bun-workspaces-0.1.0-alpha-test-publish-2.tgz +0 -0
  21. package/eslint.config.mjs +0 -45
  22. package/ignore-me-CHANGELOG_TEMPLATE.md +0 -264
  23. package/ignore-me-test-projects/no-fail/applications/applicationA/package.json +0 -8
  24. package/ignore-me-test-projects/no-fail/applications/applicationB/package.json +0 -8
  25. package/ignore-me-test-projects/no-fail/libraries/libraryA/package.json +0 -8
  26. package/ignore-me-test-projects/no-fail/libraries/libraryB/package.json +0 -8
  27. package/ignore-me-test-projects/no-fail/libraries/nested/libraryC/package.json +0 -8
  28. package/ignore-me-test-projects/no-fail/package.json +0 -7
  29. package/ignore-me-test-projects/one-fail/applications/applicationA/package.json +0 -8
  30. package/ignore-me-test-projects/one-fail/applications/applicationB/package.json +0 -8
  31. package/ignore-me-test-projects/one-fail/libraries/libraryA/package.json +0 -8
  32. package/ignore-me-test-projects/one-fail/libraries/libraryB/package.json +0 -8
  33. package/ignore-me-test-projects/one-fail/libraries/nested/libraryC/package.json +0 -8
  34. package/ignore-me-test-projects/one-fail/package.json +0 -7
  35. package/ignore-me-test-projects/two-fail/applications/applicationA/package.json +0 -8
  36. package/ignore-me-test-projects/two-fail/applications/applicationB/package.json +0 -8
  37. package/ignore-me-test-projects/two-fail/libraries/libraryA/package.json +0 -8
  38. package/ignore-me-test-projects/two-fail/libraries/libraryB/package.json +0 -8
  39. package/ignore-me-test-projects/two-fail/libraries/nested/libraryC/package.json +0 -8
  40. package/ignore-me-test-projects/two-fail/package.json +0 -7
  41. package/src/cli/output.ts +0 -6
@@ -1,264 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## [Unreleased]
9
-
10
- ### Added
11
-
12
- - v1.1 Brazilian Portuguese translation.
13
- - v1.1 German Translation
14
- - v1.1 Spanish translation.
15
- - v1.1 Italian translation.
16
- - v1.1 Polish translation.
17
- - v1.1 Ukrainian translation.
18
-
19
- ### Changed
20
-
21
- - Use frontmatter title & description in each language version template
22
- - Replace broken OpenGraph image with an appropriately-sized Keep a Changelog
23
- image that will render properly (although in English for all languages)
24
- - Fix OpenGraph title & description for all languages so the title and
25
- description when links are shared are language-appropriate
26
-
27
- ### Removed
28
-
29
- - Trademark sign previously shown after the project description in version
30
- 0.3.0
31
-
32
- ## [1.1.1] - 2023-03-05
33
-
34
- ### Added
35
-
36
- - Arabic translation (#444).
37
- - v1.1 French translation.
38
- - v1.1 Dutch translation (#371).
39
- - v1.1 Russian translation (#410).
40
- - v1.1 Japanese translation (#363).
41
- - v1.1 Norwegian Bokmål translation (#383).
42
- - v1.1 "Inconsistent Changes" Turkish translation (#347).
43
- - Default to most recent versions available for each languages.
44
- - Display count of available translations (26 to date!).
45
- - Centralize all links into `/data/links.json` so they can be updated easily.
46
-
47
- ### Fixed
48
-
49
- - Improve French translation (#377).
50
- - Improve id-ID translation (#416).
51
- - Improve Persian translation (#457).
52
- - Improve Russian translation (#408).
53
- - Improve Swedish title (#419).
54
- - Improve zh-CN translation (#359).
55
- - Improve French translation (#357).
56
- - Improve zh-TW translation (#360, #355).
57
- - Improve Spanish (es-ES) transltion (#362).
58
- - Foldout menu in Dutch translation (#371).
59
- - Missing periods at the end of each change (#451).
60
- - Fix missing logo in 1.1 pages.
61
- - Display notice when translation isn't for most recent version.
62
- - Various broken links, page versions, and indentations.
63
-
64
- ### Changed
65
-
66
- - Upgrade dependencies: Ruby 3.2.1, Middleman, etc.
67
-
68
- ### Removed
69
-
70
- - Unused normalize.css file.
71
- - Identical links assigned in each translation file.
72
- - Duplicate index file for the english version.
73
-
74
- ## [1.1.0] - 2019-02-15
75
-
76
- ### Added
77
-
78
- - Danish translation (#297).
79
- - Georgian translation from (#337).
80
- - Changelog inconsistency section in Bad Practices.
81
-
82
- ### Fixed
83
-
84
- - Italian translation (#332).
85
- - Indonesian translation (#336).
86
-
87
- ## [1.0.0] - 2017-06-20
88
-
89
- ### Added
90
-
91
- - New visual identity by [@tylerfortune8](https://github.com/tylerfortune8).
92
- - Version navigation.
93
- - Links to latest released version in previous versions.
94
- - "Why keep a changelog?" section.
95
- - "Who needs a changelog?" section.
96
- - "How do I make a changelog?" section.
97
- - "Frequently Asked Questions" section.
98
- - New "Guiding Principles" sub-section to "How do I make a changelog?".
99
- - Simplified and Traditional Chinese translations from [@tianshuo](https://github.com/tianshuo).
100
- - German translation from [@mpbzh](https://github.com/mpbzh) & [@Art4](https://github.com/Art4).
101
- - Italian translation from [@azkidenz](https://github.com/azkidenz).
102
- - Swedish translation from [@magol](https://github.com/magol).
103
- - Turkish translation from [@emreerkan](https://github.com/emreerkan).
104
- - French translation from [@zapashcanon](https://github.com/zapashcanon).
105
- - Brazilian Portuguese translation from [@Webysther](https://github.com/Webysther).
106
- - Polish translation from [@amielucha](https://github.com/amielucha) & [@m-aciek](https://github.com/m-aciek).
107
- - Russian translation from [@aishek](https://github.com/aishek).
108
- - Czech translation from [@h4vry](https://github.com/h4vry).
109
- - Slovak translation from [@jkostolansky](https://github.com/jkostolansky).
110
- - Korean translation from [@pierceh89](https://github.com/pierceh89).
111
- - Croatian translation from [@porx](https://github.com/porx).
112
- - Persian translation from [@Hameds](https://github.com/Hameds).
113
- - Ukrainian translation from [@osadchyi-s](https://github.com/osadchyi-s).
114
-
115
- ### Changed
116
-
117
- - Start using "changelog" over "change log" since it's the common usage.
118
- - Start versioning based on the current English version at 0.3.0 to help
119
- translation authors keep things up-to-date.
120
- - Rewrite "What makes unicorns cry?" section.
121
- - Rewrite "Ignoring Deprecations" sub-section to clarify the ideal
122
- scenario.
123
- - Improve "Commit log diffs" sub-section to further argument against
124
- them.
125
- - Merge "Why can’t people just use a git log diff?" with "Commit log
126
- diffs".
127
- - Fix typos in Simplified Chinese and Traditional Chinese translations.
128
- - Fix typos in Brazilian Portuguese translation.
129
- - Fix typos in Turkish translation.
130
- - Fix typos in Czech translation.
131
- - Fix typos in Swedish translation.
132
- - Improve phrasing in French translation.
133
- - Fix phrasing and spelling in German translation.
134
-
135
- ### Removed
136
-
137
- - Section about "changelog" vs "CHANGELOG".
138
-
139
- ## [0.3.0] - 2015-12-03
140
-
141
- ### Added
142
-
143
- - RU translation from [@aishek](https://github.com/aishek).
144
- - pt-BR translation from [@tallesl](https://github.com/tallesl).
145
- - es-ES translation from [@ZeliosAriex](https://github.com/ZeliosAriex).
146
-
147
- ## [0.2.0] - 2015-10-06
148
-
149
- ### Changed
150
-
151
- - Remove exclusionary mentions of "open source" since this project can
152
- benefit both "open" and "closed" source projects equally.
153
-
154
- ## [0.1.0] - 2015-10-06
155
-
156
- ### Added
157
-
158
- - Answer "Should you ever rewrite a change log?".
159
-
160
- ### Changed
161
-
162
- - Improve argument against commit logs.
163
- - Start following [SemVer](https://semver.org) properly.
164
-
165
- ## [0.0.8] - 2015-02-17
166
-
167
- ### Changed
168
-
169
- - Update year to match in every README example.
170
- - Reluctantly stop making fun of Brits only, since most of the world
171
- writes dates in a strange way.
172
-
173
- ### Fixed
174
-
175
- - Fix typos in recent README changes.
176
- - Update outdated unreleased diff link.
177
-
178
- ## [0.0.7] - 2015-02-16
179
-
180
- ### Added
181
-
182
- - Link, and make it obvious that date format is ISO 8601.
183
-
184
- ### Changed
185
-
186
- - Clarified the section on "Is there a standard change log format?".
187
-
188
- ### Fixed
189
-
190
- - Fix Markdown links to tag comparison URL with footnote-style links.
191
-
192
- ## [0.0.6] - 2014-12-12
193
-
194
- ### Added
195
-
196
- - README section on "yanked" releases.
197
-
198
- ## [0.0.5] - 2014-08-09
199
-
200
- ### Added
201
-
202
- - Markdown links to version tags on release headings.
203
- - Unreleased section to gather unreleased changes and encourage note
204
- keeping prior to releases.
205
-
206
- ## [0.0.4] - 2014-08-09
207
-
208
- ### Added
209
-
210
- - Better explanation of the difference between the file ("CHANGELOG")
211
- and its function "the change log".
212
-
213
- ### Changed
214
-
215
- - Refer to a "change log" instead of a "CHANGELOG" throughout the site
216
- to differentiate between the file and the purpose of the file — the
217
- logging of changes.
218
-
219
- ### Removed
220
-
221
- - Remove empty sections from CHANGELOG, they occupy too much space and
222
- create too much noise in the file. People will have to assume that the
223
- missing sections were intentionally left out because they contained no
224
- notable changes.
225
-
226
- ## [0.0.3] - 2014-08-09
227
-
228
- ### Added
229
-
230
- - "Why should I care?" section mentioning The Changelog podcast.
231
-
232
- ## [0.0.2] - 2014-07-10
233
-
234
- ### Added
235
-
236
- - Explanation of the recommended reverse chronological release ordering.
237
-
238
- ## [0.0.1] - 2014-05-31
239
-
240
- ### Added
241
-
242
- - This CHANGELOG file to hopefully serve as an evolving example of a
243
- standardized open source project CHANGELOG.
244
- - CNAME file to enable GitHub Pages custom domain.
245
- - README now contains answers to common questions about CHANGELOGs.
246
- - Good examples and basic guidelines, including proper date formatting.
247
- - Counter-examples: "What makes unicorns cry?".
248
-
249
- [unreleased]: https://github.com/olivierlacan/keep-a-changelog/compare/v1.1.1...HEAD
250
- [1.1.1]: https://github.com/olivierlacan/keep-a-changelog/compare/v1.1.0...v1.1.1
251
- [1.1.0]: https://github.com/olivierlacan/keep-a-changelog/compare/v1.0.0...v1.1.0
252
- [1.0.0]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.3.0...v1.0.0
253
- [0.3.0]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.2.0...v0.3.0
254
- [0.2.0]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.1.0...v0.2.0
255
- [0.1.0]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.8...v0.1.0
256
- [0.0.8]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.7...v0.0.8
257
- [0.0.7]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.6...v0.0.7
258
- [0.0.6]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.5...v0.0.6
259
- [0.0.5]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.4...v0.0.5
260
- [0.0.4]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.3...v0.0.4
261
- [0.0.3]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.2...v0.0.3
262
- [0.0.2]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.1...v0.0.2
263
- [0.0.1]: https://github.com/olivierlacan/keep-a-changelog/releases/tag/v0.0.1
264
- Wh
@@ -1,8 +0,0 @@
1
- {
2
- "name": "application-a",
3
- "scripts": {
4
- "all-workspaces": "echo 'script for all workspaces'",
5
- "a-workspaces": "echo 'script for a workspaces'",
6
- "application-a": "echo 'hello'"
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "name": "application-b",
3
- "scripts": {
4
- "all-workspaces": "echo 'script for all workspaces'",
5
- "b-workspaces": "echo 'script for b workspaces'",
6
- "application-b": "echo 'script for application-b'"
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "name": "library-a",
3
- "scripts": {
4
- "all-workspaces": "echo 'script for all workspaces'",
5
- "a-workspaces": "echo 'script for a workspaces'",
6
- "library-a": "echo 'script for library-a'"
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "name": "library-b",
3
- "scripts": {
4
- "all-workspaces": "echo 'script for all workspaces'",
5
- "b-workspaces": "echo 'script for b workspaces'",
6
- "library-b": "echo 'script for library-b'"
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "name": "library-c",
3
- "scripts": {
4
- "all-workspaces": "echo 'script for all workspaces'",
5
- "c-workspaces": "echo 'script for c workspaces'",
6
- "library-c": "echo 'script for library-c'"
7
- }
8
- }
@@ -1,7 +0,0 @@
1
- {
2
- "name": "test-root",
3
- "workspaces": [
4
- "applications/*",
5
- "libraries/**/*"
6
- ]
7
- }
@@ -1,8 +0,0 @@
1
- {
2
- "name": "application-a",
3
- "scripts": {
4
- "all-workspaces": "echo 'script for all workspaces'",
5
- "a-workspaces": "echo 'script for a workspaces'",
6
- "application-a": "echo 'script for application-a'"
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "name": "application-b",
3
- "scripts": {
4
- "all-workspaces": "commandthatshouldnotexist",
5
- "b-workspaces": "echo 'script for b workspaces'",
6
- "application-b": "echo 'script for application-b'"
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "name": "library-a",
3
- "scripts": {
4
- "all-workspaces": "echo 'script for all workspaces'",
5
- "a-workspaces": "echo 'script for a workspaces'",
6
- "library-a": "echo 'script for library-a'"
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "name": "library-b",
3
- "scripts": {
4
- "all-workspaces": "echo 'script for all workspaces'",
5
- "b-workspaces": "echo 'script for b workspaces'",
6
- "library-b": "echo 'script for library-b'"
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "name": "library-c",
3
- "scripts": {
4
- "all-workspaces": "echo 'script for all workspaces'",
5
- "c-workspaces": "echo 'script for c workspaces'",
6
- "library-c": "echo 'script for library-c'"
7
- }
8
- }
@@ -1,7 +0,0 @@
1
- {
2
- "name": "test-root",
3
- "workspaces": [
4
- "applications/*",
5
- "libraries/**/*"
6
- ]
7
- }
@@ -1,8 +0,0 @@
1
- {
2
- "name": "application-a",
3
- "scripts": {
4
- "all-workspaces": "echo 'script for all workspaces'",
5
- "a-workspaces": "echo 'script for a workspaces'",
6
- "application-a": "echo 'script for application-a'"
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "name": "application-b",
3
- "scripts": {
4
- "all-workspaces": "commandthatshouldnotexist",
5
- "b-workspaces": "echo 'script for b workspaces'",
6
- "application-b": "echo 'script for application-b'"
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "name": "library-a",
3
- "scripts": {
4
- "all-workspaces": "echo 'script for all workspaces'",
5
- "a-workspaces": "echo 'script for a workspaces'",
6
- "library-a": "echo 'script for library-a'"
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "name": "library-b",
3
- "scripts": {
4
- "all-workspaces": "commandthatshouldnotexist",
5
- "b-workspaces": "echo 'script for b workspaces'",
6
- "library-b": "echo 'script for library-b'"
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "name": "library-c",
3
- "scripts": {
4
- "all-workspaces": "echo 'script for all workspaces'",
5
- "c-workspaces": "echo 'script for c workspaces'",
6
- "library-c": "echo 'script for library-c'"
7
- }
8
- }
@@ -1,7 +0,0 @@
1
- {
2
- "name": "test-root",
3
- "workspaces": [
4
- "applications/*",
5
- "libraries/**/*"
6
- ]
7
- }
package/src/cli/output.ts DELETED
@@ -1,6 +0,0 @@
1
- import { IS_TEST } from "../internal/env";
2
-
3
- export const OUTPUT_CONFIG = {
4
- writeOut: (s: string) => !IS_TEST && process.stdout.write(s),
5
- writeErr: (s: string) => !IS_TEST && process.stderr.write(s),
6
- };