Skip to content

Commit

Permalink
Merge pull request #634 from kamiazya/organize-settings
Browse files Browse the repository at this point in the history
organize settings
  • Loading branch information
kamiazya authored Jul 16, 2022
2 parents 7d70273 + 799bcf4 commit 8278caa
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
8 changes: 6 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
.all-contributorsrc
.bettercodehub.yml
.editorconfig
.eslintignore
.eslintrc.json
.github
.gitignore
.prettierignore
.prettierrc.json
.vscode
CODE_OF_CONDUCT.md
config
jest.config.js
CONTRIBUTING.md
jest.config.json
rollup.config.ts
src
test
tsconfig.json
tslint.json
yarn.lock
4 changes: 0 additions & 4 deletions jest.config.js

This file was deleted.

4 changes: 4 additions & 0 deletions jest.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"preset": "ts-jest",
"testEnvironment": "node"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"scripts": {
"format": "eslint -c .eslintrc.json --ext ts src --fix && prettier --write './**/*.ts'",
"lint": "eslint -c .eslintrc.json --ext ts src && prettier --check './**/*.ts'",
"build": "rollup -c && prettier --write ./dist/*",
"build": "rollup --config rollup.config.ts --configPlugin rollup-plugin-typescript2 && prettier --write ./dist/*",
"test": "jest",
"example": "yarn --cwd example"
},
Expand Down
9 changes: 3 additions & 6 deletions rollup.config.js → rollup.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { RollupOptions } from 'rollup';
import typescript from 'rollup-plugin-typescript2';

/** @type {import('rollup').RollupOptions} */
const options = {
const options: RollupOptions = {
input: './src/index.ts',
plugins: [typescript()],
output: [
Expand All @@ -14,10 +14,7 @@ const options = {
file: './dist/index.mjs',
},
],
external: [
'html-escaper',
'typedoc',
],
external: ['html-escaper', 'typedoc'],
};

export default options;

0 comments on commit 8278caa

Please sign in to comment.