Renamed entry point to index
All checks were successful
Build / Build NPM Project (push) Successful in 47s
Build / Tag Version (push) Successful in 7s

This commit is contained in:
Zakary Timson 2024-08-09 12:27:44 -04:00
parent 75160b7dbc
commit a168b03caf
2 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@ztimson/utils", "name": "@ztimson/utils",
"version": "0.14.5", "version": "0.14.6",
"description": "Utility library", "description": "Utility library",
"author": "Zak Timson", "author": "Zak Timson",
"license": "MIT", "license": "MIT",
@ -9,13 +9,13 @@
"type": "git", "type": "git",
"url": "https://git.zakscode.com/ztimson/js-utilities" "url": "https://git.zakscode.com/ztimson/js-utilities"
}, },
"main": "./dist/utils.cjs", "main": "./dist/index.cjs",
"module": "./dist/utils.mjs", "module": "./dist/index.mjs",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"exports": { "exports": {
".": { ".": {
"import": "./dist/utils.mjs", "import": "./dist/index.mjs",
"require": "./dist/utils.cjs", "require": "./dist/index.cjs",
"types": "./dist/index.d.ts" "types": "./dist/index.d.ts"
} }
}, },

View File

@ -8,8 +8,8 @@ export default defineConfig({
entry: resolve(process.cwd(), 'src/index.ts'), entry: resolve(process.cwd(), 'src/index.ts'),
name: 'utils', name: 'utils',
fileName: (module, entryName) => { fileName: (module, entryName) => {
if(module == 'es') return 'utils.mjs'; if(module == 'es') return 'index.mjs';
if(module == 'umd') return 'utils.cjs'; if(module == 'umd') return 'index.cjs';
} }
}, },
emptyOutDir: true, emptyOutDir: true,