Skip to content

Commit

Permalink
Add an index file that reexport everything (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuhdev authored Apr 24, 2024
1 parent c2a84e6 commit 63ef899
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"/dist/*.js"
],
"scripts": {
"build_demo": "npm run compile && vite build",
"clean": "rimraf dist/",
"dev": "vite",
"build": "npm run compile && vite build",
"compile": "tsc --build . src/lib src/test src/demo",
"coverage": "vitest run --coverage --typecheck",
"doc": "npm run compile && typedoc && replace-in-files --string '=\"assets/' --replacement '=\"/assets/' docs/404.html",
Expand Down
19 changes: 19 additions & 0 deletions src/lib/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/** @license Apache-2.0
*
* Copyright 2024 8 Hobbies, LLC <[email protected]>
*
* Licensed under the Apache License, Version 2.0(the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export * from "./AutoNumericComponent";
export * from "./AutoNumericInput";
2 changes: 1 addition & 1 deletion src/test/AutoNumericInput.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import { render, screen } from "@testing-library/react";
import AutoNumeric from "autonumeric";
import { AutoNumericInput } from "../lib/AutoNumericInput";
import { AutoNumericInput } from "../lib/index";
import { useState } from "react";
import { userEvent } from "@testing-library/user-event";

Expand Down

0 comments on commit 63ef899

Please sign in to comment.