add compile script to typescript
This commit is contained in:
parent
3160ccd49c
commit
5a6c874425
@ -46,6 +46,8 @@ 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)
|
||||||
|
obj.scripts.compile = 'tsc';
|
||||||
return obj;
|
return obj;
|
||||||
}, path.join (folder, 'package.json'));
|
}, path.join (folder, 'package.json'));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user