tsc on test when typescript on
This commit is contained in:
parent
a6e607334c
commit
cd7c757daf
@ -56,8 +56,10 @@ export default class Node implements Snippet {
|
|||||||
lint: 'eslint . --ext .js,.jsx,.ts,.tsx,.vue,.mjs',
|
lint: 'eslint . --ext .js,.jsx,.ts,.tsx,.vue,.mjs',
|
||||||
test: 'nyc ava'
|
test: 'nyc ava'
|
||||||
};
|
};
|
||||||
if (use_ts)
|
if (use_ts) {
|
||||||
(obj.scripts as Record<string, unknown>).compile = 'tsc';
|
(obj.scripts as Record<string, unknown>).compile = 'tsc';
|
||||||
|
(obj.scripts as Record<string, unknown>).test = 'tsc && nyc ava';
|
||||||
|
}
|
||||||
return obj;
|
return obj;
|
||||||
}, path.join (folder, 'package.json'));
|
}, path.join (folder, 'package.json'));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user