diff --git a/is-path-cwd/index.d.ts b/is-path-cwd/index.d.ts new file mode 100644 index 0000000000..c00b20dae8 --- /dev/null +++ b/is-path-cwd/index.d.ts @@ -0,0 +1,7 @@ +// Type definitions for is-path-cwd 1.0 +// Project: https://github.com/sindresorhus/is-path-cwd +// Definitions by: Daniel Rosenwasser +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare function isPathCwd(path: string): boolean; +export = isPathCwd; \ No newline at end of file diff --git a/is-path-cwd/is-path-cwd-tests.ts b/is-path-cwd/is-path-cwd-tests.ts new file mode 100644 index 0000000000..80398a23cd --- /dev/null +++ b/is-path-cwd/is-path-cwd-tests.ts @@ -0,0 +1,3 @@ +import isPathCwd = require("is-path-cwd"); + +isPathCwd("unicorn"); \ No newline at end of file diff --git a/is-path-cwd/tsconfig.json b/is-path-cwd/tsconfig.json new file mode 100644 index 0000000000..87e27d8478 --- /dev/null +++ b/is-path-cwd/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "is-path-cwd-tests.ts" + ] +} diff --git a/is-path-cwd/tslint.json b/is-path-cwd/tslint.json new file mode 100644 index 0000000000..377cc837d4 --- /dev/null +++ b/is-path-cwd/tslint.json @@ -0,0 +1 @@ +{ "extends": "../tslint.json" }