diff --git a/package.json b/package.json index c19af7e..69f3448 100644 --- a/package.json +++ b/package.json @@ -7,10 +7,9 @@ "aria-build": "./bin/aria-build.js" }, "scripts": { - "files": "ts-node index.ts", "fs": "aria-fs", "build": "node ./bin/aria-build.js -d", - "bundle": "ts-node tools/bundle.ts", + "bundle": "ts-node --project ./tools/tsconfig.json ./tools/bundle.ts", "build.packages": "ts-node tools/packages.ts", "reset.packages": "sh ./reset-packages.sh", "test": "aria-mocha --check-coverage --threshold statements=90,functions=90,branches=85,lines=90", @@ -25,7 +24,7 @@ "rollup" ], "author": "Arjay Elbore", - "license": "ISC", + "license": "MIT", "bugs": { "url": "https://github.com/aelbore/aria-build/issues" }, diff --git a/src/cli-utils.ts b/src/cli-utils.ts index d2e3d11..eafe79a 100644 --- a/src/cli-utils.ts +++ b/src/cli-utils.ts @@ -78,10 +78,10 @@ export function memoize(fn: any){ } } -export async function getAriaConfig(config?: string) { +export async function getAriaConfig(config?: string): Promise { const ROLLUP_CONFIG_PATH = resolve(config ?? 'aria.config.ts') if (existsSync(ROLLUP_CONFIG_PATH)) { - const ariaConfig: AriaConfigOptions = await import(ROLLUP_CONFIG_PATH).then(c => c.default) + const ariaConfig = await import(ROLLUP_CONFIG_PATH).then(c => c.default) return ariaConfig } return null diff --git a/tools/tsconfig.json b/tools/tsconfig.json new file mode 100644 index 0000000..e023fdf --- /dev/null +++ b/tools/tsconfig.json @@ -0,0 +1,11 @@ +{ + "compilerOptions": { + "target": "es2015", + "module": "commonjs", + "lib" :[ + "dom", + "es2015", + "es2017" + ] + } +} \ No newline at end of file