Skip to content

Commit 85ba73a

Browse files
committed
Initial commit
0 parents  commit 85ba73a

15 files changed

+157
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
dist
3+
results
4+
.nyc_output
5+
*.tsbuildinfo

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2019 Andrei Picus
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Whitespace-only changes.

lerna.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"packages": [
3+
"packages/*"
4+
],
5+
"version": "independent"
6+
}

package.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "lerna-ts",
3+
"private": true,
4+
"scripts": {
5+
"bootstrap": "lerna bootstrap --hoist",
6+
"clean": "lerna run clean",
7+
"build": "lerna run build",
8+
"pub": "lerna publish"
9+
},
10+
"devDependencies": {
11+
"lerna": "~3.14.0",
12+
"typescript": "~3.4.5"
13+
}
14+
}

packages/bar/package.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "@nighttrax/bar",
3+
"version": "1.0.0",
4+
"main": "dist/index",
5+
"types": "dist/index",
6+
"files": [
7+
"dist"
8+
],
9+
"scripts": {
10+
"build": "npm run clean && npm run compile",
11+
"clean": "rm -rf ./dist && rm -rf tsconfig.build.tsbuildinfo",
12+
"compile": "tsc -b tsconfig.build.json"
13+
},
14+
"dependencies": {
15+
"@nighttrax/foo": "^1.0.0"
16+
},
17+
"devDependencies": {
18+
"typescript": "~3.4.5"
19+
}
20+
}

packages/bar/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import meaningOfLife from '@nighttrax/foo';
2+
3+
console.log(meaningOfLife);

packages/bar/tsconfig.build.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
4+
"compilerOptions": {
5+
"composite": true,
6+
"declaration": true,
7+
"outDir": "./dist",
8+
"rootDir": "./src"
9+
},
10+
11+
"references": [{
12+
"path": "../foo/tsconfig.build.json"
13+
}],
14+
15+
"include": [
16+
"src/**/*"
17+
]
18+
}

packages/bar/tsconfig.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
4+
"include": [
5+
"src/**/*"
6+
]
7+
}

packages/foo/package.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "@nighttrax/foo",
3+
"version": "1.0.0",
4+
"main": "dist/index",
5+
"types": "dist/index",
6+
"files": [
7+
"dist"
8+
],
9+
"scripts": {
10+
"build": "npm run clean && npm run compile",
11+
"clean": "rm -rf ./dist && rm -rf tsconfig.build.tsbuildinfo",
12+
"compile": "tsc -b tsconfig.build.json"
13+
},
14+
"devDependencies": {
15+
"typescript": "~3.4.5"
16+
}
17+
}

0 commit comments

Comments
 (0)