diff --git a/package.json b/package.json index 4fcaf3f..08fb83a 100644 --- a/package.json +++ b/package.json @@ -2,16 +2,15 @@ "name": "@naturalcycles/ktlint", "scripts": { "prepare": "husky install", - "_postinstall": "node dist/install.js", + "_postinstall_disabled": "node dist/install.js", "prepublishOnly": "pinst --enable", "postpublish": "pinst --disable" }, - "dependencies": { - "got": "^11.0.0" - }, + "dependencies": {}, "devDependencies": { "@naturalcycles/dev-lib": "^12.14.2", "@types/node": "^16.11.12", + "got": "^11.0.0", "pinst": "^2.1.6" }, "files": [ diff --git a/resources/.gitignore b/resources/.gitignore deleted file mode 100644 index d5c31ab..0000000 --- a/resources/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/ktlint diff --git a/resources/.gitkeep b/resources/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/resources/ktlint b/resources/ktlint new file mode 100755 index 0000000..274adc1 Binary files /dev/null and b/resources/ktlint differ diff --git a/src/install.ts b/src/__exclude/install.ts similarity index 96% rename from src/install.ts rename to src/__exclude/install.ts index 2395f57..0961a04 100644 --- a/src/install.ts +++ b/src/__exclude/install.ts @@ -16,6 +16,7 @@ void (async () => { if (fs.existsSync(ktlintPath)) { // const {size, mode} = fs.statSync(ktlintPath) // return console.log(`ktlint exists, size: ${_hb(size)} mode ${mode}`) + // todo: check if installed version is the same! return }