fixed name
This commit is contained in:
parent
c1af19d441
commit
089b89b578
14
package.json
14
package.json
@ -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": [
|
||||
|
@ -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';
|
||||
}
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user