Update package.json values for output
This commit is contained in:
@@ -59,9 +59,29 @@ jobs:
|
|||||||
}' >> index.ts
|
}' >> index.ts
|
||||||
|
|
||||||
VERSION="${{ steps.get_version.outputs.VERSION }}"
|
VERSION="${{ steps.get_version.outputs.VERSION }}"
|
||||||
|
REPO_URL="${{ github.server_url }}/${{ github.repository }}.git"
|
||||||
jq --arg ver "$VERSION" \
|
jq --arg ver "$VERSION" \
|
||||||
--arg name "@owlboard/api-schema-types" \
|
--arg name "@owlboard/api-schema-types" \
|
||||||
'.name = $name | .version = $ver | .type = "module" | .main = "./dist/index.js" | .types = "./dist/index.d.ts"' \
|
--arg repo "$REPO_URL" \
|
||||||
|
'.name = $name |
|
||||||
|
.description = "TypeScript type definitions for OwlBoard API schemas" |
|
||||||
|
.author = "Frederick Boniface" |
|
||||||
|
.version = $ver |
|
||||||
|
.type = "module" |
|
||||||
|
.main = "./dist/index.js" |
|
||||||
|
.license = "MIT" |
|
||||||
|
.repository = { "type": "git", "url": $repo } |
|
||||||
|
.files = ["dist"] |
|
||||||
|
.sideEffects = false |
|
||||||
|
.dependencies = {} |
|
||||||
|
.devDependencies = {} |
|
||||||
|
.exports = {
|
||||||
|
".": {
|
||||||
|
"types": "./dist/index.d.ts",
|
||||||
|
"import": "./dist/index.js"
|
||||||
|
}
|
||||||
|
} |
|
||||||
|
.types = "./dist/index.d.ts"' \
|
||||||
package.json > package.json.new && mv package.json.new package.json
|
package.json > package.json.new && mv package.json.new package.json
|
||||||
|
|
||||||
# Compile
|
# Compile
|
||||||
|
|||||||
Reference in New Issue
Block a user