From eabb7f746e2a9694d137d2c7690e0628697cce1d Mon Sep 17 00:00:00 2001 From: Remy Sharp Date: Sun, 19 May 2024 18:40:46 +0100 Subject: [PATCH] chore: try to simplify CI and expose types --- .github/workflows/node.js.yml | 2 +- .github/workflows/release.yml | 2 +- lib/nodemon.js | 4 ++++ package.json | 1 + 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 7629d907..5af7f9e1 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: - node-version: [10.x, 12.x, 18.x] + node-version: [18.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 07706003..c2ac4d79 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: uses: actions/setup-node@v4 with: cache: npm - node-version: 16 + node-version: 18 - name: Install dependencies run: npm ci - name: Release diff --git a/lib/nodemon.js b/lib/nodemon.js index ce649cb6..278ea658 100644 --- a/lib/nodemon.js +++ b/lib/nodemon.js @@ -16,6 +16,10 @@ var eventHandlers = {}; // stable module API config.required = utils.isRequired; +/** + * @param {NodemonSettings} settings + * @returns {Nodemon} + */ function nodemon(settings) { bus.emit('boot'); nodemon.reset(); diff --git a/package.json b/package.json index e887374b..63a03822 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "terminal" ], "license": "MIT", + "types": "./index.d.ts", "main": "./lib/nodemon", "scripts": { "commitmsg": "commitlint -e",