Skip to content

Commit 53e4202

Browse files
committed
Initial structure
0 parents  commit 53e4202

9 files changed

+85
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
build/
2+
node_modules/

package-lock.json

Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "tsc-build-cache-invalidation",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "build/src/main/index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1",
8+
"build": "tsc --build",
9+
"clean": "rm -rf build/*"
10+
},
11+
"author": "Jason Merrill",
12+
"license": "ISC",
13+
"dependencies": {
14+
"typescript": "^5.0.4"
15+
}
16+
}

src/hello/hello.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { LogFn, message } from 'main/const'
2+
3+
export const hello: LogFn = () => {
4+
console.log(message);
5+
}

src/main/const.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export const message = "Hello World";
2+
3+
export type LogFn = ()=>void

src/main/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { hello } from '../hello/hello';
2+
3+
hello();

src/main/tsconfig.json

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

tsconfig-base.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"compilerOptions": {
3+
"strict": true,
4+
"composite": true,
5+
"rootDir": "src",
6+
"baseUrl": "src",
7+
"outDir": "build"
8+
}
9+
}

tsconfig.json

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

0 commit comments

Comments
 (0)