From 9264bc62b3d73fe339d734a2b19bd8aa49c21673 Mon Sep 17 00:00:00 2001 From: Alex Oskotsky Date: Fri, 15 May 2020 01:06:16 -0400 Subject: [PATCH] move code to the src directory I think this makes it easier to maintain and is more consistent with other typescript projects --- DomainConfig.ts => src/DomainConfig.ts | 0 DomainInfo.ts => src/DomainInfo.ts | 0 Globals.ts => src/Globals.ts | 0 index.ts => src/index.ts | 0 types.ts => src/types.ts | 0 test/unit-tests/index.test.ts | 8 ++++---- tsconfig.json | 8 ++------ tsconfig.tests.json | 4 +--- 8 files changed, 7 insertions(+), 13 deletions(-) rename DomainConfig.ts => src/DomainConfig.ts (100%) rename DomainInfo.ts => src/DomainInfo.ts (100%) rename Globals.ts => src/Globals.ts (100%) rename index.ts => src/index.ts (100%) rename types.ts => src/types.ts (100%) diff --git a/DomainConfig.ts b/src/DomainConfig.ts similarity index 100% rename from DomainConfig.ts rename to src/DomainConfig.ts diff --git a/DomainInfo.ts b/src/DomainInfo.ts similarity index 100% rename from DomainInfo.ts rename to src/DomainInfo.ts diff --git a/Globals.ts b/src/Globals.ts similarity index 100% rename from Globals.ts rename to src/Globals.ts diff --git a/index.ts b/src/index.ts similarity index 100% rename from index.ts rename to src/index.ts diff --git a/types.ts b/src/types.ts similarity index 100% rename from types.ts rename to src/types.ts diff --git a/test/unit-tests/index.test.ts b/test/unit-tests/index.test.ts index 72c372d7..75dc2bca 100644 --- a/test/unit-tests/index.test.ts +++ b/test/unit-tests/index.test.ts @@ -3,10 +3,10 @@ import * as AWS from "aws-sdk-mock"; import chai = require("chai"); import spies = require("chai-spies"); import "mocha"; -import DomainConfig = require("../../DomainConfig"); -import DomainInfo = require("../../DomainInfo"); -import Globals from "../../Globals"; -import ServerlessCustomDomain = require("../../index"); +import DomainConfig = require("../../src/DomainConfig"); +import DomainInfo = require("../../src/DomainInfo"); +import Globals from "../../src/Globals"; +import ServerlessCustomDomain = require("../../src/index"); const expect = chai.expect; chai.use(spies); diff --git a/tsconfig.json b/tsconfig.json index c07f20b8..10e94eea 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,17 +2,13 @@ "compilerOptions": { "module": "commonjs", "moduleResolution": "node", - "rootDir": ".", + "rootDir": "src", "target": "es6", "sourceMap": false, "outDir": "dist", "types": ["node"] }, "include": [ - "**/*.ts" - ], - "exclude": [ - "node_modules", - "test" + "src/**/*.ts" ] } diff --git a/tsconfig.tests.json b/tsconfig.tests.json index 962b5022..f80adfec 100644 --- a/tsconfig.tests.json +++ b/tsconfig.tests.json @@ -9,9 +9,7 @@ "types": ["mocha", "node"] }, "include": [ + "src/**/*.ts", "test/**/*.ts" - ], - "exclude": [ - "node_modules" ] }