mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 07:07:33 +00:00
Fixes
This commit is contained in:
parent
91a38084d2
commit
9feb35e358
3 changed files with 4 additions and 4 deletions
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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": [
|
||||
|
|
|
|||
|
|
@ -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) })
|
||||
build(buildConfig).then(() => { }).catch(() => { process.exit(1) })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue