Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
gigobyte committed Mar 18, 2023
1 parent bcdad82 commit 79880ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions publish.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ $files = @("package.json", "LICENSE", "README.md", "package-lock.json")
Remove-Item -Recurse node_modules
Invoke-Expression "npm install"


if (Test-Path -Path lib) {
Remove-Item -Recurse lib
}

Invoke-Expression "npm test"

Invoke-Expression "npm run build"
Remove-Item -Recurse ./lib/*.test.*
Remove-Item -Recurse ./lib/esm/*.test.*
Expand All @@ -17,7 +20,5 @@ foreach ($file in $files) {

Set-Content ./lib/esm/package.json '{ "type": "module" }'

Invoke-Expression "npm test"

Invoke-Expression "cd lib"
Invoke-Expression "npm publish"
3 changes: 2 additions & 1 deletion tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"moduleResolution": "nodenext",
"outDir": "lib/esm",
"esModuleInterop": true
}
},
"exclude": ["site", "**/*.test.ts", "lib"]
}

0 comments on commit 79880ee

Please sign in to comment.