Skip to content

Commit 02f4b63

Browse files
authored
chore: fix two build warnings (#538)
# Description <!-- Please provide a general summary of your PR changes and link any related issues or other pull requests. --> # Testing <!-- Please provide details on how you tested this code. See below. - All pull requests must be tested (unit tests where possible with accompanying cassettes, or provide a screenshot of end-to-end testing when unit tests are not possible) - New features must get a new unit test - Bug fixes/refactors must re-record existing cassettes --> # Pull Request Type Please select the option(s) that are relevant to this PR. - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] Improvement (fixing a typo, updating readme, renaming a variable name, etc)
1 parent 7871172 commit 02f4b63

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"build": "vite build",
2727
"clean": "rm -rf ./dist ./nyc_output ./node_modules/.cache ./coverage",
2828
"coverage": "cross-env NODE_ENV=test vitest run --coverage",
29-
"docs": "./node_modules/.bin/jsdoc src/models src/services src/errors src/utils -d docs",
29+
"docs": "jsdoc src/models src/services src/errors src/utils -d docs",
3030
"format": "prettier --write .",
3131
"formatCheck": "prettier --check .",
3232
"lint": "eslint --ext .js,.ts .",

vite.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { defineConfig } from 'vite';
21
import path from 'path';
2+
import { defineConfig } from 'vite';
33

44
const mode = process.env.NODE_ENV || 'development';
55
const isDev = mode === 'development';
@@ -12,7 +12,6 @@ export default defineConfig({
1212
lib: {
1313
entry: path.resolve(__dirname, 'src/easypost.js'),
1414
fileName: 'easypost',
15-
formats: ['cjs', 'es'],
1615
},
1716
sourcemap: isDev,
1817
rollupOptions: {

0 commit comments

Comments
 (0)