-node_modules/
coverage/
+dist/
+node_modules/
testEnvironment: 'node',
collectCoverage: true,
collectCoverageFrom: ['src/**/*.ts'],
+ testPathIgnorePatterns: [
+ '/node_modules/',
+ '/dist/'
+ ]
};
"name": "ustaxlib",
"version": "0.1.0",
"description": "A library for modeling individual US tax returns.",
- "main": "src/index.js",
+ "main": "dist/index.js",
+ "types": "dist/index.d.ts",
"scripts": {
"dev": "jest --watch",
"test": "jest",
"check": "tsc --noEmit",
- "debug": "node --inspect-brk --stack-trace-limit=1000 node_modules/.bin/jest --coverage=false"
+ "debug": "node --inspect-brk --stack-trace-limit=1000 node_modules/.bin/jest --coverage=false",
+ "prepublish": "tsc"
},
"author": "Robert Sesek",
"license": "ISC",
+++ /dev/null
-import helloWorld from './index';
-
-test('hello world', () => {
- expect(helloWorld()).toBe('Hello World');
-});
-export default function helloWorld(): string {
- return 'Hello World';
-}
+import Person from './Person';
+import TaxReturn from './TaxReturn';
+
+export { Person, TaxReturn };
],
"target": "es2019",
"moduleResolution": "node",
- "esModuleInterop": true
+ "esModuleInterop": true,
+ "declaration": true,
+ "outDir": "dist/"
}
}