Skip to content

Commit fd76002

Browse files
authored
build: use ecmascript module syntax with supported node versions (#5)
1 parent 6478b80 commit fd76002

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
node-version:
17-
- 18.x
1817
- 20.x
1918
- 22.x
19+
- 24.x
2020
steps:
2121
- uses: actions/checkout@v5
2222
- name: Use Node.js ${{ matrix.node-version }}

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { App } = require('@slack/bolt');
1+
import { App } from '@slack/bolt';
22

33
// Initializes your app with your Slack app and bot token
44
const app = new App({

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
2+
"$schema": "https://www.schemastore.org/package.json",
23
"name": "bolt-js-blank-template",
34
"version": "1.0.0",
45
"description": "A blank template for Slack apps",
56
"main": "app.js",
7+
"type": "module",
68
"scripts": {
79
"lint": "npx @biomejs/biome check",
810
"lint:fix": "npx @biomejs/biome check --write",

0 commit comments

Comments
 (0)