aboutsummaryrefslogtreecommitdiffstats
path: root/packages/json-schemas
diff options
context:
space:
mode:
Diffstat (limited to 'packages/json-schemas')
-rw-r--r--packages/json-schemas/README.md14
-rw-r--r--packages/json-schemas/package.json8
-rw-r--r--packages/json-schemas/test/schema_test.ts2
-rw-r--r--packages/json-schemas/tslint.json2
4 files changed, 13 insertions, 13 deletions
diff --git a/packages/json-schemas/README.md b/packages/json-schemas/README.md
index ab57833be..f50382f4b 100644
--- a/packages/json-schemas/README.md
+++ b/packages/json-schemas/README.md
@@ -1,4 +1,4 @@
-## @0xproject/json-schemas
+## @0x/json-schemas
Contains 0x-related json schemas
@@ -7,26 +7,26 @@ Contains 0x-related json schemas
## Installation
```bash
-yarn add @0xproject/json-schemas
+yarn add @0x/json-schemas
```
**Import**
```typescript
-import { SchemaValidator, ValidatorResult, schemas } from '@0xproject/json-schemas';
+import { SchemaValidator, ValidatorResult, schemas } from '@0x/json-schemas';
```
or
```javascript
-var schemas = require('@0xproject/json-schemas').schemas;
+var schemas = require('@0x/json-schemas').schemas;
```
If your project is in [TypeScript](https://www.typescriptlang.org/), add the following to your `tsconfig.json`:
```json
"compilerOptions": {
- "typeRoots": ["node_modules/@0xproject/typescript-typings/types", "node_modules/@types"],
+ "typeRoots": ["node_modules/@0x/typescript-typings/types", "node_modules/@types"],
}
```
@@ -55,13 +55,13 @@ yarn install
To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:
```bash
-PKG=@0xproject/json-schemas yarn build
+PKG=@0x/json-schemas yarn build
```
Or continuously rebuild on change:
```bash
-PKG=@0xproject/json-schemas yarn watch
+PKG=@0x/json-schemas yarn watch
```
### Clean
diff --git a/packages/json-schemas/package.json b/packages/json-schemas/package.json
index 20d2e48ce..41226a7c4 100644
--- a/packages/json-schemas/package.json
+++ b/packages/json-schemas/package.json
@@ -1,5 +1,5 @@
{
- "name": "@0xproject/json-schemas",
+ "name": "@0x/json-schemas",
"version": "1.0.7",
"engines": {
"node": ">=6.12"
@@ -39,14 +39,14 @@
},
"homepage": "https://github.com/0xProject/0x-monorepo/packages/json-schemas/README.md",
"dependencies": {
- "@0xproject/typescript-typings": "^3.0.2",
+ "@0x/typescript-typings": "^3.0.2",
"@types/node": "*",
"jsonschema": "^1.2.0",
"lodash.values": "^4.3.0"
},
"devDependencies": {
- "@0xproject/tslint-config": "^1.0.8",
- "@0xproject/utils": "^2.0.2",
+ "@0x/tslint-config": "^1.0.8",
+ "@0x/utils": "^2.0.2",
"@types/lodash.foreach": "^4.5.3",
"@types/lodash.values": "^4.3.3",
"@types/mocha": "^2.2.42",
diff --git a/packages/json-schemas/test/schema_test.ts b/packages/json-schemas/test/schema_test.ts
index 4e0f66ef5..795261ef2 100644
--- a/packages/json-schemas/test/schema_test.ts
+++ b/packages/json-schemas/test/schema_test.ts
@@ -1,4 +1,4 @@
-import { BigNumber } from '@0xproject/utils';
+import { BigNumber } from '@0x/utils';
import * as chai from 'chai';
import * as dirtyChai from 'dirty-chai';
import forEach = require('lodash.foreach');
diff --git a/packages/json-schemas/tslint.json b/packages/json-schemas/tslint.json
index ffaefe83a..dd9053357 100644
--- a/packages/json-schemas/tslint.json
+++ b/packages/json-schemas/tslint.json
@@ -1,3 +1,3 @@
{
- "extends": ["@0xproject/tslint-config"]
+ "extends": ["@0x/tslint-config"]
}