diff --git a/.gitignore b/.gitignore index b512c09..867d24a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -node_modules \ No newline at end of file +.DS_Store +node_modules/ +lib/ \ No newline at end of file diff --git a/package.json b/package.json index 2459818..20e463d 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,8 @@ "main": "dist/index.js", "private": true, "scripts": { - "build": "ncc build src/main.ts", + "build": "tsc", + "pack": "ncc build", "test": "jest" } } diff --git a/tsconfig.json b/tsconfig.json index 9f5c401..80d302e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,6 +2,8 @@ "compilerOptions": { "target": "es2018", "moduleResolution": "node", + "outDir": "./lib", /* Redirect output structure to the directory. */ + "rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ "strict": true, "forceConsistentCasingInFileNames": true },