Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: small changes #107

Merged
merged 2 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"devDependencies": {
"@archoleat/commitlint-define-config": "^1.0.7",
"@archoleat/eslint-flat-compatibility": "^1.1.6",
"@archoleat/semantic-release-define-config": "^1.1.10",
"@archoleat/semantic-release-define-config": "^1.1.11",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@commitlint/types": "^19.0.3",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

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

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
Loading