Skip to content

Commit

Permalink
ci(ci.yml): fixed node support issue by referenceing dist instead of lib
Browse files Browse the repository at this point in the history
  • Loading branch information
thkruz committed Jan 14, 2021
1 parent 510ee61 commit faa6e7b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ jobs:
run: npm run build:umd

- name: Test Ootk
run: node ./lib/ootk.js
run: node ./dist/ootk.js
- name: Test Ootk
run: node ./lib/ootk-sgp4.js
run: node ./dist/ootk-sgp4.js
- name: Test Ootk
run: node ./lib/ootk-transforms.js
run: node ./dist/ootk-transforms.js
- name: Test Ootk
run: node ./lib/ootk-utils.js
run: node ./dist/ootk-utils.js
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "ootk",
"version": "1.0.3",
"description": "Orbital Object Toolkit including SGP4 Propagator and Coordinate Transforms",
"type": "module",
"main": "dist/ootk.js",
"scripts": {
"build": "node ./scripts/cleanup.js && tsc",
Expand Down
2 changes: 1 addition & 1 deletion scripts/cleanup.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { rimraf } from 'rimraf';
var rimraf = require('rimraf');

console.log(`Removing ./dist...`);
try {
Expand Down
4 changes: 2 additions & 2 deletions scripts/umd.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import TerserPlugin from 'terser-webpack-plugin';
const TerserPlugin = require('terser-webpack-plugin');

let config = {
module: {
Expand Down Expand Up @@ -85,4 +85,4 @@ let minUmd = {

// Return Array of Configurations
// eslint-disable-next-line no-undef
export default [umd, minUmd];
module.exports = [umd, minUmd];

0 comments on commit faa6e7b

Please sign in to comment.