Skip to content

Commit

Permalink
package.json & tsconfig.json improvements (#12)
Browse files Browse the repository at this point in the history
* package.json improvements & enable .d.ts files

* Enable more warnings
  • Loading branch information
ColdenCullen authored Apr 1, 2019
1 parent aa79bf7 commit c54fdd2
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 12 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aws-crt",
"version": "0.1.0",
"version": "0.1.1",
"description": "NodeJS bindings to the aws-c-* libraries",
"homepage": "https://github.com/awslabs/aws-crt-nodejs",
"repository": "github:awslabs/aws-crt-nodejs",
Expand All @@ -9,11 +9,21 @@
],
"license": "Apache-2.0",
"main": "./dist/lib/index.js",
"files": [
"s2n/",
"aws-c-common/",
"aws-c-io/",
"aws-c-mqtt/",
"aws-c-cal",
"dist/",
"source/",
"binding.gyp"
],
"gypfile": true,
"binary": {
"module_name": "aws-crt-nodejs",
"module_path": "./dist/napi-v{napi_build_version}-{configuration}",
"host": "https://aws-crt-nodejs-release.s3-us-east-1.amazonaws.com/",
"host": "https://aws-crt-nodejs-release.s3.amazonaws.com/",
"remote_path": "{name}/v{version}/{configuration}",
"package_name": "{platform}-{arch}-napi-v{napi_build_version}.tar.gz",
"napi_versions": [
Expand Down
1 change: 0 additions & 1 deletion scripts/deps_build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ async function run_and_check(command: string) {
const is_64bit = process.arch == 'x64' || process.arch == 'arm64';
const is_32bit = process.arch == 'x32' || process.arch == 'arm';

const is_arm = process.arch == 'arm' || process.arch == 'arm64';
const is_windows = process.platform == 'win32';
const is_macos = process.platform == 'darwin';

Expand Down
20 changes: 10 additions & 10 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
// "declaration": true, /* Generates corresponding '.d.ts' file. */
"declaration": true, /* Generates corresponding '.d.ts' file. */
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
"sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
Expand All @@ -22,18 +22,18 @@

/* Strict Type-Checking Options */
"strict": true, /* Enable all strict type-checking options. */
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
// "strictNullChecks": true, /* Enable strict null checks. */
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
"noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
"strictNullChecks": true, /* Enable strict null checks. */
"strictFunctionTypes": true, /* Enable strict checking of function types. */
"strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
"strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
"noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
"alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */

/* Additional Checks */
// "noUnusedLocals": true, /* Report errors on unused locals. */
"noUnusedLocals": true, /* Report errors on unused locals. */
// "noUnusedParameters": true, /* Report errors on unused parameters. */
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */

/* Module Resolution Options */
Expand Down

0 comments on commit c54fdd2

Please sign in to comment.