Skip to content

Commit

Permalink
refactor: lib directory to src
Browse files Browse the repository at this point in the history
  • Loading branch information
ItMaga committed Feb 18, 2024
1 parent 44920d3 commit 6ec9438
Show file tree
Hide file tree
Showing 41 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"prettier.enable": false,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"editor.tabSize": 2,
"cSpell.words": [
Expand Down
2 changes: 1 addition & 1 deletion build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineBuildConfig } from 'unbuild';

export default defineBuildConfig({
entries: [
'lib/index',
'src/index',
],
declaration: true,
clean: true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"import": "./dist/index.mjs"
}
},
"main": "./dist/index.mjs",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"typesVersions": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/effects.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, test, expect as viExpect } from 'vitest';
import { z } from 'zod';
import { createMock } from '../lib';
import { createMock } from '../src';
import { expect } from './utils/expect';

describe('Effects', () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/expect.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { z } from 'zod';
import { expect as viExpect } from 'vitest';
import { createMock } from '../../lib';
import { createMock } from '../../src';

export function expect<T extends z.ZodTypeAny>(schema: T) {
return viExpect(schema.safeParse(createMock(schema)).success).toBe(true);
Expand Down

0 comments on commit 6ec9438

Please sign in to comment.