Skip to content

Commit

Permalink
build(umd.js): changed globalObject to this instead of self for Node
Browse files Browse the repository at this point in the history
  • Loading branch information
thkruz committed Jan 14, 2021
1 parent cd819e8 commit 6f79359
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,36 @@ jobs:
run: npm run test:coverage

- name: Run codecov
run: node ./node_modules/.bin/codecov
run: node ./node_modules/.bin/codecov

test-on-node:
name: test-on-node
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Use Node.js latest
uses: actions/setup-node@v2-beta
with:
node-version: "15"

- name: Get cached modules
uses: actions/cache@v2
with:
path: |
**/node_modules
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}

- name: Compile TypeScript and build UMD files
run: npm run build:umd

- name: Test Ootk
run: node ./lib/ootk.js
- name: Test Ootk
run: node ./lib/ootk-sgp4.js
- name: Test Ootk
run: node ./lib/ootk-transforms.js
- name: Test Ootk
run: node ./lib/ootk-utils.js
2 changes: 2 additions & 0 deletions scripts/umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ let umd = {
libraryTarget: 'umd',
// eslint-disable-next-line no-path-concat, no-undef
path: __dirname + '/../dist',
globalObject: 'this',
},
optimization: {
minimize: false,
Expand All @@ -64,6 +65,7 @@ let minUmd = {
libraryTarget: 'umd',
// eslint-disable-next-line no-path-concat, no-undef
path: __dirname + '/../dist',
globalObject: 'this',
},
optimization: {
minimize: true,
Expand Down

0 comments on commit 6f79359

Please sign in to comment.