Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix husky path in semantic-release-prepare script #266

Merged
merged 1 commit into from Jan 29, 2019
Merged

Fix husky path in semantic-release-prepare script #266

merged 1 commit into from Jan 29, 2019

Conversation

YannickMeeus
Copy link
Contributor

As of Husky 1.x, the node_modules directory structure changed somewhat. The semantic-release-prepare script did not take this into account and, as a result of this, could not run to completion.

Addresses #251

As of Husky 1.x, the node_modules directory structure changed somewhat. The semantic-release-prepare script did not take this into account and, as a result of this, could not run to completion. Addresses #251
DrSensor added a commit to DrSensor/rollup-plugin-xs that referenced this pull request Jan 19, 2019
Extra step:
- `semantic-release-cli setup`
- apply patch: alexjoverm/typescript-library-starter#266
- `npx husky-upgrade`
@DrSensor
Copy link

DrSensor commented Jan 19, 2019

I've just try this patch and when committing change:

$ git commit -S

Warning: Setting pre-commit script in package.json > scripts will be deprecated
Please move it to husky.hooks in package.json, a .huskyrc file, or a husky.config.js file
Or run ./node_modules/.bin/husky-upgrade for automatic update

See https://github.com/typicode/husky for usage

husky > pre-commit (node v10.14.1)
  ↓ Stashing changes... [skipped]
    → No partially staged files found...
  ✔ Running linters...

Warning: Setting commit-msg script in package.json > scripts will be deprecated
Please move it to husky.hooks in package.json, a .huskyrc file, or a husky.config.js file
Or run ./node_modules/.bin/husky-upgrade for automatic update

See https://github.com/typicode/husky for usage

husky > commit-msg (node v10.14.1)
/home/wildan/Projects/OSS/rollup-plugin-xs/node_modules/@commitlint/cli/lib/cli.js:113
        throw err;
        ^

Error: Recieved 'GIT_PARAMS' as value for -E | --env, but environment variable 'GIT_PARAMS' is not available globally
    at getEditValue (/home/wildan/Projects/OSS/rollup-plugin-xs/node_modules/@commitlint/cli/lib/cli.js:239:10)
    at normalizeFlags (/home/wildan/Projects/OSS/rollup-plugin-xs/node_modules/@commitlint/cli/lib/cli.js:232:15)
    at /home/wildan/Projects/OSS/rollup-plugin-xs/node_modules/@commitlint/cli/lib/cli.js:120:11
    at new Promise (<anonymous>)
    at main (/home/wildan/Projects/OSS/rollup-plugin-xs/node_modules/@commitlint/cli/lib/cli.js:117:9)
    at Object.<anonymous> (/home/wildan/Projects/OSS/rollup-plugin-xs/node_modules/@commitlint/cli/lib/cli.js:109:1)
    at Module._compile (internal/modules/cjs/loader.js:688:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
    at Module.load (internal/modules/cjs/loader.js:598:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
husky > commit-msg hook failed (add --no-verify to bypass)

However, npx husky-upgrade should fix that 🙂
cc: @alexjoverm

@alexjoverm alexjoverm merged commit d75d448 into alexjoverm:master Jan 29, 2019
@YannickMeeus YannickMeeus deleted the fix-semantix-release-husky-setup branch January 30, 2019 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants