Skip to content

Commit a9a267d

Browse files
publishing and lerna setup
1 parent 1d40fb6 commit a9a267d

File tree

5 files changed

+98
-1506
lines changed

5 files changed

+98
-1506
lines changed

lerna.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"lerna": "2.2.0",
3+
"packages": [
4+
"packages/**",
5+
"oss"
6+
],
7+
"npmClient": "yarn",
8+
"useWorkspaces": true,
9+
"version": "1.0.1"
10+
}

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
"license": "MIT",
88
"private": true,
99
"scripts": {
10+
"lerna": "lerna",
1011
"site": "yarn workspace @howtographql/oss",
11-
"theme": "yarn workspace @howtographql/gatsby-theme"
12+
"theme": "yarn workspace @howtographql/gatsby-theme",
13+
"publish": "lerna publish --skip-git"
1214
},
1315
"workspaces": {
1416
"packages": [

packages/gatsby-theme/package.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
{
22
"name": "@howtographql/gatsby-theme",
3-
"version": "0.0.1",
3+
"version": "1.0.1",
44
"description": "The content/gatsby theme for htg2",
55
"main": "index.ts",
66
"license": "MIT",
7+
"private": false,
78
"scripts": {
89
"generate": "graphql-codegen"
910
},
11+
"publishConfig": {
12+
"access": "public"
13+
},
1014
"devDependencies": {
1115
"@graphql-codegen/cli": "^1.1.1",
1216
"@graphql-codegen/typescript": "^1.1.1",
@@ -97,4 +101,4 @@
97101
"html"
98102
]
99103
}
100-
}
104+
}

packages/server/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "with-db",
3-
"version": "0.0.0",
3+
"private": true,
44
"scripts": {
55
"dev": "yoga dev",
66
"build": "yoga build",
@@ -24,5 +24,6 @@
2424
"singleQuote": true,
2525
"trailingComma": "all"
2626
},
27-
"license": "MIT"
27+
"license": "MIT",
28+
"version": "1.0.1"
2829
}

0 commit comments

Comments
 (0)