Environment Variables in Hooks? (App-Scripts)

Is it possible to use the environment variables from app-scripts in Hooks?

I tried the following. I added those lines to the package.json:

“config” : {
“ionic_src_dir”: “./hello”
}

And made a Hook which is doing this:

module.exports = function(){
console.log(process.env);
}

But it doesn’t show me the ionic source directory as env variable. Is this even possible? When i build the directory is accepted as build because it shows me an immediate error that there are files missing the the hello directory.