diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4251de7..5ef147f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,9 +10,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup Node - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: '16.x' registry-url: 'https://registry.npmjs.org' diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..f6ffbc1 --- /dev/null +++ b/.npmrc @@ -0,0 +1,2 @@ +# .npmrc +engine-strict=true diff --git a/bin/index.js b/bin/index.js index ec1407f..bbb7533 100644 --- a/bin/index.js +++ b/bin/index.js @@ -1,5 +1,3 @@ -#! /usr/bin/env node - const http = require('node:http'); const yargs = require("yargs"); const fs = require('fs-extra'); diff --git a/package.json b/package.json index 562a0ee..a5a4f0d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "serve-file-directory", - "version": "0.0.1", + "name": "directory-serve", + "version": "1.0.2", "description": "Command line tool to serve the directory", "main": "bin/index.js", "scripts": { @@ -25,6 +25,9 @@ "type": "git", "url": "git+https://github.com/cube-root/file-sharing.git" }, + "engines": { + "node": ">=16.0" + }, "bin": { "directory-serve": "./bin/index.js" },