Skip to content

Commit

Permalink
fix: use ts-node to execute bin/dev.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Oct 25, 2023
1 parent 489aa32 commit a115626
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utils/sf-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const resolveConfig = (path, options = {}) => {
return resolvedConfigs[path];
}

const dev = options.jsBinScripts ? 'dev.js' : 'dev';
const dev = options.jsBinScripts ? 'yarn ts-node ./bin/dev.js' : './bin/dev';
const PLUGIN_DEFAULTS = {
scripts: {
...PACKAGE_DEFAULTS.scripts,
Expand All @@ -90,18 +90,18 @@ const resolveConfig = (path, options = {}) => {
wireit: {
...PACKAGE_DEFAULTS.wireit,
'test:command-reference': {
command: `"./bin/${dev}" commandreference:generate --erroronwarnings`,
command: `"${dev}" commandreference:generate --erroronwarnings`,
files: ['src/**/*.ts', 'messages/**', 'package.json'],
output: ['tmp/root'],
},
'test:deprecation-policy': {
command: `"./bin/${dev}" snapshot:compare`,
command: `"${dev}" snapshot:compare`,
files: ['src/**/*.ts'],
output: [],
dependencies: ['compile'],
},
'test:json-schema': {
command: `"./bin/${dev}" schema:compare`,
command: `"${dev}" schema:compare`,
files: ['src/**/*.ts', 'schemas'],
output: [],
},
Expand Down

0 comments on commit a115626

Please sign in to comment.