Skip to content

Commit

Permalink
Design and refactor the package structure (GH-14)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtyomVancyan authored Feb 28, 2023
2 parents d8aecc1 + 42ca725 commit 6469606
Show file tree
Hide file tree
Showing 11 changed files with 786 additions and 384 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "antd-phone-input",
"version": "0.0.2",
"main": "dist/antd-phone-input.cjs.js",
"module": "dist/antd-phone-input.esm.js",
"types": "dist/antd-phone-input.d.ts",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"files": [
"dist",
"LICENSE"
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {readFileSync} from "fs";

const pkg = JSON.parse(readFileSync("./package.json") as unknown as string);

const input = "src/index.ts";
const input = "src/index.tsx";
const cjsOutput = {file: pkg.main, format: "cjs", exports: "auto"};
const esmOutput = {file: pkg.module, format: "es"};
const dtsOutput = {file: pkg.types, format: "es"};
Expand Down
36 changes: 0 additions & 36 deletions src/components/PhoneNumberFormItem.tsx

This file was deleted.

94 changes: 0 additions & 94 deletions src/components/PhoneNumberInput.tsx

This file was deleted.

232 changes: 0 additions & 232 deletions src/components/validations.json

This file was deleted.

10 changes: 0 additions & 10 deletions src/index.ts

This file was deleted.

Loading

0 comments on commit 6469606

Please sign in to comment.