Skip to content

Commit

Permalink
refactor: small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nikkeyl committed Aug 5, 2024
1 parent 63ba1ce commit 0346020
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# directories
# Directories
node_modules
8 changes: 4 additions & 4 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# directories
# Directories
.husky

# files
# Files
*.md
pnpm-lock.yaml

Expand All @@ -10,11 +10,11 @@ pnpm-lock.yaml
.ecrc
.npmrc

# configs
# Configs
.editorconfig
.gitattributes

# ignores
# Ignores
.gitignore
.prettierignore
.remarkignore
1 change: 1 addition & 0 deletions .remarkignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# Files
CHANGELOG.md
16 changes: 10 additions & 6 deletions rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,21 @@ import typescript from '@rollup/plugin-typescript';

const sourceFolder = 'src';
const typesFolder = `${sourceFolder}/types`;

const fileName = 'index';
const indexFile = `${fileName}.ts`;
const declarationFile = `${fileName}.d.ts`;
const indexFile = `${sourceFolder}/${fileName}.ts`;
const outputFile = `${fileName}.js`;

const fileFormat = 'es';

export default defineConfig([
{
plugins: [typescript(), minify()],
input: indexFile,
input: `${sourceFolder}/${indexFile}`,
output: {
file: `${fileName}.js`,
format: 'es',
file: outputFile,
format: fileFormat,
},
},
{
Expand All @@ -35,10 +39,10 @@ export default defineConfig([
}),
dts(),
],
input: indexFile,
input: `${sourceFolder}/${indexFile}`,
output: {
file: declarationFile,
format: 'es',
format: fileFormat,
},
},
]);
1 change: 0 additions & 1 deletion tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"allowImportingTsExtensions": true,
"composite": true,
"emitDeclarationOnly": true,
"forceConsistentCasingInFileNames": true,
"lib": ["ESNext"],
"module": "NodeNext",
"moduleResolution": "NodeNext",
Expand Down

0 comments on commit 0346020

Please sign in to comment.