Skip to content

Commit

Permalink
fix prepublish (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
quisido authored Oct 25, 2024
1 parent 2e9d80c commit 807b5c0
Show file tree
Hide file tree
Showing 37 changed files with 256 additions and 108 deletions.
2 changes: 1 addition & 1 deletion packages/authn-shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"eslint": "eslint . --cache --color --exit-on-fatal-error --max-warnings 0",
"eslint:fix": "eslint . --cache --color --exit-on-fatal-error --fix --max-warnings 0",
"prepack": "yarn run tsc",
"prepublish": "concurrently --kill-others-on-fail --names attw,eslint,publint,vitest \"yarn run attw\" \"yarn run eslint\" \"yarn run publint\" \"yarn run vitest:run\"",
"prepublish": "concurrently --kill-others-on-fail --names attw,eslint,publint,vitest --prefix-colors auto \"yarn run attw\" \"yarn run eslint\" \"yarn run publint\" \"yarn run vitest:run\"",
"publint": "publint",
"tsc": "tsc --project tsconfig.prepack.json",
"vitest": "vitest",
Expand Down
2 changes: 1 addition & 1 deletion packages/authn/src/test/expect-private-log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { TEST_CONSOLE_ERROR } from './test-console.js';

export default function expectPrivateLog(err: Error): void {
expect(TEST_CONSOLE_ERROR).toHaveBeenCalledWith(
'Private:',
'Private error:',
err.message,
err.cause,
EXPECT_ANY_STRING,
Expand Down
10 changes: 10 additions & 0 deletions packages/authn/src/test/expect-private-metric.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { describe, expect, it } from 'vitest';
import expectPrivateMetric from './expect-private-metric.js';

describe('expectPrivateMetric', (): void => {
it('should throw an error when the metric has not been emit', (): void => {
expect((): void => {
expectPrivateMetric({ name: 'test' });
}).toThrow('Expected to emit a private metric:');
});
});
43 changes: 34 additions & 9 deletions packages/authn/src/test/expect-private-metric.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,40 @@
import type { Metric } from '@quisido/worker';
import { expect } from 'vitest';
import { EXPECT_ANY_NUMBER } from './expect-any.js';
import { EXPECT_ANY_NUMBER, EXPECT_ANY_STRING } from './expect-any.js';
import { TEST_CONSOLE_LOG } from './test-console.js';

const JSON_SPACE = 2;

export default function expectPrivateMetric(metric: Metric): void {
expect(TEST_CONSOLE_LOG).toHaveBeenCalledWith('Private:', {
timestamp: EXPECT_ANY_NUMBER,
traceFlags: 4,
traceId: '00000000000000000000000000000002',
traceParentId: '0000000000000003',
traceVersion: 1,
...metric,
});
const metrics: string[] = [];
for (const call of TEST_CONSOLE_LOG.mock.calls) {
const [prefix, metricStr] = call as readonly unknown[];
if (prefix !== 'Private metric:' || typeof metricStr !== 'string') {
continue;
}

try {
const metricJson: unknown = JSON.parse(metricStr);
expect(metricJson).toEqual({
timestamp: EXPECT_ANY_NUMBER,
traceFlags: EXPECT_ANY_NUMBER,
traceId: EXPECT_ANY_STRING,
traceParentId: EXPECT_ANY_STRING,
traceVersion: EXPECT_ANY_NUMBER,
...metric,
});
return;
} catch (_err: unknown) {
metrics.push(metricStr);
continue;
}
}

throw new Error(`Expected to emit a private metric:
${JSON.stringify(metric, null, JSON_SPACE)}
in:
${metrics.join('\n\n')}`);
}
10 changes: 10 additions & 0 deletions packages/authn/src/test/expect-public-metric.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { describe, expect, it } from 'vitest';
import expectPublicMetric from './expect-public-metric.js';

describe('expectPublicMetric', (): void => {
it('should throw an error when the metric has not been emit', (): void => {
expect((): void => {
expectPublicMetric({ name: 'test' });
}).toThrow('Expected to emit a public metric:');
});
});
43 changes: 34 additions & 9 deletions packages/authn/src/test/expect-public-metric.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,40 @@
import type { Metric } from '@quisido/worker';
import { expect } from 'vitest';
import { EXPECT_ANY_NUMBER } from './expect-any.js';
import { EXPECT_ANY_NUMBER, EXPECT_ANY_STRING } from './expect-any.js';
import { TEST_CONSOLE_LOG } from './test-console.js';

const JSON_SPACE = 2;

export default function expectPublicMetric(metric: Metric): void {
expect(TEST_CONSOLE_LOG).toHaveBeenCalledWith('Public:', {
timestamp: EXPECT_ANY_NUMBER,
traceFlags: 4,
traceId: '00000000000000000000000000000002',
traceParentId: '0000000000000003',
traceVersion: 1,
...metric,
});
const metrics: string[] = [];
for (const call of TEST_CONSOLE_LOG.mock.calls) {
const [prefix, metricStr] = call as readonly unknown[];
if (prefix !== 'Public metric:' || typeof metricStr !== 'string') {
continue;
}

try {
const metricJson: unknown = JSON.parse(metricStr);
expect(metricJson).toEqual({
timestamp: EXPECT_ANY_NUMBER,
traceFlags: EXPECT_ANY_NUMBER,
traceId: EXPECT_ANY_STRING,
traceParentId: EXPECT_ANY_STRING,
traceVersion: EXPECT_ANY_NUMBER,
...metric,
});
return;
} catch (_err: unknown) {
metrics.push(metricStr);
continue;
}
}

throw new Error(`Expected to emit a public metric:
${JSON.stringify(metric, null, JSON_SPACE)}
in:
${metrics.join('\n\n')}`);
}
2 changes: 1 addition & 1 deletion packages/aws-rum-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"eslint": "eslint . --cache --color --exit-on-fatal-error --max-warnings 0",
"eslint:fix": "eslint . --cache --color --exit-on-fatal-error --fix --max-warnings 0",
"prepack": "yarn run tsc",
"prepublish": "concurrently --kill-others-on-fail --names eslint,publint,vitest \"yarn run eslint\" \"yarn run publint\" \"yarn run vitest:run\"",
"prepublish": "concurrently --kill-others-on-fail --names eslint,publint,vitest --prefix-colors auto \"yarn run eslint\" \"yarn run publint\" \"yarn run vitest:run\"",
"publint": "publint",
"tsc": "tsc --project tsconfig.prepack.json",
"vitest": "vitest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function describePackageJsonScripts(packageJson: object): void {
it('should have prepublish scripts', (): void => {
assert('prepublish' in scripts);
expect(scripts.prepublish).toBe(
'concurrently --kill-others-on-fail --names eslint,publint,vitest "yarn run eslint" "yarn run publint" "yarn run vitest:run"',
'concurrently --kill-others-on-fail --names eslint,publint,vitest --prefix-colors auto "yarn run eslint" "yarn run publint" "yarn run vitest:run"',
);
});

Expand Down
2 changes: 1 addition & 1 deletion packages/cjs-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"eslint": "eslint . --cache --color --exit-on-fatal-error --max-warnings 0",
"eslint:fix": "eslint . --cache --color --exit-on-fatal-error --fix --max-warnings 0",
"prepack": "exit 0",
"prepublish": "concurrently --kill-others-on-fail --names attw,eslint,publint \"yarn run attw\" \"yarn run eslint\" \"yarn run publint\"",
"prepublish": "concurrently --kill-others-on-fail --names attw,eslint,publint --prefix-colors auto \"yarn run attw\" \"yarn run eslint\" \"yarn run publint\"",
"publint": "publint"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cloudflare-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"eslint": "eslint . --cache --color --exit-on-fatal-error --max-warnings 0",
"eslint:fix": "eslint . --cache --color --exit-on-fatal-error --fix --max-warnings 0",
"prepack": "yarn run tsc",
"prepublish": "concurrently --kill-others-on-fail --names attw,eslint,publint,vitest \"yarn run attw\" \"yarn run eslint\" \"yarn run publint\" \"yarn run vitest:run\"",
"prepublish": "concurrently --kill-others-on-fail --names attw,eslint,publint,vitest --prefix-colors auto \"yarn run attw\" \"yarn run eslint\" \"yarn run publint\" \"yarn run vitest:run\"",
"publint": "publint",
"tsc": "tsc --project tsconfig.prepack.json",
"vitest": "vitest",
Expand Down
2 changes: 1 addition & 1 deletion packages/csp-shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"eslint": "eslint . --cache --color --exit-on-fatal-error --max-warnings 0",
"eslint:fix": "eslint . --cache --color --exit-on-fatal-error --fix --max-warnings 0",
"prepack": "yarn run tsc",
"prepublish": "concurrently --kill-others-on-fail --names attw,eslint,publint,vitest \"yarn run attw\" \"yarn run eslint\" \"yarn run publint\" \"yarn run vitest:run\"",
"prepublish": "concurrently --kill-others-on-fail --names attw,eslint,publint,vitest --prefix-colors auto \"yarn run attw\" \"yarn run eslint\" \"yarn run publint\" \"yarn run vitest:run\"",
"publint": "publint",
"tsc": "tsc --project tsconfig.prepack.json",
"vitest": "vitest",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"eslint": "eslint . --cache --color --exit-on-fatal-error --max-warnings 0",
"eslint:fix": "eslint . --cache --color --exit-on-fatal-error --fix --max-warnings 0",
"prepack": "yarn run tsc",
"prepublish": "concurrently --kill-others-on-fail --names attw,eslint,publint,vitest \"yarn run attw\" \"yarn run eslint\" \"yarn run publint\" \"yarn run vitest:run\"",
"prepublish": "concurrently --kill-others-on-fail --names attw,eslint,publint,vitest --prefix-colors auto \"yarn run attw\" \"yarn run eslint\" \"yarn run publint\" \"yarn run vitest:run\"",
"publint": "publint",
"tsc": "tsc --project tsconfig.prepack.json",
"vitest": "vitest",
Expand Down
2 changes: 1 addition & 1 deletion packages/fmrs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"eslint": "eslint . --cache --color --exit-on-fatal-error --max-warnings 0",
"eslint:fix": "eslint . --cache --color --exit-on-fatal-error --fix --max-warnings 0",
"prepack": "yarn run tsc",
"prepublish": "concurrently --kill-others-on-fail --names attw,eslint,publint,vitest \"yarn run attw\" \"yarn run eslint\" \"yarn run publint\" \"yarn run vitest:run\"",
"prepublish": "concurrently --kill-others-on-fail --names attw,eslint,publint,vitest --prefix-colors auto \"yarn run attw\" \"yarn run eslint\" \"yarn run publint\" \"yarn run vitest:run\"",
"publint": "publint",
"tsc": "tsc --project tsconfig.prepack.json",
"vitest": "vitest",
Expand Down
2 changes: 1 addition & 1 deletion packages/fullstory-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"eslint": "eslint . --cache --color --exit-on-fatal-error --max-warnings 0",
"eslint:fix": "eslint . --cache --color --exit-on-fatal-error --fix --max-warnings 0",
"prepack": "yarn run tsc",
"prepublish": "concurrently --kill-others-on-fail --names eslint,publint,vitest \"yarn run eslint\" \"yarn run publint\" \"yarn run vitest:run\"",
"prepublish": "concurrently --kill-others-on-fail --names eslint,publint,vitest --prefix-colors auto \"yarn run eslint\" \"yarn run publint\" \"yarn run vitest:run\"",
"publint": "publint",
"tsc": "tsc --project tsconfig.prepack.json",
"vitest": "vitest",
Expand Down
2 changes: 1 addition & 1 deletion packages/lazy-i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"eslint": "eslint . --cache --color --exit-on-fatal-error --max-warnings 0",
"eslint:fix": "eslint . --cache --color --exit-on-fatal-error --fix --max-warnings 0",
"prepack": "yarn run tsc",
"prepublish": "concurrently --kill-others-on-fail --names eslint,publint,vitest \"yarn run eslint\" \"yarn run publint\" \"yarn run vitest:run\"",
"prepublish": "concurrently --kill-others-on-fail --names eslint,publint,vitest --prefix-colors auto \"yarn run eslint\" \"yarn run publint\" \"yarn run vitest:run\"",
"publint": "publint",
"tsc": "tsc --project tsconfig.prepack.json",
"vitest": "vitest",
Expand Down
2 changes: 1 addition & 1 deletion packages/mock-next-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"eslint": "eslint . --cache --color --exit-on-fatal-error --max-warnings 0",
"eslint:fix": "eslint . --cache --color --exit-on-fatal-error --fix --max-warnings 0",
"prepack": "yarn run tsc",
"prepublish": "concurrently --kill-others-on-fail --names eslint,publint,vitest \"yarn run eslint\" \"yarn run publint\" \"yarn run vitest:run\"",
"prepublish": "concurrently --kill-others-on-fail --names eslint,publint,vitest --prefix-colors auto \"yarn run eslint\" \"yarn run publint\" \"yarn run vitest:run\"",
"publint": "publint",
"tsc": "tsc --project tsconfig.prepack.json",
"vitest": "vitest",
Expand Down
6 changes: 3 additions & 3 deletions packages/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"build": "next build --debug",
"clean": "rm -rf .next .wrangler cypress/coverage cypress/downloads cypress/screenshots cypress/videos out",
"coverage": "monorepo-template-coverage",
"cypress": "concurrently --hide server --kill-others --kill-others-on-fail --names server,cypress --success command-cypress \"next build && next start\" \"yarn run cypress:run\"",
"cypress": "concurrently --hide server --kill-others --kill-others-on-fail --names server,cypress --prefix-colors auto --success command-cypress \"next build && next start\" \"yarn run cypress:run\"",
"cypress:open": "wait-on https://localhost:3000/ && cypress open",
"cypress:pnp": "node ./scripts/cypress-pnp/index.js",
"cypress:run": "wait-on https://localhost:3000/ && cypress run --browser chrome:canary",
Expand All @@ -36,13 +36,13 @@
"export": "next export --turbo",
"info": "next info",
"lighthouse": "yarn run build && yarn run lighthouse:report && yarn run postlighthouse",
"lighthouse:report": "concurrently --hide serve --kill-others --kill-others-on-fail --names lighthouse,serve --success command-lighthouse \"yarn run lighthouse:report:serve\" \"yarn run serve\"",
"lighthouse:report": "concurrently --hide serve --kill-others --kill-others-on-fail --names lighthouse,serve --prefix-colors auto --success command-lighthouse \"yarn run lighthouse:report:serve\" \"yarn run serve\"",
"lighthouse:report:dev": "wait-on https://localhost:3000/ && lighthouse https://localhost:3000/ --budget-path=lighthouse.budget.json --chrome-flags=\"--headless\" --config-path=lighthouse.config.js --enable-error-reporting --output=html,json --output-path=lighthouse --preset=experimental --save-assets",
"lighthouse:report:serve": "wait-on http://localhost:3000/ && lighthouse http://localhost:3000/ --budget-path=lighthouse.budget.json --chrome-flags=\"--headless\" --config-path=lighthouse.config.js --enable-error-reporting --output=html,json --output-path=lighthouse --preset=experimental --save-assets",
"lighthouse:report:production": "lighthouse https://quisi.do/ --budget-path=lighthouse.budget.json --chrome-flags=\"--headless\" --config-path=lighthouse.config.js --enable-error-reporting --output=html,json --output-path=lighthouse --preset=experimental --save-assets",
"postlighthouse": "yarn node ./scripts/postlighthouse/index.js",
"prepack": "yarn run build",
"prepublish": "concurrently --kill-others-on-fail --names publint,vitest \"yarn run publint\" \"yarn run vitest:run\"",
"prepublish": "concurrently --kill-others-on-fail --names publint,vitest --prefix-colors auto \"yarn run publint\" \"yarn run vitest:run\"",
"publint": "publint",
"serve": "serve out",
"vitest": "vitest",
Expand Down
2 changes: 1 addition & 1 deletion packages/number-format-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"eslint": "eslint . --cache --color --exit-on-fatal-error --max-warnings 0",
"eslint:fix": "eslint . --cache --color --exit-on-fatal-error --fix --max-warnings 0",
"prepack": "yarn run tsc",
"prepublish": "concurrently --kill-others-on-fail --names eslint,publint,vitest \"yarn run eslint\" \"yarn run publint\" \"yarn run vitest:run\"",
"prepublish": "concurrently --kill-others-on-fail --names eslint,publint,vitest --prefix-colors auto \"yarn run eslint\" \"yarn run publint\" \"yarn run vitest:run\"",
"publint": "publint",
"tsc": "tsc --project tsconfig.prepack.json",
"vitest": "vitest",
Expand Down
2 changes: 1 addition & 1 deletion packages/proposal-async-context/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"attw": "attw --quiet",
"fix-esm-import-path": "fix-esm-import-path dist/src/",
"prepack": "yarn run webpack && yarn run fix-esm-import-path",
"prepublish": "concurrently --kill-others-on-fail --names attw,publint \"yarn run attw\" \"yarn run publint\"",
"prepublish": "concurrently --kill-others-on-fail --names attw,publint --prefix-colors auto \"yarn run attw\" \"yarn run publint\"",
"publint": "publint",
"webpack": "webpack"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/react-datadog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"eslint": "eslint . --cache --color --exit-on-fatal-error --max-warnings 0",
"eslint:fix": "eslint . --cache --color --exit-on-fatal-error --fix --max-warnings 0",
"prepack": "yarn run tsc",
"prepublish": "concurrently --kill-others-on-fail --names eslint,publint,vitest \"yarn run eslint\" \"yarn run publint\" \"yarn run vitest:run\"",
"prepublish": "concurrently --kill-others-on-fail --names eslint,publint,vitest --prefix-colors auto \"yarn run eslint\" \"yarn run publint\" \"yarn run vitest:run\"",
"publint": "publint",
"tsc": "tsc --project tsconfig.prepack.json",
"vitest": "vitest",
Expand Down
2 changes: 1 addition & 1 deletion packages/sentry-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"eslint": "eslint . --cache --color --exit-on-fatal-error --max-warnings 0",
"eslint:fix": "eslint . --cache --color --exit-on-fatal-error --fix --max-warnings 0",
"prepack": "yarn run tsc",
"prepublish": "concurrently --kill-others-on-fail --names eslint,publint,vitest \"yarn run eslint\" \"yarn run publint\" \"yarn run vitest:run\"",
"prepublish": "concurrently --kill-others-on-fail --names eslint,publint,vitest --prefix-colors auto \"yarn run eslint\" \"yarn run publint\" \"yarn run vitest:run\"",
"publint": "publint",
"tsc": "tsc --project tsconfig.prepack.json",
"vitest": "vitest",
Expand Down
2 changes: 1 addition & 1 deletion packages/test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"eslint": "eslint . --cache --color --exit-on-fatal-error --max-warnings 0",
"eslint:fix": "eslint . --cache --color --exit-on-fatal-error --fix --max-warnings 0",
"prepack": "yarn run tsc",
"prepublish": "concurrently --kill-others-on-fail --names attw,eslint,publint \"yarn run attw\" \"yarn run eslint\" \"yarn run publint\"",
"prepublish": "concurrently --kill-others-on-fail --names attw,eslint,publint --prefix-colors auto \"yarn run attw\" \"yarn run eslint\" \"yarn run publint\"",
"publint": "publint",
"tsc": "tsc --project tsconfig.prepack.json",
"vitest": "vitest",
Expand Down
2 changes: 1 addition & 1 deletion packages/tree-logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"eslint": "eslint . --cache --color --exit-on-fatal-error --max-warnings 0",
"eslint:fix": "eslint . --cache --color --exit-on-fatal-error --fix --max-warnings 0",
"prepack": "yarn run tsc",
"prepublish": "concurrently --kill-others-on-fail --names attw,eslint,publint \"yarn run attw\" \"yarn run eslint\" \"yarn run publint\"",
"prepublish": "concurrently --kill-others-on-fail --names attw,eslint,publint --prefix-colors auto \"yarn run attw\" \"yarn run eslint\" \"yarn run publint\"",
"publint": "publint",
"tsc": "tsc --project tsconfig.prepack.json",
"vitest": "vitest",
Expand Down
2 changes: 1 addition & 1 deletion packages/unknown2string/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"eslint": "eslint . --cache --color --exit-on-fatal-error --max-warnings 0",
"eslint:fix": "eslint . --cache --color --exit-on-fatal-error --fix --max-warnings 0",
"prepack": "yarn run tsc",
"prepublish": "concurrently --kill-others-on-fail --names attw,eslint,publint,vitest \"yarn run attw\" \"yarn run eslint\" \"yarn run publint\" \"yarn run vitest:run\"",
"prepublish": "concurrently --kill-others-on-fail --names attw,eslint,publint,vitest --prefix-colors auto \"yarn run attw\" \"yarn run eslint\" \"yarn run publint\" \"yarn run vitest:run\"",
"publint": "publint",
"tsc": "tsc --project tsconfig.prepack.json",
"vitest": "vitest",
Expand Down
2 changes: 1 addition & 1 deletion packages/use-shallow-memo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"eslint": "eslint . --cache --color --exit-on-fatal-error --max-warnings 0",
"eslint:fix": "eslint . --cache --color --exit-on-fatal-error --fix --max-warnings 0",
"prepack": "yarn run tsc",
"prepublish": "concurrently --kill-others-on-fail --names eslint,publint,vitest \"yarn run eslint\" \"yarn run publint\" \"yarn run vitest:run\"",
"prepublish": "concurrently --kill-others-on-fail --names eslint,publint,vitest --prefix-colors auto \"yarn run eslint\" \"yarn run publint\" \"yarn run vitest:run\"",
"publint": "publint",
"tsc": "tsc --generateCpuProfile tsc-output.cpuprofile --project tsconfig.prepack.json",
"vitest": "vitest",
Expand Down
2 changes: 1 addition & 1 deletion packages/vitest-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"eslint": "eslint . --cache --color --exit-on-fatal-error --max-warnings 0",
"eslint:fix": "eslint . --cache --color --exit-on-fatal-error --fix --max-warnings 0",
"prepack": "yarn run tsc",
"prepublish": "concurrently --kill-others-on-fail --names attw,eslint,publint \"yarn run attw\" \"yarn run eslint\" \"yarn run publint\"",
"prepublish": "concurrently --kill-others-on-fail --names attw,eslint,publint --prefix-colors auto \"yarn run attw\" \"yarn run eslint\" \"yarn run publint\"",
"publint": "publint",
"tsc": "tsc --project tsconfig.prepack.json",
"vitest": "vitest",
Expand Down
11 changes: 11 additions & 0 deletions packages/worker/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,17 @@ export default [
},
},

{
files: [
'src/test/expect-private-metric.ts',
'src/test/expect-public-metric.ts',
],

rules: {
'max-statements': 'off',
},
},

{
files: ['src/worker.ts'],
rules: {
Expand Down
Loading

0 comments on commit 807b5c0

Please sign in to comment.