Sure perry!
root package.json
{
"name": "name",
"private": true,
"workspaces": [
"packages/*"
],
"devDependencies": {
"lerna": "^3.18.1"
},
"scripts": {
"postinstall": "lerna bootstrap",
"clean": "lerna clean",
"dev": "lerna run dev --parallel --stream",
"dev:frontend": "yarn workspace frontend run dev",
"dev:backend": "yarn workspace backend run dev",
"build:frontend": "yarn workspace frontend run build",
"test": "lerna run test",
"format": "lerna run format"
}
}
frontend package.json
{
"name": "frontend",
"private": false,
"version": "0.0.2",
"author": "Luiz Cieslak",
"dependencies": {
"@chakra-ui/core": "^0.7.0",
"@emotion/core": "^10.0.28",
"@emotion/styled": "^10.0.27",
"babel-plugin-transform-remove-console": "^6.9.4",
"dotenv": "^8.2.0",
"emotion-theming": "^10.0.27",
"gatsby": "2.21.16",
"gatsby-image": "2.4.2",
"gatsby-plugin-emotion": "^4.1.13",
"gatsby-plugin-manifest": "2.4.2",
"gatsby-plugin-netlify": "2.3.2",
"gatsby-plugin-offline": "3.2.1",
"gatsby-plugin-preact": "^3.1.20",
"gatsby-plugin-react-helmet": "^3.0.6",
"gatsby-plugin-robots-txt": "^1.5.0",
"gatsby-plugin-sharp": "2.6.1",
"gatsby-plugin-sitemap": "^2.2.30",
"gatsby-plugin-typescript": "^2.1.15",
"gatsby-plugin-webpack-bundle-analyzer": "^1.0.5",
"gatsby-source-filesystem": "^2.1.35",
"gatsby-transformer-sharp": "^2.3.2",
"preact": "^10.0.5",
"query-string": "^6.12.1",
"react": "16.13.1",
"react-dom": "16.13.1",
"react-helmet": "^5.2.1",
"react-icons": "^3.10.0",
"tsdx-test": "^0.0.1"
},
"keywords": [
"gatsby"
],
"license": "MIT",
"scripts": {
"build": "gatsby build",
"dev": "gatsby develop",
"serve": "gatsby serve",
"test": "jest",
"format": "prettier --write src/**/*.{ts,tsx,js,jsx,css}",
"gql-gen": "gql-gen --config codegen.yml",
"clean": "gatsby clean"
},
"devDependencies": {
"@graphql-codegen/cli": "^1.0.0",
"@graphql-codegen/fragment-matcher": "^1.8.3",
"@graphql-codegen/typescript": "^1.0.0",
"@graphql-codegen/typescript-operations": "^1.0.0",
"@testing-library/jest-dom": "^4.1.0",
"@testing-library/react": "^9.1.4",
"@types/jest": "^24.0.14",
"@types/node": "^12.0.2",
"@types/react-helmet": "^5.0.14",
"@typescript-eslint/eslint-plugin": "^1.10.2",
"@typescript-eslint/parser": "^1.10.2",
"babel-jest": "^24.9.0",
"eslint": "^6.6.0",
"eslint-config-prettier": "^6.5.0",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-react": "^7.16.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^24.9.0",
"prettier": "^1.19.0",
"ts-jest": "^24.1.0",
"tslint": "^5.20.1",
"tslint-react": "^4.1.0",
"typescript": "^3.7.2"
}
}
(notice the tsdx-test in depedencies)
tsdx-test package.json
{
"name": "tsdx-test",
"private": false,
"version": "0.0.1",
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"files": [
"dist",
"src"
],
"engines": {
"node": ">=10"
},
"scripts": {
"start": "tsdx watch",
"dev": "tsdx watch",
"build": "tsdx build",
"test": "tsdx test",
"lint": "tsdx lint",
"format": "prettier --write src/**/*.{ts,tsx,js,jsx,css}",
"prepare": "tsdx build"
},
"dependencies": {
"dotenv": "8.2.0"
},
"husky": {
"hooks": {
"pre-commit": "tsdx lint"
}
},
"author": "luizcieslak",
"module": "dist/tsdx-test.esm.js",
"devDependencies": {
"@types/jest": "24.9.1",
"@types/node": "12.12.34",
"husky": "^4.2.5",
"tsdx": "^0.13.2",
"tslib": "^1.11.2",
"tslint-config-prettier": "1.18.0",
"typescript": "^3.8.3"
}
}