Skip to content

Commit 7a7d737

Browse files
authored
Merge pull request #140 from AegisJSProject/bug/publish
Include `.min.js` and `.map` when publishing
2 parents 25c0025 + d123a7f commit 7a7d737

File tree

6 files changed

+25
-7
lines changed

6 files changed

+25
-7
lines changed

.npmignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,4 @@ importmap.yaml
1515
*.tgz
1616
*.log
1717
*.bak
18-
*.min.*
19-
*.map
2018
*.env

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [v0.1.5] - 2025-02-20
11+
12+
### Fixed
13+
- Include `.min.js` and `.map` when publishing
14+
1015
## [v0.1.4] - 2025-02-20
1116

12-
### Add
17+
### Added
1318
- Add minified ESM version
1419

1520
### Changed

http.config.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,19 @@ export default {
3434
});
3535
}
3636
}
37-
}
37+
},
38+
responsePostprocessors: [
39+
resp => {
40+
const types = ['text/plain', 'text/css', 'application/javascript', 'application/json', 'text/css', 'image/svg+xml', 'text/markdown'];
41+
42+
if (types.includes(resp.headers.get('Content-Type'))) {
43+
resp.headers.set('Content-Encoding', 'deflate');
44+
return new CompressionStream('deflate');
45+
} else if (resp.headers.get('Content-Type') === 'application/octet-stream') {
46+
resp.headers.set('Content-Type', 'text/markdown');
47+
resp.headers.set('Content-Encoding', 'deflate');
48+
return new CompressionStream('deflate');
49+
}
50+
}
51+
]
3852
};

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aegisjsproject/markdown",
3-
"version": "0.1.4",
3+
"version": "0.1.5",
44
"description": "Markdown parser for `@aegisjsproject/core`",
55
"keywords": [
66
"aegis",

rollup.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export default {
1313
file: 'markdown.min.js',
1414
format: 'esm',
1515
plugins: [terser()],
16+
sourcemap: true,
1617
}],
1718
};
1819

0 commit comments

Comments
 (0)