Skip to content

Commit

Permalink
Correct naming
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkamyshev committed Jul 29, 2024
1 parent 527e9b4 commit d1fb870
Show file tree
Hide file tree
Showing 15 changed files with 22 additions and 19 deletions.
4 changes: 4 additions & 0 deletions apps/website/docs/.vitepress/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export default defineConfig({
{ text: 'redux', link: '/redux/' },
{ text: 'web-api', link: '/web-api/' },
{ text: 'factories', link: '/factories/' },
{ text: 'contracts', link: '/contracts/' },
],
},
{ text: 'Magazine', link: '/magazine/' },
Expand Down Expand Up @@ -114,6 +115,9 @@ export default defineConfig({
{ text: 'Motivation', link: '/factories/motivation' },
{ text: 'Important Caveats', link: '/factories/important_caveats' },
]),
...createSidebar('contracts', [
{ text: 'Get Started', link: '/contracts/' },
]),
'/magazine/': [
{
text: 'Architecture',
Expand Down
Empty file.
1 change: 0 additions & 1 deletion packages/contract/CHANGELOG.md

This file was deleted.

3 changes: 0 additions & 3 deletions packages/contract/README.md

This file was deleted.

1 change: 0 additions & 1 deletion packages/contract/src/index.ts

This file was deleted.

1 change: 1 addition & 0 deletions packages/contracts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# @withease/contracts
3 changes: 3 additions & 0 deletions packages/contracts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# @withease/contracts

Read documentation [here](https://withease.effector.dev/contracts/).
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@withease/contract",
"name": "@withease/contracts",
"version": "0.0.1",
"license": "MIT",
"scripts": {
Expand All @@ -13,24 +13,24 @@
"files": [
"dist"
],
"main": "./dist/contract.cjs",
"module": "./dist/contract.js",
"types": "./dist/contract.d.ts",
"main": "./dist/contracts.cjs",
"module": "./dist/contracts.js",
"types": "./dist/contracts.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/contract.d.ts",
"default": "./dist/contract.js"
"types": "./dist/contracts.d.ts",
"default": "./dist/contracts.js"
},
"require": {
"types": "./dist/contract.d.cts",
"default": "./dist/contract.cjs"
"types": "./dist/contracts.d.cts",
"default": "./dist/contracts.cjs"
}
}
},
"size-limit": [
{
"path": "./dist/contract.js",
"path": "./dist/contracts.js",
"limit": "603 B"
}
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, it, test, expect } from 'vitest';

import { bool, num, str, rec, or, val, arr } from './contract';
import { bool, num, str, rec, or, val, arr } from './contracts';

describe('bool', () => {
it('valid', () => {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { object, string } from 'superstruct';
import { runtypeContract } from '@farfetched/runtypes';
import { superstructContract } from '@farfetched/superstruct';

import { rec, arr } from './contract';
import { rec, arr } from './contracts';

describe('runtypes', () => {
it('supports Runtype inside', () => {
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export default {
build: {
lib: {
entry: 'src/index.ts',
name: '@withease/contract',
fileName: 'contract',
name: '@withease/contracts',
fileName: 'contracts',
formats: ['es', 'cjs'],
},
},
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@withease/i18next": ["packages/i18next/src/index.ts"],
"@withease/redux": ["packages/redux/src/index.ts"],
"@withease/web-api": ["packages/web-api/src/index.ts"],
"@withease/contract": ["packages/contract/src/index.ts"]
"@withease/contracts": ["packages/contracts/src/index.ts"]
}
},
"exclude": ["node_modules"]
Expand Down

0 comments on commit d1fb870

Please sign in to comment.