Skip to content

Commit

Permalink
configs simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
NazmusSayad committed Sep 15, 2024
1 parent 4dd9090 commit a363319
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "npmize",
"description": "Let's create an npm package without worrying about anything.",
"version": "1.0.13",
"version": "1.0.14",
"bin": "./dist/index.js",
"scripts": {
"dev": "tsc -w",
Expand Down
12 changes: 0 additions & 12 deletions src/program/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,8 @@ export default function (basePath: string, options: InitOptions) {

delete data.main
delete data.module
delete data.exports

data.main = './dist/index.cjs'
data.module = './dist/index.mjs'
data.exports = {
'.': {
require: './dist/index.cjs',
import: './dist/index.mjs',
},
}

packageJSON.write(basePath, data)
} else {
Expand All @@ -57,11 +49,7 @@ export default function (basePath: string, options: InitOptions) {
skipLibCheck: true,

declaration: true,
inlineSourceMap: false,

strict: true,
pretty: true,
removeComments: true,

paths: {
'@/*': ['./*'],
Expand Down

0 comments on commit a363319

Please sign in to comment.