Skip to content

Commit

Permalink
fix: typescript build
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-zippenfenig committed Oct 19, 2023
1 parent cfca534 commit cb4f245
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
5 changes: 1 addition & 4 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
{
"pkgRoot": "lib",
"pkgRoot": "dist_ts",
"branches": [
"main"
],
"scripts": {
"postversion": "cp package.json lib/"
},
"plugins": [
[
"@semantic-release/commit-analyzer",
Expand Down
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@
"name": "@openmeteo/sdk",
"version": "0.0.0",
"description": "Open-Meteo SDK",
"files": [
"./**/*"
],
"scripts": {
"build": "tsc --project tsconfig.build.json",
"clean": "rm -rf ./lib/",
"build": "rm -rf dist_ts && tsc --project tsconfig.build.json && mkdir dist_ts && cp package.json dist_ts/package.json",
"clean": "rm -rf ./dist_ts/",
"prepare": "husky install",
"semantic-release": "semantic-release",
"typecheck": "tsc --noEmit"
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
// "sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
"outDir": "./lib/", /* Redirect output structure to the directory. */
"outDir": "./dist_ts/", /* Redirect output structure to the directory. */
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
// "composite": true, /* Enable project compilation */
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
Expand Down

0 comments on commit cb4f245

Please sign in to comment.