Skip to content

Commit

Permalink
chore: code styles
Browse files Browse the repository at this point in the history
  • Loading branch information
KnowsCount committed Feb 9, 2022
1 parent 3aca87f commit 8ca8598
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
declare module 'rollup-plugin-peer-deps-external'
declare module 'rollup-plugin-peer-deps-external'
28 changes: 14 additions & 14 deletions rollup.config.ts
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
import resolve from "@rollup/plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";
import typescript from "@rollup/plugin-typescript";
import postcss from "rollup-plugin-postcss";
import dts from "rollup-plugin-dts";
import resolve from '@rollup/plugin-node-resolve'
import commonjs from '@rollup/plugin-commonjs'
import typescript from '@rollup/plugin-typescript'
import postcss from 'rollup-plugin-postcss'
import dts from 'rollup-plugin-dts'

const packageJson = require("./package.json");
const packageJson = require('./package.json')

export default [
{
input: "src/index.ts",
{
input: 'src/index.ts',
output: [
{
file: packageJson.main,
format: "cjs",
format: 'cjs',
sourcemap: true,
},
{
file: packageJson.module,
format: "esm",
format: 'esm',
sourcemap: true,
},
],
plugins: [
resolve(),
commonjs(),
typescript({ tsconfig: "./tsconfig.json" }),
typescript({ tsconfig: './tsconfig.json' }),
postcss(),
],
},
{
input: "dist/esm/types/index.d.ts",
output: [{ file: "dist/index.d.ts", format: "esm" }],
input: 'dist/esm/types/index.d.ts',
output: [{ file: 'dist/index.d.ts', format: 'esm' }],
plugins: [dts()],
external: [/\.(css|less|scss)$/],
},
];
]
8 changes: 4 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@

/* Type Checking */
"strict": true /* Enable all strict type-checking options. */,
"noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied `any` type.. */
"noImplicitAny": true /* Enable error reporting for expressions and declarations with an implied `any` type.. */,
"strictNullChecks": false /* When type checking, take into account `null` and `undefined`. */,
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
// "strictBindCallApply": true, /* Check that the arguments for `bind`, `call`, and `apply` methods match the original function. */
Expand All @@ -98,14 +98,14 @@
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
"skipLibCheck": true /* Skip type checking all .d.ts files. */,

"jsx": "react",
"jsx": "react",
"declaration": true,
"declarationDir": "types",
"sourceMap": true,
"outDir": "dist",
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"emitDeclarationOnly": true,
"emitDeclarationOnly": true
},
"include": ["src/**/*"],
"exclude": [
Expand All @@ -114,5 +114,5 @@
"storybook-static",
"src/**/*.stories.tsx",
"src/**/*.test.tsx"
]
]
}

1 comment on commit 8ca8598

@vercel
Copy link

@vercel vercel bot commented on 8ca8598 Feb 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.