From 9feb35e358e0fca56df9652bee0822245f86f6fd Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Sun, 28 Jan 2024 14:05:28 -0300 Subject: [PATCH] Fixes --- examples/require.cjs | 2 +- package.json | 2 +- tools/esbuild.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/require.cjs b/examples/require.cjs index a6f7d39..c30f9cb 100644 --- a/examples/require.cjs +++ b/examples/require.cjs @@ -1,5 +1,5 @@ const { GameDig } = require('../dist/index.cjs') -// Instead of '../lib/index.js' you would have here 'gamedig'. +// Instead of '../dist/index.cjs' you would have here 'gamedig'. GameDig.query({ type: 'minecraft', diff --git a/package.json b/package.json index e0ad6ee..fe4fdea 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "scripts": { "lint:check": "eslint .", "lint:fix": "eslint --fix .", - "prepare ": "npm run build", + "prepare": "npm run build", "build": "node tools/esbuild.js" }, "keywords": [ diff --git a/tools/esbuild.js b/tools/esbuild.js index 783abfa..38d8a6c 100644 --- a/tools/esbuild.js +++ b/tools/esbuild.js @@ -4,7 +4,7 @@ import { nodeExternalsPlugin } from 'esbuild-node-externals' const buildConfig = { entryPoints: ['lib/index.js'], platform: 'node', - target: 'node14', + target: 'node16', bundle: true, outfile: 'dist/index.cjs', format: 'cjs', @@ -12,4 +12,4 @@ const buildConfig = { plugins: [nodeExternalsPlugin({ allowList: ['got'] })] } -build(buildConfig).then(() => { }).catch(() => { process.exit(1) }) \ No newline at end of file +build(buildConfig).then(() => { }).catch(() => { process.exit(1) })