A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/TypeStrong/tsify/issues/200 below:

Detect fs case sensitivity based on it's real behavior · Issue #200 · TypeStrong/tsify · GitHub

In lib/Host.js there is such line (134):

    Host.prototype.useCaseSensitiveFileNames = function () {
        var platform = os.platform();
        return platform !== 'win32' && platform !== 'win64' && platform !== 'darwin';
    };

It detects case-sensitivity based on platform name, which is considered a bad practice.

I am working on Mac OS system with case-sensitive file system, so the following code

    Host.prototype.getCanonicalFileName = function (filename) {
        return ts.normalizeSlashes(ts.sys.useCaseSensitiveFileNames ? filename : filename.toLowerCase());
    };

breaks my paths.

I also created similar issue in TypeScript project.

llCorvinSll, ivan-bausov and denisvidyakin


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4