Removed vite, we dont need it
Some checks failed
Publish Library / Build NPM Project (push) Successful in 11s
Publish Library / Publish CDN & Docs (push) Failing after 5s
Publish Library / Tag Version (push) Successful in 7s

This commit is contained in:
2025-12-27 14:45:58 -05:00
parent 60aef4cc01
commit 8ea2b560a5
4 changed files with 72 additions and 2341 deletions

2367
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -10,27 +10,24 @@
"type": "git", "type": "git",
"url": "git.zakscode.com:ztimson/node-utils" "url": "git.zakscode.com:ztimson/node-utils"
}, },
"main": "./dist/index.cjs", "type": "module",
"module": "./dist/index.mjs", "main": "./dist/index.js",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"exports": { "exports": {
".": { ".": {
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"import": "./dist/index.mjs", "import": "./dist/index.js"
"require": "./dist/index.cjs"
} }
}, },
"scripts": { "scripts": {
"build": "npx tsc && npx vite build", "build": "tsc",
"docs": "typedoc --cleanOutputDir false --out ./docs --entryPoints src/**/*.ts --readme none", "docs": "typedoc --cleanOutputDir false --out ./docs --entryPoints src/**/*.ts --readme none",
"watch": "npx vite build --watch" "watch": "tsc --watch"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^24.0.0", "@types/node": "^24.0.0",
"typedoc": "^0.28.5", "typedoc": "^0.28.5",
"typescript": "^5.8.3", "typescript": "^5.8.3"
"vite": "^6.3.5",
"vite-plugin-dts": "^4.5.4"
}, },
"files": [ "files": [
"dist" "dist"

View File

@@ -3,18 +3,15 @@
"compilerOptions": { "compilerOptions": {
"target": "ESNext", "target": "ESNext",
"useDefineForClassFields": true, "useDefineForClassFields": true,
"module": "NodeNext", "module": "ESNext",
"lib": ["ESNext"], "lib": ["ESNext"],
"skipLibCheck": true, "skipLibCheck": true,
"moduleResolution": "Bundler",
/* Bundler mode */
"moduleResolution": "NodeNext",
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,
"declaration": true, "declaration": true,
"noEmit": true, "outDir": "./dist",
"rootDir": "./src",
/* Linting */
"strict": true "strict": true
} }
} }

View File

@@ -1,20 +0,0 @@
import {resolve} from 'path';
import {defineConfig} from 'vite';
import dts from 'vite-plugin-dts';
export default defineConfig({
build: {
lib: {
entry: resolve(process.cwd(), 'src/index.ts'),
name: 'node-utils',
fileName: (format: string) => format === 'es' ? 'index.mjs' : 'index.cjs'
},
rollupOptions: {
external: (id) => !id.startsWith('.') && !id.startsWith('/')
},
emptyOutDir: true,
minify: false,
sourcemap: true
},
plugins: [dts()],
});