Skip to content

Commit

Permalink
update tsconfig.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Sherwin H committed Oct 14, 2019
1 parent d1b7fbe commit f460c55
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
7 changes: 0 additions & 7 deletions dist/imgix-core-js.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
// Type definitions for imgix-core-js.js

// export as namespace ImgixClient;

/*~ This declaration specifies that the class constructor function
*~ is the exported object from the file
*/

/*~ Write your module's methods and properties in this class */
declare class ImgixClient {
domain: string;
useHTTPS: boolean;
Expand Down
2 changes: 2 additions & 0 deletions dist/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// "allowJs": true,
"target": "es2015",
"module": "umd",
"allowJs": true,
"checkJs": true,
// types option has been previously configured
"types": [
// add node as an option
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"repository": "https://github.com/imgix/imgix-core-js",
"scripts": {
"assert_version": "node assert_version.js",
"compile": "mkdir -p dist && uglifyjs ./src/imgix-core-js.js -o ./dist/imgix-core-js.min.js && tsc -p dist",
"compile": "mkdir -p dist && uglifyjs ./src/imgix-core-js.js -o ./dist/imgix-core-js.min.js && tsc",
"prepublish": "npm run compile && npm run assert_version",
"test": "mocha"
},
Expand Down
16 changes: 16 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"compilerOptions": {
"outDir": "../dist",
"target": "es2015",
"module": "umd",
"allowJs": true,
"checkJs": true,
"types": [
"node"
]
}
,
"files": [
"dist/imgix-core-js.d.ts"
]
}

0 comments on commit f460c55

Please sign in to comment.