fixed name
Some checks failed
Build / Build NPM Project (push) Failing after 6s
Build / Tag Version (push) Successful in 5s
Build / Publish (push) Successful in 10s

This commit is contained in:
Zakary Timson 2024-02-07 01:34:44 -05:00
parent c1af19d441
commit 089b89b578
2 changed files with 10 additions and 10 deletions

View File

@ -1,15 +1,15 @@
{ {
"name": "@ztimson/utilities", "name": "@ztimson/js-utilities",
"version": "0.0.0", "version": "0.0.0",
"description": "Utility library", "description": "JavaScript Utility library",
"author": "Zak Timson", "author": "Zak Timson",
"license": "MIT", "license": "MIT",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://git.zakscode.com/ztimson/utlities" "url": "https://git.zakscode.com/ztimson/js-utilities"
}, },
"main": "./dist/utilities.js", "main": "./dist/js-utilities.js",
"module": "./dist/utilities.mjs", "module": "./dist/js-utilities.mjs",
"types": "./dist/src/index.d.ts", "types": "./dist/src/index.d.ts",
"scripts": { "scripts": {
"build": "vite build", "build": "vite build",
@ -23,8 +23,8 @@
}, },
"exports": { "exports": {
".": { ".": {
"import": "./dist/utilites.mjs", "import": "./dist/js-utilities.mjs",
"require": "./dist/utilities.js" "require": "./dist/js-utilities.js"
} }
}, },
"files": [ "files": [

View File

@ -6,10 +6,10 @@ export default defineConfig({
build: { build: {
lib: { lib: {
entry: resolve(process.cwd(), 'src/index.ts'), entry: resolve(process.cwd(), 'src/index.ts'),
name: 'momentum', name: 'js-utilities',
fileName: (module, entryName) => { fileName: (module, entryName) => {
if(module == 'es') return 'utilities.mjs'; if(module == 'es') return 'js-utilities.mjs';
if(module == 'umd') return 'utilities.js'; if(module == 'umd') return 'js-utilities.js';
} }
}, },
}, },