-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
71 lines (71 loc) · 3 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"workspaces": ["docs", "src", "test"],
"type": "module",
"private": true,
"scripts": {
"start": "npm run clean && tsc -w",
"build": "npm run clean && npm run build:cjs && npm run build:esm && npm run build:types",
"build:cjs": "tsc --project ./tsconfig.build.json --module commonjs --outDir ./src/_cjs --removeComments --verbatimModuleSyntax false && printf '{\"type\":\"commonjs\"}' > ./src/_cjs/package.json",
"build:esm": "tsc --project ./tsconfig.build.json --module es2015 --outDir ./src/_esm && printf '{\"type\": \"module\",\"sideEffects\":false}' > ./src/_esm/package.json",
"build:types": "tsc --project ./tsconfig.build.json --module esnext --declarationDir ./src/_types --emitDeclarationOnly --declaration --declarationMap",
"changeset": "changeset",
"changeset:publish": "npm run prepublishOnly && npm run build && changeset publish",
"changeset:version": "changeset version && npm install --package-lock-only",
"clean": "rimraf src/_cjs src/_esm src/_types",
"docs:build": "cd docs && npm run build",
"docs:dev": "cd docs && npm run dev",
"docs:preview": "cd docs && npm run preview",
"format": "biome format . --write",
"generate:graphql": "graphql-codegen",
"lint": "biome check .",
"lint:fix": "npm run lint -- --apply",
"mocha": "TS_NODE_PROJECT='./test/tsconfig.json' mocha --config=test/.mocharc.json --node-env=test --exit",
"prepublishOnly": "node scripts/prepublishOnly.js",
"test": "npm run lint && npm run mocha -- test/**/*.test.ts test/*.test.ts",
"test:mocha": "npm run mocha -- test/**/*.test.ts",
"test:mocha:unit": "npm run mocha -- test/unit/**/*.test.ts",
"test:mocha:integration": "npm run mocha -- test/integration/**/*.test.ts",
"typecheck": "tsc --noEmit && cd test && tsc --noEmit"
},
"devDependencies": {
"@biomejs/biome": "^1.6.1",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"@graphql-codegen/cli": "^5.0.0",
"@graphql-codegen/near-operation-file-preset": "^2.5.0",
"@graphql-codegen/typescript": "^4.0.1",
"@graphql-codegen/typescript-operations": "^4.0.1",
"@types/chai": "^4.3.5",
"@types/mocha": "^10.0.1",
"@types/node": "^18.15.11",
"@types/sinon": "^10.0.16",
"chai": "^4.3.7",
"dotenv": "^16.0.3",
"mocha": "^10.2.0",
"rimraf": "^5.0.5",
"sinon": "^15.2.0",
"ts-node": "^9.1.1",
"typescript": "^5.4.2"
},
"codegen": {
"schema": "https://v4.subgraph.goerli.oceanprotocol.com/subgraphs/name/oceanprotocol/ocean-subgraph",
"documents": "./src/**/*.gql.ts",
"generates": {
"./src/@types/subgraph/api.ts": {
"plugins": ["typescript"]
},
"./src/": {
"preset": "near-operation-file",
"presetConfig": {
"baseTypesPath": "@types/subgraph/api.ts",
"extension": ".generated.ts"
},
"plugins": ["typescript-operations"],
"config": {
"omitOperationSuffix": true,
"typesPrefix": "I"
}
}
}
}
}