Skip to content

Commit

Permalink
fix: ci: build configs for export in npm dist
Browse files Browse the repository at this point in the history
  • Loading branch information
manylov committed Oct 10, 2023
1 parent e3efb9a commit 17a557f
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ jobs:
run: forge build
timeout-minutes: 10


- name: Build dist
run: yarn build

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3
env:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
cache
.env
npm-root
types
types
dist
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"files": [
"contracts",
"config"
"dist"
],
"license": "BUSL-1.1",
"scripts": {
Expand All @@ -24,7 +24,8 @@
"lint": "eslint \"**/*.ts\" --fix",
"lint:ci": "eslint \"**/*.ts\"",
"typecheck:ci": "tsc --noEmit",
"forge-install": "forge install --no-commit foundry-rs/forge-std"
"forge-install": "forge install --no-commit foundry-rs/forge-std",
"build": "tsc --p tsconfig.build.json"
},
"dependencies": {},
"devDependencies": {
Expand Down
11 changes: 11 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "./tsconfig.json",
"exclude": [
"**/*.spec.ts",
"node_modules",
"dist",
"forge-out",
"scripts",
"lib"
]
}
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
"declaration": true /* Generates corresponding '.d.ts' file. */,
// "composite": true,
"declarationMap": true,
// "declarationMap": true,
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
"sourceMap": true /* Generates corresponding '.map' file. */,
// "sourceMap": true /* Generates corresponding '.map' file. */,
// "outFile": "./", /* Concatenate and emit output to single file. */
// "outDir": "./build", /* Redirect output structure to the directory. */
// "composite": true, /* Enable project compilation */
Expand Down Expand Up @@ -64,7 +64,7 @@
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */,
"useUnknownInCatchVariables": false,
"resolveJsonModule": true,
"outDir": "./npm-root/"
"outDir": "./dist"
},
"include": ["config"],
"exclude": ["node_modules", "lib", "npm-root"]
Expand Down

0 comments on commit 17a557f

Please sign in to comment.