Skip to content

Commit

Permalink
config cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Egge21M committed Dec 19, 2024
1 parent 9de32d5 commit 7cf480f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 22 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@cashu/cashu-ts",
"version": "2.1.0",
"description": "cashu library for communicating with a cashu mint",
"type": "module",
"main": "lib/cashu-ts.cjs.js",
"module": "lib/cashu-ts.es.js",
"types": "lib/types/index.d.ts",
Expand All @@ -13,7 +14,7 @@
"url": "https://github.com/cashubtc/cashu-ts/issues"
},
"scripts": {
"compile": "rm -rf lib && vite build && BUILD_FORMAT=iife vite build",
"compile": "vite build && BUILD_FORMAT=iife vite build",
"test": "vitest run --coverage --exclude ./test/integration.test.ts",
"test-integration": "vitest run ./test/integration.test.ts --coverage",
"dev": "tsc --watch",
Expand Down
13 changes: 0 additions & 13 deletions tsconfig.es5.json

This file was deleted.

7 changes: 3 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"compilerOptions": {
"module": "ES2020",
"module": "ESNext",
"target": "ES2020",
"lib": ["ES2020", "DOM"],
"declaration": true,
"emitDeclarationOnly": true,
"outDir": "lib/types",
"moduleResolution": "nodenext",
"moduleResolution": "bundler",
"strict": true,
"sourceMap": true,
"esModuleInterop": true
"sourceMap": true
},
"include": ["src/**/*"]
}
5 changes: 1 addition & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { resolve } from 'path';
import { defineConfig } from 'vite';
import pkg from './package.json';
import dts from 'vite-plugin-dts';
import { nodeResolve } from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';

const config =
process.env.BUILD_FORMAT === 'iife'
Expand All @@ -24,7 +21,7 @@ const config =
})
: defineConfig({
build: {
emptyOutDir: false,
emptyOutDir: true,
outDir: 'lib',
target: 'es2020',
lib: {
Expand Down

0 comments on commit 7cf480f

Please sign in to comment.