mirror of
https://github.com/frappe/books.git
synced 2024-11-14 01:14:03 +00:00
10 lines
347 B
Bash
10 lines
347 B
Bash
|
#! /usr/bin/env zsh
|
||
|
|
||
|
# basically uses electron's node to prevent
|
||
|
# mismatch in NODE_MODULE_VERSION when running
|
||
|
# better-sqlite3
|
||
|
|
||
|
export TS_NODE_COMPILER_OPTIONS='{"module":"commonjs"}'
|
||
|
export ELECTRON_RUN_AS_NODE=true
|
||
|
alias electron_node="./node_modules/.bin/electron --require ts-node/register --require tsconfig-paths/register"
|
||
|
electron_node $@
|