Skip to content

Commit

Permalink
fix: remove winston logger dependency to enable serverless environmen…
Browse files Browse the repository at this point in the history
…ts (#112)

* fix: remove winston logger dependency to enable serverless environments

* chore: package for both cjs and esm
  • Loading branch information
bardisg authored Jul 31, 2023
1 parent be30070 commit 3619247
Show file tree
Hide file tree
Showing 9 changed files with 2,323 additions and 1,508 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ jobs:
HUSKY: 0
run: |
npm ci
npm run build
npm run package
- name: Publish package to NPM
env:
HUSKY: 0
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
cd lib
cd dist
npm publish
- name: Get new version number
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ coverage
.nyc_output
coverage.lcov
lib
dist/
examples/**/package-lock.json
.idea/
.DS_Store
Expand Down
4 changes: 2 additions & 2 deletions test.js → __tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import delay from 'delay';
import auth from 'basic-auth';
import pify from 'pify';
import test from 'ava';
import Analytics from './index';
import { version } from './package.json';
import Analytics from '../src/index';
import { version } from '../package.json';

const noop = () => {};

Expand Down
Loading

0 comments on commit 3619247

Please sign in to comment.