@changke/staticnext-build 0.6.2 → 0.8.0

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.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## 0.8.0
8
+ 2024-07-26
9
+ ### Changed
10
+ - Changed `esbuild`'s `target` to `es2023`
11
+
12
+ ## 0.7.0
13
+ 2024-07-05
14
+ ### Changed
15
+ - Upgraded `esbuild` to v0.23.0
16
+ - Upgraded `marked` to v13.0.2
17
+ ### Added
18
+ - Copy `assets` under markdown source directory to target
19
+
7
20
  ## 0.6.2
8
21
  2024-06-29
9
22
  ### Changed
package/build.mjs CHANGED
@@ -31,7 +31,8 @@ const tasks = {
31
31
  copy: () => copy([
32
32
  {sources: [`${conf.sourceRoot}/*`, `!${conf.sourceRoot}/*.d.ts`], target: conf.targetRoot},
33
33
  {sources: `${srcPaths.assets}/**/*`, target: tgtPaths.assets},
34
- {sources: `${srcPaths.modules}/**/assets/**/*`, target: tgtPaths.moduleAssets}
34
+ {sources: `${srcPaths.modules}/**/assets/**/*`, target: tgtPaths.moduleAssets},
35
+ {sources: `${srcPaths.markdown}/**/assets/**/*`, target: tgtPaths.markdown}
35
36
  ].concat(Config.getCopyPairs(conf.copyPairs, conf.sourceRoot, tgtPaths.assets))),
36
37
  markdown: () => markdown(
37
38
  srcPaths.markdown,
@@ -15,7 +15,7 @@ const esm = (entries, targetPath) => {
15
15
  entryPoints: entries,
16
16
  bundle: true,
17
17
  format: 'esm',
18
- target: 'es2021',
18
+ target: 'es2023',
19
19
  splitting: true,
20
20
  outdir: targetPath,
21
21
  minify: isEnvProd(), // only minify in prod build
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@changke/staticnext-build",
3
- "version": "0.6.2",
3
+ "version": "0.8.0",
4
4
  "description": "Build scripts extracted from StaticNext seed project",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -20,15 +20,15 @@
20
20
  "type": "module",
21
21
  "devDependencies": {
22
22
  "eslint": "^8.57.0",
23
- "mocha": "^10.5.2"
23
+ "mocha": "^10.7.0"
24
24
  },
25
25
  "dependencies": {
26
26
  "cpy": "^11.0.1",
27
27
  "del": "^7.1.0",
28
- "esbuild": "^0.21.5",
29
- "globby": "^14.0.1",
30
- "highlight.js": "^11.9.0",
31
- "marked": "^12.0.2",
28
+ "esbuild": "^0.23.0",
29
+ "globby": "^14.0.2",
30
+ "highlight.js": "^11.10.0",
31
+ "marked": "^13.0.2",
32
32
  "marked-highlight": "^2.1.3",
33
33
  "marked-xhtml": "^1.0.10",
34
34
  "nunjucks": "^3.2.4"