Skip to content

Commit 21e4dba

Browse files
committed
Added build:win, updated config in cia
1 parent 1fd6e9b commit 21e4dba

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

boilerplates/telescope/packages/__MODULENAME__/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
44
"outDir": "dist",
5-
"rootDir": ".",
5+
"rootDir": "src",
66
},
77
"include": ["src/**/*.ts"],
88
"exclude": ["dist", "node_modules", "**/*.spec.*", "**/*.test.*"]

packages/create-interchain-app/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ When you need to remove/generate locks for all nested packages, simply run `yarn
249249
yarn locks
250250
```
251251

252+
Windows developers: when build packages/create-interchain-app change rootDir to '.' in tsconfig.json for local build
253+
252254
## Related
253255

254256
Checkout these related projects:

packages/create-interchain-app/package.json

+7-4
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@
1919
"dist"
2020
],
2121
"scripts": {
22-
"build:clean": "rimraf dist/**",
22+
"build:clean": "rimraf dist",
2323
"build:copy": "copyfiles -f ../../LICENSE-MIT ../../LICENSE-Apache README.md package.json dist",
24-
"build:dist": "yarn tsc -p tsconfig.json --outDir dist --module commonjs || true",
24+
"build:dist": "yarn tsc -p tsconfig.json --outDir dist --module commonjs",
2525
"build:chmod": "chmod +x ./dist/create-interchain-app.js",
2626
"build": "npm run build:clean && npm run build:dist && npm run build:copy && npm run build:chmod",
27+
"build:win": "npm run build:clean && npm run build:dist && npm run build:copy",
2728
"prepare": "npm run build",
2829
"dev": "node ./dist/create-interchain-app",
2930
"lint": "eslint .",
@@ -61,7 +62,9 @@
6162
"jest-in-case": "^1.0.2",
6263
"prettier": "^2.1.2",
6364
"ts-jest": "^29.0.3",
64-
"typescript": "^5.1.6"
65+
"typescript": "^5.1.6",
66+
"copyfiles": "^2.4.1",
67+
"rimraf": "^6.0.1"
6568
},
6669
"dependencies": {
6770
"@cosmology/telescope": "^1.12.4",
@@ -74,4 +77,4 @@
7477
"semver": "^7.6.0",
7578
"shelljs": "0.8.5"
7679
}
77-
}
80+
}

packages/create-interchain-app/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"baseUrl": ".",
4-
"rootDir": ".",
4+
"rootDir": "src",
55
"skipLibCheck": true,
66
"emitDeclarationOnly": false,
77
"declaration": true,

0 commit comments

Comments
 (0)