-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
596 additions
and
20 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,15 +2,27 @@ | |
"name": "speaking-url-ts", | ||
"version": "0.0.0", | ||
"description": "An opinionated TS Lib Starter", | ||
"main": "src/index.ts", | ||
"author": { | ||
"name": "Kudakwashe Mupeni", | ||
"email": "[email protected]" | ||
}, | ||
"license": "MIT", | ||
"private": false, | ||
"source": "./src/index.ts", | ||
"main": "./dist/index.cjs", | ||
"module": "./dist/index.js", | ||
"typings": "./dist/index.d.ts", | ||
"type": "module", | ||
"types": "src/index.d.ts", | ||
"files": [ | ||
"dist" | ||
], | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.cjs", | ||
"types": "./dist/types.d.ts" | ||
} | ||
}, | ||
"scripts": { | ||
"release": "changeset publish", | ||
"test": "vitest", | ||
|
@@ -26,6 +38,7 @@ | |
"@types/node": "22.2.0", | ||
"typescript": "5.5.4", | ||
"vite": "5.4.0", | ||
"vite-plugin-dts": "4.0.3", | ||
"vitest": "2.0.5" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/// <reference types="vitest" /> | ||
import { resolve } from 'path' | ||
import { defineConfig } from 'vite' | ||
import dts from 'vite-plugin-dts' | ||
|
||
export default defineConfig({ | ||
test: { | ||
globals: true | ||
}, | ||
build: { | ||
sourcemap: true, | ||
outDir: './dist', | ||
lib: { | ||
entry: { | ||
index: resolve(__dirname, 'src/index.ts') | ||
}, | ||
formats: ['cjs', 'es'] | ||
} | ||
}, | ||
plugins: [ | ||
dts({ | ||
entryRoot: 'src', | ||
exclude: ['**/tests/**'] | ||
}) | ||
] | ||
}) |
Oops, something went wrong.