File tree Expand file tree Collapse file tree 5 files changed +1788
-11
lines changed Expand file tree Collapse file tree 5 files changed +1788
-11
lines changed Original file line number Diff line number Diff line change 10
10
11
11
# build
12
12
/dist
13
+ /cjs
13
14
/browser
Original file line number Diff line number Diff line change 1
1
SOURCE_FILES: =$(shell find src/ -type f -name '* .ts')
2
2
3
3
.PHONY : build
4
- build : dist/build
4
+ build : dist/build cjs/index.cjs
5
5
6
6
.PHONY : clean
7
7
clean :
8
- rm -r dist/
8
+ rm -r dist/ cjs/
9
9
10
10
.PHONY : test
11
11
test : lint test/httpwg-tests/list.json dist/build
@@ -32,5 +32,9 @@ dist/build: $(SOURCE_FILES)
32
32
@# A fake file to keep track of the last build time
33
33
touch dist/build
34
34
35
+ cjs/index.cjs : ${SOURCE_FILES}
36
+ mkdir -p cjs
37
+ npx tsup -d cjs --format cjs src/index.ts --dts --sourcemap
38
+
35
39
test/httpwg-tests/list.json :
36
40
git clone https://github.com/httpwg/structured-header-tests test/httpwg-tests
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ ChangeLog
6
6
7
7
* #66 : We now convert from/to ArrayBuffer instead of a custom ByteSequence
8
8
object. This is a breaking change.
9
+ * Bundling CommonJS for backwards compat.
9
10
10
11
11
12
2.0.0-alpha.1 (2024-02-23)
You can’t perform that action at this time.
0 commit comments