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

View File

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