Skip to content

Commit

Permalink
update tshy
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Mar 8, 2024
1 parent 5187113 commit 7b5cf3f
Show file tree
Hide file tree
Showing 89 changed files with 201 additions and 176 deletions.
18 changes: 10 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"sync-content": "^1.0.2",
"tap": "^18.0.0-0",
"trivial-deferred": "^2.0.0",
"tshy": "^1.2.2",
"tshy": "^1.11.1",
"tsx": "^4.1.2",
"typedoc": "^0.25.1",
"typescript": "5.2",
Expand Down
4 changes: 2 additions & 2 deletions src/after-each/.tshy/commonjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"../src/**/*.tsx"
],
"exclude": [
".../src/**/*.mts"
"../src/**/*.mts"
],
"compilerOptions": {
"outDir": "../.tshy-build-tmp/commonjs"
"outDir": "../.tshy-build/commonjs"
}
}
3 changes: 2 additions & 1 deletion src/after-each/.tshy/esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"../src/**/*.mts",
"../src/**/*.tsx"
],
"exclude": [],
"compilerOptions": {
"outDir": "../.tshy-build-tmp/esm"
"outDir": "../.tshy-build/esm"
}
}
4 changes: 2 additions & 2 deletions src/after/.tshy/commonjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"../src/**/*.tsx"
],
"exclude": [
".../src/**/*.mts"
"../src/**/*.mts"
],
"compilerOptions": {
"outDir": "../.tshy-build-tmp/commonjs"
"outDir": "../.tshy-build/commonjs"
}
}
3 changes: 2 additions & 1 deletion src/after/.tshy/esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"../src/**/*.mts",
"../src/**/*.tsx"
],
"exclude": [],
"compilerOptions": {
"outDir": "../.tshy-build-tmp/esm"
"outDir": "../.tshy-build/esm"
}
}
4 changes: 3 additions & 1 deletion src/after/dist/commonjs/package.json
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
{"type":"commonjs"}
{
"type": "commonjs"
}
4 changes: 3 additions & 1 deletion src/after/dist/esm/package.json
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
{"type":"module"}
{
"type": "module"
}
4 changes: 2 additions & 2 deletions src/asserts/.tshy/commonjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"../src/**/*.tsx"
],
"exclude": [
".../src/**/*.mts"
"../src/**/*.mts"
],
"compilerOptions": {
"outDir": "../.tshy-build-tmp/commonjs"
"outDir": "../.tshy-build/commonjs"
}
}
3 changes: 2 additions & 1 deletion src/asserts/.tshy/esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"../src/**/*.mts",
"../src/**/*.tsx"
],
"exclude": [],
"compilerOptions": {
"outDir": "../.tshy-build-tmp/esm"
"outDir": "../.tshy-build/esm"
}
}
4 changes: 2 additions & 2 deletions src/before-each/.tshy/commonjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"../src/**/*.tsx"
],
"exclude": [
".../src/**/*.mts"
"../src/**/*.mts"
],
"compilerOptions": {
"outDir": "../.tshy-build-tmp/commonjs"
"outDir": "../.tshy-build/commonjs"
}
}
3 changes: 2 additions & 1 deletion src/before-each/.tshy/esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"../src/**/*.mts",
"../src/**/*.tsx"
],
"exclude": [],
"compilerOptions": {
"outDir": "../.tshy-build-tmp/esm"
"outDir": "../.tshy-build/esm"
}
}
4 changes: 2 additions & 2 deletions src/before/.tshy/commonjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"../src/**/*.tsx"
],
"exclude": [
".../src/**/*.mts"
"../src/**/*.mts"
],
"compilerOptions": {
"outDir": "../.tshy-build-tmp/commonjs"
"outDir": "../.tshy-build/commonjs"
}
}
3 changes: 2 additions & 1 deletion src/before/.tshy/esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"../src/**/*.mts",
"../src/**/*.tsx"
],
"exclude": [],
"compilerOptions": {
"outDir": "../.tshy-build-tmp/esm"
"outDir": "../.tshy-build/esm"
}
}
4 changes: 2 additions & 2 deletions src/clock/.tshy/commonjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"../src/**/*.tsx"
],
"exclude": [
".../src/**/*.mts"
"../src/**/*.mts"
],
"compilerOptions": {
"outDir": "../.tshy-build-tmp/commonjs"
"outDir": "../.tshy-build/commonjs"
}
}
3 changes: 2 additions & 1 deletion src/clock/.tshy/esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"../src/**/*.mts",
"../src/**/*.tsx"
],
"exclude": [],
"compilerOptions": {
"outDir": "../.tshy-build-tmp/esm"
"outDir": "../.tshy-build/esm"
}
}
4 changes: 2 additions & 2 deletions src/config/.tshy/commonjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"../src/**/*.tsx"
],
"exclude": [
".../src/**/*.mts"
"../src/**/*.mts"
],
"compilerOptions": {
"outDir": "../.tshy-build-tmp/commonjs"
"outDir": "../.tshy-build/commonjs"
}
}
3 changes: 2 additions & 1 deletion src/config/.tshy/esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"../src/**/*.mts",
"../src/**/*.tsx"
],
"exclude": [],
"compilerOptions": {
"outDir": "../.tshy-build-tmp/esm"
"outDir": "../.tshy-build/esm"
}
}
5 changes: 2 additions & 3 deletions src/core/.tshy/commonjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
"../src/**/*.tsx"
],
"exclude": [
".../src/**/*.mts",
"../src/tap-dir.ts"
"../src/**/*.mts"
],
"compilerOptions": {
"outDir": "../.tshy-build-tmp/commonjs"
"outDir": "../.tshy-build/commonjs"
}
}
5 changes: 4 additions & 1 deletion src/core/.tshy/esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
"../src/**/*.mts",
"../src/**/*.tsx"
],
"exclude": [
".././src/tap-dir-cjs.cts"
],
"compilerOptions": {
"outDir": "../.tshy-build-tmp/esm"
"outDir": "../.tshy-build/esm"
}
}
4 changes: 3 additions & 1 deletion src/core/dist/commonjs/package.json
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
{"type":"commonjs"}
{
"type": "commonjs"
}
1 change: 0 additions & 1 deletion src/core/dist/commonjs/tap-dir.d.ts.map

This file was deleted.

1 change: 0 additions & 1 deletion src/core/dist/commonjs/tap-dir.js.map

This file was deleted.

4 changes: 3 additions & 1 deletion src/core/dist/esm/package.json
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
{"type":"module"}
{
"type": "module"
}
14 changes: 0 additions & 14 deletions src/create-plugin/.tshy/commonjs.json

This file was deleted.

3 changes: 2 additions & 1 deletion src/create-plugin/.tshy/esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"../src/**/*.mts",
"../src/**/*.tsx"
],
"exclude": [],
"compilerOptions": {
"outDir": "../.tshy-build-tmp/esm"
"outDir": "../.tshy-build/esm"
}
}
6 changes: 2 additions & 4 deletions src/dummy-plugin/.tshy/commonjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
"../src/**/*.tsx"
],
"exclude": [
".../src/**/*.mts",
"../src/load-reporter.ts",
"../src/reporter.tsx"
"../src/**/*.mts"
],
"compilerOptions": {
"outDir": "../.tshy-build-tmp/commonjs"
"outDir": "../.tshy-build/commonjs"
}
}
6 changes: 5 additions & 1 deletion src/dummy-plugin/.tshy/esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
"../src/**/*.mts",
"../src/**/*.tsx"
],
"exclude": [
".././src/load-reporter-cjs.cts",
".././src/reporter-cjs.cts"
],
"compilerOptions": {
"outDir": "../.tshy-build-tmp/esm"
"outDir": "../.tshy-build/esm"
}
}
2 changes: 2 additions & 0 deletions src/dummy-plugin/src/load-reporter.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This module is excluded from the CommonJS build, and the package.json
// `"exports"` maps the import path to ./no-op
//@ts-ignore
import { addType } from '@tapjs/reporter'
//@ts-ignore
import DummyReporter from './reporter.js'
export default addType('dummy', DummyReporter)
5 changes: 5 additions & 0 deletions src/dummy-plugin/src/reporter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,19 @@
//
// The user can either do --reporter=@tapjs/dummy-plugin/reporter, or
// --reporter=dummy, and both will load this test reporter.
//@ts-ignore
import { Reporter } from '@tapjs/reporter'
//@ts-ignore
import {
useAssertTotals,
useSuiteTotals,
//@ts-ignore
} from '@tapjs/reporter/hooks'
//@ts-ignore
import { Box, Text } from 'ink'
import React from 'react'

//@ts-ignore
export default (({ test, config }) => {
const asserts = useAssertTotals(test)
const suites = useSuiteTotals(test)
Expand Down
4 changes: 2 additions & 2 deletions src/error-serdes/.tshy/commonjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"../src/**/*.tsx"
],
"exclude": [
".../src/**/*.mts"
"../src/**/*.mts"
],
"compilerOptions": {
"outDir": "../.tshy-build-tmp/commonjs"
"outDir": "../.tshy-build/commonjs"
}
}
3 changes: 2 additions & 1 deletion src/error-serdes/.tshy/esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"../src/**/*.mts",
"../src/**/*.tsx"
],
"exclude": [],
"compilerOptions": {
"outDir": "../.tshy-build-tmp/esm"
"outDir": "../.tshy-build/esm"
}
}
4 changes: 2 additions & 2 deletions src/esbuild-kit/.tshy/commonjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"../src/**/*.tsx"
],
"exclude": [
".../src/**/*.mts"
"../src/**/*.mts"
],
"compilerOptions": {
"outDir": "../.tshy-build-tmp/commonjs"
"outDir": "../.tshy-build/commonjs"
}
}
3 changes: 2 additions & 1 deletion src/esbuild-kit/.tshy/esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"../src/**/*.mts",
"../src/**/*.tsx"
],
"exclude": [],
"compilerOptions": {
"outDir": "../.tshy-build-tmp/esm"
"outDir": "../.tshy-build/esm"
}
}
Loading

0 comments on commit 7b5cf3f

Please sign in to comment.