Skip to content

Commit

Permalink
fix: use node versus ts-node to run scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
shetzel committed Dec 8, 2023
1 parent 5c5a1b4 commit 7c37ad0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/sf-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ const resolveConfig = (path) => {

// if path is undefined/null, assume we're executing from a plugin root
const usesJsBinScripts = existsSync(join(path ?? process.cwd(), 'bin', 'dev.js'));
const dev = usesJsBinScripts ? 'ts-node "./bin/dev.js"' : '"./bin/dev"';
const loader = 'node --loader ts-node/esm --no-warnings=ExperimentalWarning';
const dev = usesJsBinScripts ? `${loader} "./bin/dev.js"` : '"./bin/dev"';
const pluginDefaults = {
scripts: {
...PACKAGE_DEFAULTS.scripts,
Expand Down

0 comments on commit 7c37ad0

Please sign in to comment.