Skip to content

Commit

Permalink
move deps to pacakges
Browse files Browse the repository at this point in the history
  • Loading branch information
saleel committed Feb 7, 2024
1 parent e64a30a commit a5b64d7
Show file tree
Hide file tree
Showing 8 changed files with 836 additions and 676 deletions.
20 changes: 1 addition & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,11 @@
"version": "2.0.0",
"private": true,
"scripts": {
"g:tsc": "cd $INIT_CWD && tsc",
"g:jest": "cd $INIT_CWD && jest",
"test": "jest"
},
"workspaces": [
"packages/*",
"scripts"
],
"packageManager": "[email protected]",
"devDependencies": {
"@babel/core": "^7.22.5",
"@babel/preset-env": "^7.22.2",
"@babel/preset-react": "^7.22.0",
"@babel/preset-typescript": "^7.21.5",
"@types/libmime": "^5.0.3",
"babel-jest": "^29.5.0",
"babel-preset-jest": "^29.5.0",
"jest": "^29.5.0",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
},
"dependencies": {
"dotenv": "^16.3.1"
}
"packageManager": "[email protected]"
}
1 change: 0 additions & 1 deletion packages/circuits/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ module.exports = {
presets: [
['@babel/preset-env', { targets: { node: 'current' } }],
'@babel/preset-typescript',
['@babel/preset-react', { "runtime": "automatic" }],
['jest']
],
};
8 changes: 7 additions & 1 deletion packages/circuits/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@
"test": "NODE_OPTIONS=--max_old_space_size=8192 jest tests/*.ts"
},
"devDependencies": {
"@babel/core": "^7.22.5",
"@babel/preset-env": "^7.22.2",
"@babel/preset-typescript": "^7.21.5",
"babel-jest": "^29.5.0",
"babel-preset-jest": "^29.5.0",
"circom_tester": "^0.0.19",
"circomlib": "^2.0.5",
"circomlibjs": "^0.1.2",
"ffjavascript": "^0.2.59",
"jest": "^29.5.0"
"jest": "^29.5.0",
"typescript": "^5.2.2"
},
"dependencies": {
"@zk-email/zk-regex-circom": "^1.1.1"
Expand Down
1 change: 0 additions & 1 deletion packages/helpers/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ module.exports = {
presets: [
['@babel/preset-env', { targets: { node: 'current' } }],
'@babel/preset-typescript',
['@babel/preset-react', { "runtime": "automatic" }],
['jest']
],
};
11 changes: 8 additions & 3 deletions packages/helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "3.1.3",
"main": "dist",
"scripts": {
"build": "yarn g:tsc",
"test": "yarn g:jest tests/**/*.test.ts",
"build": "tsc",
"test": "jest tests/**/*.test.ts",
"prepublish": "yarn build",
"publish": "yarn npm publish --access=public"
},
Expand All @@ -16,7 +16,6 @@
"addressparser": "^1.0.1",
"atob": "^2.1.2",
"circomlibjs": "^0.1.7",
"ethers": "^6.8.0",
"libmime": "^5.2.1",
"localforage": "^1.10.0",
"lodash": "^4.17.21",
Expand All @@ -27,6 +26,9 @@
"snarkjs": "https://github.com/sampritipanda/snarkjs.git#fef81fc51d17a734637555c6edbd585ecda02d9e"
},
"devDependencies": {
"@babel/core": "^7.22.5",
"@babel/preset-env": "^7.22.2",
"@babel/preset-typescript": "^7.21.5",
"@types/addressparser": "^1.0.3",
"@types/atob": "^2.1.2",
"@types/jest": "^29.5.1",
Expand All @@ -35,6 +37,9 @@
"@types/node": "^18.0.6",
"@types/node-forge": "^1.3.2",
"@types/psl": "^1.1.2",
"babel-jest": "^29.5.0",
"babel-preset-jest": "^29.5.0",
"jest": "^29.5.0",
"msw": "^1.2.2"
},
"jest": {
Expand Down
35 changes: 24 additions & 11 deletions packages/helpers/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
{
"extends": "../../tsconfig.json",
"include": ["src/**/*"],
"exclude": [
"dist",
"tests",
"node_modules",
"./node_modules",
"./node_modules/*",
"./node_modules/@types/node/index.d.ts",
],
"compilerOptions": {
"target": "es2020",
"module": "commonjs",
"declaration": true,
"baseUrl": "./src",
"outDir": "dist"
}
"outDir": "dist",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "react-jsx",
"typeRoots": ["./node_modules/@types"],
"types": ["node", "jest"],
"incremental": true
},
"exclude": [
"node_modules",
"./node_modules",
"./node_modules/*",
"./node_modules/@types/node/index.d.ts"
]
}
26 changes: 0 additions & 26 deletions tsconfig.json

This file was deleted.

Loading

0 comments on commit a5b64d7

Please sign in to comment.