-
-
Notifications
You must be signed in to change notification settings - Fork 194
Closed
Labels
Milestone
Description
Environment
Provide version numbers for the following components (information can be retrieved by running tns info
in your project folder or by inspecting the package.json
of the project):
- CLI: next
- Cross-platform modules:
- Android Runtime:
- iOS Runtime:
- Plugin(s):
Describe the bug
To Reproduce
- Create new application
- Create
hooks
directory if no such - Create
after-prepare
directory under hooks directory if no such - Create
hook1.js
,hook2.js
andhook3.js
insideafter-prepare
directory
hook1.js
module.exports = function() {
console.log("=================== HOOK1 ================ ");
}
hook2.js
module.exports = function ($platformsData) {
console.log("=================== HOOK2 =================== ");
}
hook3.js
module.exports = function() {
console.log("=================== HOOK3 ================ ");
}
- Execute
tns prepare ios
Actual behavior
You'll see the following output:
=================== HOOK1 ================
after-prepare will NOT be executed because it has invalid arguments - $platformsData.
Expected behavior
You should see the following output:
=================== HOOK1 ================
after-prepare will NOT be executed because it has invalid arguments - $platformsData.
=================== HOOK3 ================