feat(gen): add option to not add to index

Allow skipping of adding script to index file with default being to add