Skip to content

Commit

Permalink
[deps] Update more stuff, switch to ESM
Browse files Browse the repository at this point in the history
- Switch to type=module in package.json for vite
- Rename eslintrc.js to .cjs
- Upgrade to Node v20 in CI
  • Loading branch information
werkshy committed Dec 19, 2023
1 parent 9801332 commit f6cf03d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 20.x
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.19.x
go-version: 1.21.x
# We don't have it setup in the Makefile to avoid double-building, but 'make lint'
# requires the react build to have completed.
- run: make react
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.0.0",
"description": "React frontend to Pickup music player",
"main": "index.js",
"type": "module",
"scripts": {
"build": "vite build",
"format": "prettier --write src index.html",
Expand Down
2 changes: 1 addition & 1 deletion react/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable no-undef */
import { defineConfig } from "vite";
const { resolve } = require("path");
import { resolve } from "node:path";

export default defineConfig({
plugins: [],
Expand Down

0 comments on commit f6cf03d

Please sign in to comment.