Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

Commit

Permalink
add tsconfig, remove unnecesary scripts, refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
aelbore committed Jan 14, 2020
1 parent ca0e641 commit 724354d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -25,7 +24,7 @@
"rollup"
],
"author": "Arjay Elbore",
"license": "ISC",
"license": "MIT",
"bugs": {
"url": "https://github.com/aelbore/aria-build/issues"
},
Expand Down
4 changes: 2 additions & 2 deletions src/cli-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ export function memoize(fn: any){
}
}

export async function getAriaConfig(config?: string) {
export async function getAriaConfig(config?: string): Promise<AriaConfigOptions> {
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
Expand Down
11 changes: 11 additions & 0 deletions tools/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"compilerOptions": {
"target": "es2015",
"module": "commonjs",
"lib" :[
"dom",
"es2015",
"es2017"
]
}
}

0 comments on commit 724354d

Please sign in to comment.