This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
works-on-my-machine/script/build
Marc Cataford 912261443a
refactor: build context and run tests after gathering facts (#26)
* refactor: build context and run tests after gathering facts

* test: update integration test to not check for case collection

* refactor: further cleanup

* refactor: leftover log statements

* refactor: further cleaning

* refactor: no more collector
2023-04-15 21:09:04 -04:00

17 lines
294 B
Bash

#!/usr/bin/bash
yarn build:ts
# Certain files need hashbangs as they are executables.
NODE_HASHBANG="#!/usr/bin/env node"
addHashbang() {
echo $1
echo $NODE_HASHBANG > $1_prefixed
cat $1 >> $1_prefixed
mv $1_prefixed $1
}
addHashbang dist/cli.js
addHashbang dist/worker.js