Skip to content

Commit

Permalink
chore(deps): Update dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
darkobits committed Jun 30, 2023
1 parent 73a7a50 commit e990db7
Show file tree
Hide file tree
Showing 6 changed files with 79 additions and 291 deletions.
95 changes: 46 additions & 49 deletions nr.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,66 +2,63 @@ import { nr } from '@darkobits/ts';


export default nr(({ script, command, isCI }) => {
script('test.smoke', {
group: 'Test',
description: 'Runs various tests on the built version of the project.',
run: [
[
// ----- [Smoke Tests] CJS Host Package --------------------------------
script('test.smoke', [[
// ----- [Smoke Tests] CJS Host Package --------------------------------

// Using a .ts Extension; should compile with esbuild.
command.node('smoke-test', ['test.js'], {
execaOptions: { cwd: 'smoke-tests/cjs/ts-extension' }
}),
// Using a .ts Extension; should compile with esbuild.
command.node('test.js', {
name: 'smoke-test',
cwd: 'smoke-tests/cjs/ts-extension'
}),

// Using a .mts extension; should compile with esbuild.
command.node('smoke-test', ['test.js'], {
execaOptions: { cwd: 'smoke-tests/cjs/mts-extension' }
}),
// Using a .mts extension; should compile with esbuild.
command.node('test.js', {
name: 'smoke-test',
cwd: 'smoke-tests/cjs/mts-extension'
}),

// Using an .mjs extension; should load with import().
command.node('smoke-test', ['test.js'], {
execaOptions: { cwd: 'smoke-tests/cjs/mjs-extension' }
}),
// Using an .mjs extension; should load with import().
command.node('test.js', {
name: 'smoke-test',
cwd: 'smoke-tests/cjs/mjs-extension'
}),

// Using a .js extension; should compile with esbuild, loading issues a
// node:35129 warning.
command.node('smoke-test', ['test.js'], {
execaOptions: { cwd: 'smoke-tests/cjs/js-extension' }
}),
// Using a .js extension; should compile with esbuild, loading issues a
// node:35129 warning.
command.node('test.js', {
name: 'smoke-test',
cwd: 'smoke-tests/cjs/js-extension'
}),


// ----- [Smoke Tests] ESM Host Package --------------------------------
// ----- [Smoke Tests] ESM Host Package --------------------------------

// Using a .ts extension; should compile with esbuild.
command.node('smoke-test', ['test.js'], {
execaOptions: { cwd: 'smoke-tests/esm/ts-extension' }
}),
// Using a .ts extension; should compile with esbuild.
command.node('test.js', {
name: 'smoke-test',
cwd: 'smoke-tests/esm/ts-extension'
}),

// Using a .js extension; should load with import().
command.node('smoke-test', ['test.js'], {
execaOptions: { cwd: 'smoke-tests/esm/js-extension' }
}),
// Using a .js extension; should load with import().
command.node('test.js', {
name: 'smoke-test',
cwd: 'smoke-tests/esm/js-extension'
}),

// Using a .cjs extension; should compile with esbuild, loading issues a
// node:35129 warning.
command.node('smoke-test', ['test.js'], {
execaOptions: { cwd: 'smoke-tests/esm/cjs-extension' }
}),
// Using a .cjs extension; should compile with esbuild, loading issues a
// node:35129 warning.
command.node('test.js', {
name: 'smoke-test',
cwd: 'smoke-tests/esm/cjs-extension'
}),

// Using a .cts extension; should compile with esbuild.
command.node('smoke-test', ['test.js'], {
execaOptions: { cwd: 'smoke-tests/esm/cts-extension' }
})
]
],
// Using a .cts extension; should compile with esbuild.
command.node('test.js', { cwd: 'smoke-tests/esm/cts-extension' })
]], {
group: 'Test',
description: 'Runs various tests on the built version of the project.',
timing: true
});

if (!isCI) {
script('postPrepare', {
group: 'Lifecycle',
run: ['script:test.smoke']
});
}
if (!isCI) script('postBuild', ['script:test.smoke'] );
});
Loading

0 comments on commit e990db7

Please sign in to comment.