Skip to content

Commit

Permalink
Fix issue with exports
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-s-ccs committed Nov 17, 2021
1 parent 05313bf commit f3fc48e
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 17 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
"/dist"
],
"scripts": {
"build": "rm -rf ./dist/ && tsc",
Expand Down
14 changes: 13 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,16 @@ export { default as StaticModelValidator } from './validation/validators/staticM
export { default as CustomValidator } from './validation/validators/customValidator'
export { default as InclusionValidator } from './validation/validators/inputValidators/inclusionValidator'
export { default as NumberValidator } from './validation/validators/inputValidators/numberValidator'
export { default as StringValidator } from './validation/validators/inputValidators/stringValidator'
export { default as StringValidator } from './validation/validators/inputValidators/stringValidator'

/* Export all the types */
// Export the data types
export { ActiveDataScheme, ActiveDataSchema} from './types/data/activeDataSchema'
export { DefaultRow } from './types/data/tables'

// Export the model types
export { ModelError, ListError, Condition } from './types/models/model'

// Export validation types
export { Schema } from './types/validation/schema'
export { ValidatorOptions, StringValidatorOptions, NumberValidatorOptions, InclusionValidatorOptions, ValidatorInterface } from './types/validation/validator'
10 changes: 0 additions & 10 deletions src/types/index.d.ts

This file was deleted.

14 changes: 9 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */

/* Language and Environment */
"target": "ES2019", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
"target": "ES2019", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
// "jsx": "preserve", /* Specify what JSX code is generated. */
// "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
Expand All @@ -25,7 +25,7 @@

/* Modules */
"module": "commonjs", /* Specify what module code is generated. */
"rootDir": "./src", /* Specify the root folder within your source files. */
// "rootDir": "./", /* Specify the root folder within your source files. */
// "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
Expand All @@ -45,7 +45,7 @@
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
"sourceMap": true, /* Create source map files for emitted JavaScript files. */
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */
"outDir": "./dist", /* Specify an output folder for all emitted files. */
// "removeComments": true, /* Disable emitting comments. */
Expand Down Expand Up @@ -97,6 +97,10 @@
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
"skipLibCheck": true /* Skip type checking all .d.ts files. */
},
"include": ["src"],
"exclude": ["node_modules"]
"include": [
"src/**/*"
],
"exclude": [
"node_modules"
]
}

0 comments on commit f3fc48e

Please sign in to comment.