Skip to content

Commit

Permalink
Merge pull request #25 from route06/fix-issue-08
Browse files Browse the repository at this point in the history
Resolve runtime error due to fails in loading ESmodules
  • Loading branch information
Rindrics authored Jun 19, 2024
2 parents fdff859 + aae0c9d commit c9a9cbe
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,14 @@ jobs:
node-version-file: '.node-version'
cache: 'pnpm'

- name: Install dependencies
run: make install
- name: Install dependencies & build application
run: make

- name: Lint & format
run: make lint

- name: Run tests
run: make test

- name: Confirm no error
run: make version
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ lint:

format:
pnpm format

version:
pnpm exec node $(BUILD_DIR)/index.js --version
4 changes: 2 additions & 2 deletions src/cost.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import AWS from 'aws-sdk';
import dayjs from 'dayjs';
import isSameOrAfter from 'dayjs/plugin/isSameOrAfter';
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore';
import isSameOrAfter from 'dayjs/plugin/isSameOrAfter.js';
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore.js';
dayjs.extend(isSameOrAfter);
dayjs.extend(isSameOrBefore);
import { AWSConfig } from './config';
Expand Down

0 comments on commit c9a9cbe

Please sign in to comment.