Skip to content

Commit

Permalink
fix: packaging of multiple packages
Browse files Browse the repository at this point in the history
  • Loading branch information
jrea committed Mar 24, 2022
1 parent ca8a608 commit cb8b85f
Show file tree
Hide file tree
Showing 29 changed files with 47 additions and 32 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/package.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish @theniledev/nile-js to GitHub Packages
name: Publish @theniledev packages to GitHub Packages

on:
push:
Expand Down Expand Up @@ -26,7 +26,7 @@ jobs:
# Defaults to the user or organization that owns the workflow file
scope: '@theniledev'

- name: Install @theniledev/nile-js
- name: Install @theniledev/js
working-directory: lib/nile
run: yarn install --no-lockfile

Expand Down
2 changes: 1 addition & 1 deletion lib/nile/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @theniledev/nile-js
# @theniledev/js

## Prereq

Expand Down
10 changes: 9 additions & 1 deletion lib/nile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"size": "size-limit",
"analyze": "size-limit --why"
},
"name": "@theniledev/nile-js",
"name": "@theniledev/js",
"author": "jrea",
"module": "dist/nile.esm.js",
"size-limit": [
Expand All @@ -42,5 +42,13 @@
"typedoc": "^0.22.13",
"typedoc-plugin-markdown": "^3.11.14",
"typescript": "^4.6.2"
},
"repository": {
"type": "git",
"url": "https://github.com/TheNileDev/nile-js.git",
"directory": "lib/nile"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com/"
}
}
4 changes: 2 additions & 2 deletions lib/nile/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1729,9 +1729,9 @@ __metadata:
languageName: node
linkType: hard

"@theniledev/nile-js@workspace:.":
"@theniledev/js@workspace:.":
version: 0.0.0-use.local
resolution: "@theniledev/nile-js@workspace:."
resolution: "@theniledev/js@workspace:."
dependencies:
"@size-limit/preset-small-lib": ^7.0.8
"@types/jest": ^27.4.1
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"packages/*"
],
"scripts": {
"build": "yarn workspace @theniledev/nile-js build && yarn workspace @theniledev/dashboard build",
"build": "yarn workspace @theniledev/js build && yarn workspace @theniledev/react build",
"lint": "yarn eslint . --max-warnings=0",
"buildDocs": "yarn workspace @theniledev/nile-js typedoc --plugin typedoc-plugin-markdown --hideBreadcrumbs true src/index.ts",
"buildDocs": "yarn workspace @theniledev/js typedoc --plugin typedoc-plugin-markdown --hideBreadcrumbs true src/index.ts",
"publish": "yarn lerna publish --registry=https://npm.pkg.github.com/"
},
"prettier": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 10 additions & 3 deletions packages/dashboard/package.json → packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "@theniledev/dashboard",
"name": "@theniledev/react",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
Expand All @@ -10,7 +9,7 @@
},
"dependencies": {
"@codemirror/lang-javascript": "^0.19.7",
"@theniledev/nile-js": "^0.1.0",
"@theniledev/js": "^0.1.0",
"@uiw/react-codemirror": "^4.5.1",
"next": "12.1.0",
"react": "17.0.2",
Expand All @@ -20,5 +19,13 @@
"@types/node": "17.0.21",
"@types/react": "17.0.40",
"typescript": "4.6.2"
},
"repository": {
"type": "git",
"url": "https://github.com/TheNileDev/nile-js.git",
"directory": "packages/react"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com/"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const Home: NextPage = () => {
return (
<div className={styles.container}>
<Head>
<title>nile-js testing</title>
<title>nile js testing</title>
<meta
name="description"
content="amalgamation of code for lib testing"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"paths": { "@theniledev/nile-js": ["../../lib/nile"] }
"paths": { "@theniledev/js": ["../../lib/nile"] }
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Nile from '@theniledev/nile-js';
import Nile from '@theniledev/js';
const nile = new Nile({ apiUrl: 'http://localhost:8080' });

export default nile;
36 changes: 18 additions & 18 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3371,25 +3371,9 @@ __metadata:
languageName: node
linkType: hard

"@theniledev/dashboard@workspace:packages/dashboard":
"@theniledev/js@^0.1.0, @theniledev/js@workspace:lib/nile":
version: 0.0.0-use.local
resolution: "@theniledev/dashboard@workspace:packages/dashboard"
dependencies:
"@codemirror/lang-javascript": ^0.19.7
"@theniledev/nile-js": ^0.0.1
"@types/node": 17.0.21
"@types/react": 17.0.40
"@uiw/react-codemirror": ^4.5.1
next: 12.1.0
react: 17.0.2
react-dom: 17.0.2
typescript: 4.6.2
languageName: unknown
linkType: soft

"@theniledev/nile-js@^0.0.1, @theniledev/nile-js@workspace:lib/nile":
version: 0.0.0-use.local
resolution: "@theniledev/nile-js@workspace:lib/nile"
resolution: "@theniledev/js@workspace:lib/nile"
dependencies:
"@size-limit/preset-small-lib": ^7.0.8
"@types/jest": ^27.4.1
Expand Down Expand Up @@ -3422,6 +3406,22 @@ __metadata:
languageName: unknown
linkType: soft

"@theniledev/react@workspace:packages/react":
version: 0.0.0-use.local
resolution: "@theniledev/react@workspace:packages/react"
dependencies:
"@codemirror/lang-javascript": ^0.19.7
"@theniledev/js": ^0.1.0
"@types/node": 17.0.21
"@types/react": 17.0.40
"@uiw/react-codemirror": ^4.5.1
next: 12.1.0
react: 17.0.2
react-dom: 17.0.2
typescript: 4.6.2
languageName: unknown
linkType: soft

"@tootallnate/once@npm:1":
version: 1.1.2
resolution: "@tootallnate/once@npm:1.1.2"
Expand Down

0 comments on commit cb8b85f

Please sign in to comment.