Skip to content

Commit

Permalink
move code to the src directory
Browse files Browse the repository at this point in the history
I think this makes it easier to maintain and is more consistent with other typescript projects
  • Loading branch information
aoskotsky-amplify committed May 15, 2020
1 parent 8dfa46a commit 9264bc6
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 13 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions test/unit-tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
8 changes: 2 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
4 changes: 1 addition & 3 deletions tsconfig.tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
"types": ["mocha", "node"]
},
"include": [
"src/**/*.ts",
"test/**/*.ts"
],
"exclude": [
"node_modules"
]
}

0 comments on commit 9264bc6

Please sign in to comment.