Skip to content

Commit

Permalink
Use .ts for pinefile
Browse files Browse the repository at this point in the history
  • Loading branch information
frozzare committed Mar 8, 2023
1 parent 5784d9c commit a63aab1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules
*.log
/index.js
yarn.lock
/main.ts
4 changes: 2 additions & 2 deletions pinefile.js → pinefile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ export default {
log.info('Building esm');
await build(buildOptions('esm'));
},
test: async () => {
test: async (args) => {
const files = isCI ? ['./dist/cjs', './dist/esm'] : ['./src'];

await series(
files.map((file) => async () => {
log.info(`Running tests with ${file}\n`);
await run(`FILE=${file} vitest`);
await run(`FILE=${file} vitest ${args._}`);
})
);
},
Expand Down

0 comments on commit a63aab1

Please sign in to comment.