From a7fcaa55fd811120bcae4ae2467617d36a0e6f3c Mon Sep 17 00:00:00 2001 From: molvqingtai Date: Tue, 12 Mar 2024 21:48:09 +0800 Subject: [PATCH] fix: fix dist output path --- src/index.ts | 34 ++-------------------------------- tsconfig.json | 3 +-- 2 files changed, 3 insertions(+), 34 deletions(-) diff --git a/src/index.ts b/src/index.ts index 3c1bf37..eb57340 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,32 +1,2 @@ -import { - queryBySelector, - queryAllBySelector, - getBySelector, - getAllBySelector, - findAllBySelector, - findBySelector -} from './queries/bySelector' - -import { - queryByAttribute, - queryAllByAttribute, - getByAttribute, - getAllByAttribute, - findAllByAttribute, - findByAttribute -} from './queries/byAttribute' - -export { - queryBySelector, - queryAllBySelector, - getBySelector, - getAllBySelector, - findAllBySelector, - findBySelector, - queryByAttribute, - queryAllByAttribute, - getByAttribute, - getAllByAttribute, - findAllByAttribute, - findByAttribute -} +export * from './queries/bySelector' +export * from './queries/byAttribute' diff --git a/tsconfig.json b/tsconfig.json index c0bfa0b..399452b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,14 +2,13 @@ "compilerOptions": { /* Basic Options */ "baseUrl": ".", - "rootDir": "src", + "rootDir": ".", "target": "ESNEXT" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */, "module": "ESNext" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */, "lib": ["ESNext", "Dom", "Dom.Iterable"] /* Specify library files to be included in the compilation. */, "outDir": "dist" /* Redirect output structure to the directory. */, "sourceMap": true, "declaration": true /* Generates corresponding '.d.ts' file. */, - "declarationDir": "dist/types", /* Strict Type-Checking Options */ "strict": true /* Enable all strict type-checking options. */, "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,