Skip to content

Fix hooks execution when using CLI as lib and fix package.json #2618

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

Merged
merged 1 commit into from
Mar 17, 2017

Conversation

rosen-vladimirov
Copy link
Contributor

When NS CLI is used as library, project hooks are not executed as hooksService gets the project dir from $options or current working dir.
Fix this by getting the projectDir from the hookArgs object. The object is constructed from method parameters. We check if there's projectDir or projectData.projectDir arg.
Also fix the caching of hooks - each time when we try to execute them, we'll search the directories for hooks. This is required for long living process.

Additionally use semver's package definitions from @types repo.
Rename two .d.ts files which were incorrectly set as .ts.

Add zipstream package - it's used in $fs.zipFiles method, but somehow it's missing from this package.json, so trying to use the mentioned method fails

@rosen-vladimirov rosen-vladimirov self-assigned this Mar 16, 2017
@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/prepare-for-cloud-builds branch from 84b85d7 to d6696a1 Compare March 17, 2017 08:51
@rosen-vladimirov
Copy link
Contributor Author

run ci

When NS CLI is used as library, project hooks are not executed as hooksService gets the project dir from `$options` or current working dir.
Fix this by getting the projectDir from the hookArgs object. The object is constructed from method parameters. We check if there's `projectDir` or `projectData.projectDir` arg.
Also fix the caching of hooks - each time when we try to execute them, we'll search the directories for hooks. This is required for long living process.

Additionally use semver's package definitions from `@types` repo.
Rename two `.d.ts` files which were incorrectly set as `.ts`.
@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/prepare-for-cloud-builds branch from d6696a1 to f5e6af4 Compare March 17, 2017 09:46
@rosen-vladimirov rosen-vladimirov merged commit f45ac04 into master Mar 17, 2017
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/prepare-for-cloud-builds branch March 17, 2017 10:20
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.

2 participants