Skip to content

Commit 62bc3ce

Browse files
chore: update dependencies
1 parent f9f55ef commit 62bc3ce

7 files changed

Lines changed: 1620 additions & 3285 deletions

File tree

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import defaultConfig from '@tabnews/config/eslint';
1+
import defaultConfig from 'barso/eslint';
22

33
const config = [
44
...defaultConfig,

lint-staged.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { npm as default } from '@tabnews/config/lint-staged';
1+
export { npm as default } from 'barso/lint-staged';

package-lock.json

Lines changed: 1596 additions & 3253 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
"start:examples:form": "npm run start --workspace examples/form",
1212
"build:examples:markdown": "npm run build && npm run build --workspace examples/markdown",
1313
"start:examples:markdown": "npm run start --workspace examples/markdown",
14-
"test": "tn test",
15-
"test:run": "tn test run",
16-
"coverage": "tn test --coverage",
14+
"test": "barso test",
15+
"test:run": "barso test run",
16+
"coverage": "barso test --coverage",
1717
"lint": "eslint . --max-warnings 0 && prettier --check .",
1818
"format": "eslint --fix . && prettier --write .",
1919
"commit": "cz",
@@ -28,12 +28,12 @@
2828
"devDependencies": {
2929
"@commitlint/cli": "20.2.0",
3030
"@commitlint/config-conventional": "20.2.0",
31-
"@tabnews/config": "0.6.0",
3231
"@testing-library/dom": "10.4.1",
3332
"@testing-library/jest-dom": "6.9.1",
3433
"@testing-library/react": "16.3.1",
3534
"@testing-library/user-event": "14.6.1",
3635
"@vitejs/plugin-react-swc": "4.2.2",
36+
"barso": "0.6.1",
3737
"commitizen": "4.3.1",
3838
"cz-conventional-changelog": "3.3.0",
3939
"husky": "9.1.7",

packages/helpers/src/environment.test.js

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ describe('helpers/environment', () => {
1111

1212
describe('Local', () => {
1313
test('Dev', async () => {
14-
const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } = await import(
15-
'./index.js'
16-
);
14+
const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } =
15+
await import('./index.js');
1716

1817
expect(isBuildTime).toBe(false);
1918
expect(isEdgeRuntime).toBe(false);
@@ -25,9 +24,8 @@ describe('helpers/environment', () => {
2524
test('Build', async () => {
2625
vi.stubEnv('NEXT_PHASE', 'phase-production-build');
2726

28-
const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } = await import(
29-
'./index.js'
30-
);
27+
const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } =
28+
await import('./index.js');
3129

3230
expect(isBuildTime).toBe(true);
3331
expect(isEdgeRuntime).toBe(false);
@@ -38,9 +36,8 @@ describe('helpers/environment', () => {
3836

3937
test('Production', async () => {
4038
vi.stubEnv('NODE_ENV', 'production');
41-
const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } = await import(
42-
'./index.js'
43-
);
39+
const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } =
40+
await import('./index.js');
4441

4542
expect(isBuildTime).toBe(false);
4643
expect(isEdgeRuntime).toBe(false);
@@ -58,9 +55,8 @@ describe('helpers/environment', () => {
5855
vi.stubEnv('NEXT_PUBLIC_VERCEL_ENV', 'production');
5956
vi.stubEnv('VERCEL', '1');
6057

61-
const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } = await import(
62-
'./index.js'
63-
);
58+
const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } =
59+
await import('./index.js');
6460

6561
expect(isBuildTime).toBe(true);
6662
expect(isEdgeRuntime).toBe(false);
@@ -73,9 +69,8 @@ describe('helpers/environment', () => {
7369
vi.stubEnv('NEXT_PUBLIC_VERCEL_ENV', 'production');
7470
vi.stubEnv('VERCEL', '1');
7571

76-
const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } = await import(
77-
'./index.js'
78-
);
72+
const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } =
73+
await import('./index.js');
7974

8075
expect(isBuildTime).toBe(false);
8176
expect(isEdgeRuntime).toBe(false);
@@ -88,9 +83,8 @@ describe('helpers/environment', () => {
8883
vi.stubEnv('NEXT_PUBLIC_VERCEL_ENV', 'preview');
8984
vi.stubEnv('VERCEL', '1');
9085

91-
const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } = await import(
92-
'./index.js'
93-
);
86+
const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } =
87+
await import('./index.js');
9488

9589
expect(isBuildTime).toBe(false);
9690
expect(isEdgeRuntime).toBe(false);
@@ -113,9 +107,8 @@ describe('helpers/environment', () => {
113107
vi.stubEnv('NEXT_PUBLIC_VERCEL_ENV', 'production');
114108
vi.stubEnv('VERCEL', '1');
115109

116-
const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } = await import(
117-
'./index.js'
118-
);
110+
const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } =
111+
await import('./index.js');
119112

120113
expect(isBuildTime).toBe(false);
121114
expect(isEdgeRuntime).toBe(true);
@@ -128,9 +121,8 @@ describe('helpers/environment', () => {
128121
vi.stubEnv('NEXT_PUBLIC_VERCEL_ENV', 'preview');
129122
vi.stubEnv('VERCEL', '1');
130123

131-
const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } = await import(
132-
'./index.js'
133-
);
124+
const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } =
125+
await import('./index.js');
134126

135127
expect(isBuildTime).toBe(false);
136128
expect(isEdgeRuntime).toBe(true);

prettier.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { default } from '@tabnews/config/prettier';
1+
export { default } from 'barso/prettier';

vitest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import createConfig from '@tabnews/config/vitest';
1+
import createConfig from 'barso/vitest';
22

33
const config = createConfig({
44
test: {

0 commit comments

Comments
 (0)