Skip to content

Commit

Permalink
fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy committed Jun 24, 2024
1 parent a6b5fa5 commit 4b2a084
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
node_modules
dist
build
coverage
custom-elements.json

Expand Down
5 changes: 0 additions & 5 deletions examples/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ const __dirname = fileURLToPath(new URL('.', import.meta.url));

export default defineConfig({
root: 'examples',
resolve: {
alias: {
'@carto/api-client': resolve(__dirname, '../'),
},
},
plugins: [
vue({
template: {
Expand Down
19 changes: 12 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"type": "module",
"sideEffects": false,
"source": "src/index.ts",
"types": "./dist/index.d.ts",
"main": "./dist/api-client.cjs",
"module": "./dist/api-client.modern.js",
"types": "./build/index.d.ts",
"main": "./build/api-client.cjs",
"module": "./build/api-client.modern.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/api-client.cjs",
"default": "./dist/api-client.modern.js"
"types": "./build/index.d.ts",
"require": "./build/api-client.cjs",
"default": "./build/api-client.modern.js"
}
},
"browserslist": [
Expand All @@ -31,8 +31,13 @@
"coverage": "vitest run --coverage",
"lint": "prettier \"**/*.{cjs,html,js,json,md,ts}\" --ignore-path ./.eslintignore --check",
"format": "prettier \"**/*.{cjs,html,js,json,md,ts}\" --ignore-path ./.eslintignore --write",
"clean": "rimraf dist/*"
"clean": "rimraf build/*"
},
"files": [
"build",
"src",
"README.md"
],
"devDependencies": {
"@deck.gl/aggregation-layers": "^9.0.14",
"@deck.gl/carto": "^9.0.14",
Expand Down
2 changes: 1 addition & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default defineConfig({
test: {
coverage: {
provider: 'istanbul',
include: ['src/**/*.ts'],
include: ['src/**/*.ts', 'build/**/*'],
},
},
});

0 comments on commit 4b2a084

Please sign in to comment.