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')
|
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({
|
GameDig.query({
|
||||||
type: 'minecraft',
|
type: 'minecraft',
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint:check": "eslint .",
|
"lint:check": "eslint .",
|
||||||
"lint:fix": "eslint --fix .",
|
"lint:fix": "eslint --fix .",
|
||||||
"prepare ": "npm run build",
|
"prepare": "npm run build",
|
||||||
"build": "node tools/esbuild.js"
|
"build": "node tools/esbuild.js"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import { nodeExternalsPlugin } from 'esbuild-node-externals'
|
||||||
const buildConfig = {
|
const buildConfig = {
|
||||||
entryPoints: ['lib/index.js'],
|
entryPoints: ['lib/index.js'],
|
||||||
platform: 'node',
|
platform: 'node',
|
||||||
target: 'node14',
|
target: 'node16',
|
||||||
bundle: true,
|
bundle: true,
|
||||||
outfile: 'dist/index.cjs',
|
outfile: 'dist/index.cjs',
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
|
|
@ -12,4 +12,4 @@ const buildConfig = {
|
||||||
plugins: [nodeExternalsPlugin({ allowList: ['got'] })]
|
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