@nxg-org/mineflayer-util-plugin 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,22 @@
1
+ # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2
+ name: Continuous Integration
3
+
4
+ on: [push, pull_request]
5
+
6
+ jobs:
7
+ build:
8
+ runs-on: ubuntu-latest
9
+
10
+ strategy:
11
+ matrix:
12
+ node-version: [14.x, 16.x]
13
+
14
+ steps:
15
+ - uses: actions/checkout@v2
16
+ - name: Use Node.js ${{ matrix.node-version }}
17
+ uses: actions/setup-node@v2
18
+ with:
19
+ node-version: ${{ matrix.node-version }}
20
+ - run: yarn --dev
21
+ - run: yarn build
22
+ # - run: yarn test
@@ -0,0 +1,37 @@
1
+ # This workflow allows the maintainers to trigger a new release manually
2
+ name: Release
3
+
4
+ on:
5
+ workflow_dispatch:
6
+ inputs:
7
+ version-type:
8
+ description: How major the changes are [ major | minor | patch | prerelease ]
9
+ required: true
10
+ default: patch
11
+
12
+ jobs:
13
+ release:
14
+ name: GitHub and NPM Release
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - uses: actions/checkout@v2
18
+ - uses: actions/setup-node@v2
19
+ with:
20
+ registry-url: https://registry.npmjs.org/
21
+ always-auth: true
22
+ - name: Install dependencies
23
+ run: yarn --dev
24
+ - name: Configure git credentials
25
+ uses: OleksiyRudenko/gha-git-credentials@v2
26
+ with:
27
+ token: ${{ secrets.GITHUB_TOKEN }}
28
+ name: ${{ github.actor }}
29
+ email: ${{ github.actor }}@users.noreply.github.com
30
+ - name: Release new version to NPM
31
+ run: yarn publish --non-interactive --access public --${{ github.event.inputs.version-type }} --preid beta --no-git-tag-version ${{ contains(github.event.inputs.version-type, 'pre') && '--tag beta' || '' }}
32
+ env:
33
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
34
+ - name: Push to GitHub
35
+ run: |
36
+ export VERSION=v$(node -pe "require('./package.json').version") &&
37
+ git add . && git commit -m "Release ${VERSION}" && git tag -m "" ${VERSION} && git push --follow-tags
package/lib/index.js CHANGED
@@ -1,7 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AABB = exports.CommonSense = void 0;
3
4
  const utilFunctions_1 = require("./utilFunctions");
4
5
  function inject(bot) {
5
6
  bot.util = new utilFunctions_1.UtilFunctions(bot);
6
7
  }
7
8
  exports.default = inject;
9
+ var commonSense_1 = require("./commonSense");
10
+ Object.defineProperty(exports, "CommonSense", { enumerable: true, get: function () { return commonSense_1.CommonSense; } });
11
+ var aabb_1 = require("./calcs/aabb");
12
+ Object.defineProperty(exports, "AABB", { enumerable: true, get: function () { return aabb_1.AABB; } });