chore: node 26, lf line endings and tooling fixes

This commit is contained in:
Jones Jankovic committed 2026-11-02 13:31:57 +10:30
1 parent 848204d11c
commit 4708004ae3
10 files changed
+20 -20

No files matched your search

+1
View File
@@ -0,0 +1 @@
* text=auto eol=lf
+4 -4
View File
@@ -1,13 +1,13 @@
name: Setup Node and dependencies name: Setup Node and dependencies
description: Install Node.js 22.x and npm dependencies. description: Install Node.js 26.x and npm dependencies.
runs: runs:
using: composite using: composite
steps: steps:
- name: Use Node.js 22.x - name: Use Node.js 26.x
uses: actions/setup-node@v4 uses: actions/setup-node@v7
with: with:
node-version: 22.x node-version: 26.x
- name: Install dependencies - name: Install dependencies
shell: bash shell: bash
+1 -1
View File
@@ -27,7 +27,7 @@ jobs:
shell: bash shell: bash
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v7
- name: Set build date - name: Set build date
id: build_date id: build_date
+4 -4
View File
@@ -14,7 +14,7 @@ jobs:
run: run:
shell: bash shell: bash
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v7
- name: Setup Node and dependencies - name: Setup Node and dependencies
uses: ./.github/actions/setup-node-deps uses: ./.github/actions/setup-node-deps
@@ -28,7 +28,7 @@ jobs:
run: run:
shell: bash shell: bash
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v7
- name: Setup Node and dependencies - name: Setup Node and dependencies
uses: ./.github/actions/setup-node-deps uses: ./.github/actions/setup-node-deps
@@ -43,7 +43,7 @@ jobs:
run: run:
shell: bash shell: bash
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v7
- name: Build extension - name: Build extension
id: build id: build
@@ -52,7 +52,7 @@ jobs:
gh_release_update_check: "false" gh_release_update_check: "false"
- name: Upload extension zips - name: Upload extension zips
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
with: with:
name: extension-zips name: extension-zips
path: | path: |
+1 -1
View File
@@ -29,7 +29,7 @@ jobs:
echo "Check the confirmation box: you must update package.json version before releasing." echo "Check the confirmation box: you must update package.json version before releasing."
exit 1 exit 1
- uses: actions/checkout@v4 - uses: actions/checkout@v7
- name: Read version - name: Read version
id: version id: version
+1 -1
View File
@@ -17,7 +17,7 @@ Welcome to BetterSEQTA+! 🎉 This guide will walk you through making your first
## Before You Start ## Before You Start
### What You'll Need ### What You'll Need
- **Node.js** (v22.12 or higher) - [Download here](https://nodejs.org/) - **Node.js** (v26 or higher) - [Download here](https://nodejs.org/)
- **Git** - [Download here](https://git-scm.com/) - **Git** - [Download here](https://git-scm.com/)
- **A code editor** - We recommend [VS Code](https://code.visualstudio.com/) - **A code editor** - We recommend [VS Code](https://code.visualstudio.com/)
- **A Chromium browser** (Chrome, Edge, Brave) for testing (recommended, however you can use firefox although it requires being built every time you make a change) - **A Chromium browser** (Chrome, Edge, Brave) for testing (recommended, however you can use firefox although it requires being built every time you make a change)
+1 -1
View File
@@ -38,7 +38,7 @@ npm install
2. **Check Node.js version**: 2. **Check Node.js version**:
```bash ```bash
node --version # Should be v22.12 or higher node --version # Should be v26 or higher
``` ```
3. **Try with npm cache clean**: 3. **Try with npm cache clean**:
+1 -1
View File
@@ -8,7 +8,7 @@ This guide will walk you through the process of installing and setting up Better
Before you begin, make sure you have the following installed: Before you begin, make sure you have the following installed:
- [Node.js](https://nodejs.org/) v22.12 or higher - [Node.js](https://nodejs.org/) v26 or higher
- A modern web browser (Chrome, Firefox, Edge, etc.) - A modern web browser (Chrome, Firefox, Edge, etc.)
## Installation Methods ## Installation Methods
+3 -4
View File
@@ -11,10 +11,9 @@
* or `node lib/publish.js --b firefox` * or `node lib/publish.js --b firefox`
*/ */
const { globSync } = require("glob"); import { globSync } from "glob";
const semver = require("semver"); import semver from "semver";
const { execSync } = require("child_process"); import { execSync } from "node:child_process";
const path = require("path");
/** /**
* Determines the latest version string from a list of filenames that include version numbers. * Determines the latest version string from a list of filenames that include version numbers.
+3 -3
View File
@@ -5,7 +5,7 @@
"description": "Enhance SEQTA Learn's usability and aesthetics! A fork of BetterSEQTA to continue development and add heaps more features!", "description": "Enhance SEQTA Learn's usability and aesthetics! A fork of BetterSEQTA to continue development and add heaps more features!",
"browserslist": "> 0.5%, last 2 versions, not dead", "browserslist": "> 0.5%, last 2 versions, not dead",
"engines": { "engines": {
"node": ">=22.12" "node": ">=26"
}, },
"scripts": { "scripts": {
"compile:layerchart": "node scripts/compile-layerchart-vendor.mjs", "compile:layerchart": "node scripts/compile-layerchart-vendor.mjs",
@@ -23,11 +23,11 @@
"dependency-graph": "depcruise src --include-only \"^src\" --output-type dot | dot -T svg > dependency-graph.svg", "dependency-graph": "depcruise src --include-only \"^src\" --output-type dot | dot -T svg > dependency-graph.svg",
"lint": "eslint \"src/**/*.{js,ts}\"", "lint": "eslint \"src/**/*.{js,ts}\"",
"test": "npm run test:unit", "test": "npm run test:unit",
"test:unit": "jest", "test:unit": "cross-env NODE_OPTIONS=--no-experimental-webstorage jest",
"test:smoke": "node scripts/smoke-test.mjs", "test:smoke": "node scripts/smoke-test.mjs",
"test:ci": "npm run test:unit && npm run build && npm run test:smoke", "test:ci": "npm run test:unit && npm run build && npm run test:smoke",
"release": "gh release create $npm_package_version --repo BetterSEQTA/BetterSEQTA-Plus ./dist/*.zip --generate-notes", "release": "gh release create $npm_package_version --repo BetterSEQTA/BetterSEQTA-Plus ./dist/*.zip --generate-notes",
"publish": "bun lib/publish.js --b", "publish": "node lib/publish.js --b",
"zip": "node scripts/package-extension-zips.mjs" "zip": "node scripts/package-extension-zips.mjs"
}, },
"keywords": [], "keywords": [],