Skip to content

Commit ebf5c38

Browse files
authored
Mark test files in config and create patch changeset (#117)
1 parent 7314563 commit ebf5c38

File tree

5 files changed

+253
-221
lines changed

5 files changed

+253
-221
lines changed

.changeset/big-oranges-read.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ieedan/std": patch
3+
---
4+
5+
Mark all test files with role: 'test' so they are only installed when requested

jsrepo.config.ts

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,71 +18,71 @@ export default defineConfig({
1818
type: 'util',
1919
files: [
2020
{ path: 'src/ts/result.ts' },
21-
{ path: 'src/ts/result.test.ts', type: 'registry:test' },
21+
{ path: 'src/ts/result.test.ts', role: 'test' },
2222
],
2323
},
2424
{
2525
name: 'array',
2626
type: 'util',
2727
files: [
2828
{ path: 'src/ts/array.ts' },
29-
{ path: 'src/ts/array.test.ts', type: 'registry:test' },
29+
{ path: 'src/ts/array.test.ts', role: 'test' },
3030
],
3131
},
3232
{
3333
name: 'casing',
3434
type: 'util',
3535
files: [
3636
{ path: 'src/ts/casing.ts' },
37-
{ path: 'src/ts/casing.test.ts', type: 'registry:test' },
37+
{ path: 'src/ts/casing.test.ts', role: 'test' },
3838
],
3939
},
4040
{
4141
name: 'dispatcher',
4242
type: 'util',
4343
files: [
4444
{ path: 'src/ts/dispatcher.ts' },
45-
{ path: 'src/ts/dispatcher.test.ts', type: 'registry:test' },
45+
{ path: 'src/ts/dispatcher.test.ts', role: 'test' },
4646
],
4747
},
4848
{
4949
name: 'ipv4-address',
5050
type: 'util',
5151
files: [
5252
{ path: 'src/ts/ipv4-address.ts' },
53-
{ path: 'src/ts/ipv4-address.test.ts', type: 'registry:test' },
53+
{ path: 'src/ts/ipv4-address.test.ts', role: 'test' },
5454
],
5555
},
5656
{
5757
name: 'is-letter',
5858
type: 'util',
5959
files: [
6060
{ path: 'src/ts/is-letter.ts' },
61-
{ path: 'src/ts/is-letter.test.ts', type: 'registry:test' },
61+
{ path: 'src/ts/is-letter.test.ts', role: 'test' },
6262
],
6363
},
6464
{
6565
name: 'is-number',
6666
type: 'util',
6767
files: [
6868
{ path: 'src/ts/is-number.ts' },
69-
{ path: 'src/ts/is-number.test.ts', type: 'registry:test' },
69+
{ path: 'src/ts/is-number.test.ts', role: 'test' },
7070
],
7171
},
7272
{
7373
name: 'math',
7474
type: 'util',
7575
files: [
7676
{ path: 'src/ts/math/circle.ts' },
77-
{ path: 'src/ts/math/circle.test.ts', type: 'registry:test' },
77+
{ path: 'src/ts/math/circle.test.ts', role: 'test' },
7878
{ path: 'src/ts/math/conversions.ts' },
79-
{ path: 'src/ts/math/conversions.test.ts', type: 'registry:test' },
79+
{ path: 'src/ts/math/conversions.test.ts', role: 'test' },
8080
{ path: 'src/ts/math/fractions.ts' },
81-
{ path: 'src/ts/math/fractions.test.ts', type: 'registry:test' },
81+
{ path: 'src/ts/math/fractions.test.ts', role: 'test' },
8282
{ path: 'src/ts/math/gcf.ts' },
83-
{ path: 'src/ts/math/gcf.test.ts', type: 'registry:test' },
83+
{ path: 'src/ts/math/gcf.test.ts', role: 'test' },
8484
{ path: 'src/ts/math/triangles.ts' },
85-
{ path: 'src/ts/math/triangles.test.ts', type: 'registry:test' },
85+
{ path: 'src/ts/math/triangles.test.ts', role: 'test' },
8686
{ path: 'src/ts/math/types.ts' },
8787
{ path: 'src/ts/math/index.ts' },
8888
],
@@ -92,71 +92,71 @@ export default defineConfig({
9292
type: 'util',
9393
files: [
9494
{ path: 'src/ts/pad.ts' },
95-
{ path: 'src/ts/pad.test.ts', type: 'registry:test' },
95+
{ path: 'src/ts/pad.test.ts', role: 'test' },
9696
],
9797
},
9898
{
9999
name: 'perishable-list',
100100
type: 'util',
101101
files: [
102102
{ path: 'src/ts/perishable-list.ts' },
103-
{ path: 'src/ts/perishable-list.test.ts', type: 'registry:test' },
103+
{ path: 'src/ts/perishable-list.test.ts', role: 'test' },
104104
],
105105
},
106106
{
107107
name: 'promises',
108108
type: 'util',
109109
files: [
110110
{ path: 'src/ts/promises.ts' },
111-
{ path: 'src/ts/promises.test.ts', type: 'registry:test' },
111+
{ path: 'src/ts/promises.test.ts', role: 'test' },
112112
],
113113
},
114114
{
115115
name: 'rand',
116116
type: 'util',
117117
files: [
118118
{ path: 'src/ts/rand.ts' },
119-
{ path: 'src/ts/rand.test.ts', type: 'registry:test' },
119+
{ path: 'src/ts/rand.test.ts', role: 'test' },
120120
],
121121
},
122122
{
123123
name: 'sleep',
124124
type: 'util',
125125
files: [
126126
{ path: 'src/ts/sleep.ts' },
127-
{ path: 'src/ts/sleep.test.ts', type: 'registry:test' },
127+
{ path: 'src/ts/sleep.test.ts', role: 'test' },
128128
],
129129
},
130130
{
131131
name: 'stopwatch',
132132
type: 'util',
133133
files: [
134134
{ path: 'src/ts/stopwatch.ts' },
135-
{ path: 'src/ts/stopwatch.test.ts', type: 'registry:test' },
135+
{ path: 'src/ts/stopwatch.test.ts', role: 'test' },
136136
],
137137
},
138138
{
139139
name: 'strings',
140140
type: 'util',
141141
files: [
142142
{ path: 'src/ts/strings.ts' },
143-
{ path: 'src/ts/strings.test.ts', type: 'registry:test' },
143+
{ path: 'src/ts/strings.test.ts', role: 'test' },
144144
],
145145
},
146146
{
147147
name: 'time',
148148
type: 'util',
149149
files: [
150150
{ path: 'src/ts/time.ts' },
151-
{ path: 'src/ts/time.test.ts', type: 'registry:test' },
151+
{ path: 'src/ts/time.test.ts', role: 'test' },
152152
],
153153
},
154154
{
155155
name: 'truncate',
156156
type: 'util',
157157
files: [
158158
{ path: 'src/ts/truncate.ts' },
159-
{ path: 'src/ts/truncate.test.ts', type: 'registry:test' },
159+
{ path: 'src/ts/truncate.test.ts', role: 'test' },
160160
],
161161
},
162162
{
@@ -169,7 +169,7 @@ export default defineConfig({
169169
type: 'util',
170170
files: [
171171
{ path: 'src/ts/url.ts' },
172-
{ path: 'src/ts/url.test.ts', type: 'registry:test' },
172+
{ path: 'src/ts/url.test.ts', role: 'test' },
173173
],
174174
},
175175
{

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@svitejs/changesets-changelog-github-compact": "^1.2.0",
2222
"@types/node": "^22.19.0",
2323
"@vitest/coverage-v8": "^3.2.4",
24-
"jsrepo": "3.0.0-beta.25",
24+
"jsrepo": "3.0.8",
2525
"typedoc": "^0.28.14",
2626
"typescript": "^5.9.3",
2727
"vitest": "^3.2.4"
@@ -30,6 +30,9 @@
3030
"typedoc-material-theme": "^1.4.1"
3131
},
3232
"pnpm": {
33-
"onlyBuiltDependencies": ["@biomejs/biome", "esbuild"]
33+
"onlyBuiltDependencies": [
34+
"@biomejs/biome",
35+
"esbuild"
36+
]
3437
}
3538
}

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)