@changke/staticnext-build 0.7.0 → 0.9.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,17 @@ 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.9.0
8
+ 2024-09-10
9
+ ### Changed
10
+ - Upgraded `eslint` to v9
11
+ - Upgraded `marked` to v14
12
+
13
+ ## 0.8.0
14
+ 2024-07-26
15
+ ### Changed
16
+ - Changed `esbuild`'s `target` to `es2023`
17
+
7
18
  ## 0.7.0
8
19
  2024-07-05
9
20
  ### Changed
@@ -0,0 +1,20 @@
1
+ import globals from 'globals';
2
+ import js from '@eslint/js';
3
+
4
+ export default [
5
+ js.configs.recommended,
6
+ {
7
+ files: ['**/*.mjs'],
8
+ languageOptions: {
9
+ globals: {
10
+ ...globals.node,
11
+ ...globals.mocha
12
+ }
13
+ },
14
+ rules: {
15
+ 'quotes': ['warn', 'single'],
16
+ 'semi': ['error', 'always'],
17
+ 'comma-dangle': ['error', 'never']
18
+ }
19
+ }
20
+ ];
@@ -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,10 +1,10 @@
1
1
  {
2
2
  "name": "@changke/staticnext-build",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "description": "Build scripts extracted from StaticNext seed project",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "lint": "eslint --ext .mjs . lib test",
7
+ "lint": "eslint . lib test",
8
8
  "test": "mocha",
9
9
  "prepublishOnly": "npm run lint && npm run test"
10
10
  },
@@ -19,18 +19,20 @@
19
19
  "license": "ISC",
20
20
  "type": "module",
21
21
  "devDependencies": {
22
- "eslint": "^8.57.0",
23
- "mocha": "^10.6.0"
22
+ "@eslint/js": "^9.10.0",
23
+ "eslint": "^9.10.0",
24
+ "globals": "^15.9.0",
25
+ "mocha": "^10.7.3"
24
26
  },
25
27
  "dependencies": {
26
- "cpy": "^11.0.1",
28
+ "cpy": "^11.1.0",
27
29
  "del": "^7.1.0",
28
- "esbuild": "^0.23.0",
30
+ "esbuild": "^0.23.1",
29
31
  "globby": "^14.0.2",
30
- "highlight.js": "^11.9.0",
31
- "marked": "^13.0.2",
32
- "marked-highlight": "^2.1.3",
33
- "marked-xhtml": "^1.0.10",
32
+ "highlight.js": "^11.10.0",
33
+ "marked": "^14.1.2",
34
+ "marked-highlight": "^2.1.4",
35
+ "marked-xhtml": "^1.0.11",
34
36
  "nunjucks": "^3.2.4"
35
37
  }
36
38
  }