mirror of
https://github.com/threeal/cmake-action.git
synced 2025-06-09 18:51:21 +00:00
build(typescript): modify distribution files to be generated to dist
directory
This commit is contained in:
parent
d75cb1e4e6
commit
2acca605c4
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"root": true,
|
"root": true,
|
||||||
"ignorePatterns": ["main"],
|
"ignorePatterns": ["dist"],
|
||||||
"extends": ["eslint:recommended", "prettier"],
|
"extends": ["eslint:recommended", "prettier"],
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"ecmaVersion": 2022,
|
"ecmaVersion": 2022,
|
||||||
|
12
.github/workflows/test.yaml
vendored
12
.github/workflows/test.yaml
vendored
@ -66,7 +66,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
sparse-checkout: |
|
sparse-checkout: |
|
||||||
action.yaml
|
action.yaml
|
||||||
main
|
dist
|
||||||
test
|
test
|
||||||
sparse-checkout-cone-mode: false
|
sparse-checkout-cone-mode: false
|
||||||
|
|
||||||
@ -100,7 +100,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
sparse-checkout: |
|
sparse-checkout: |
|
||||||
action.yaml
|
action.yaml
|
||||||
main
|
dist
|
||||||
test
|
test
|
||||||
sparse-checkout-cone-mode: false
|
sparse-checkout-cone-mode: false
|
||||||
|
|
||||||
@ -129,7 +129,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
sparse-checkout: |
|
sparse-checkout: |
|
||||||
action.yaml
|
action.yaml
|
||||||
main
|
dist
|
||||||
test
|
test
|
||||||
sparse-checkout-cone-mode: false
|
sparse-checkout-cone-mode: false
|
||||||
|
|
||||||
@ -153,7 +153,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
sparse-checkout: |
|
sparse-checkout: |
|
||||||
action.yaml
|
action.yaml
|
||||||
main
|
dist
|
||||||
test
|
test
|
||||||
sparse-checkout-cone-mode: false
|
sparse-checkout-cone-mode: false
|
||||||
|
|
||||||
@ -177,7 +177,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
sparse-checkout: |
|
sparse-checkout: |
|
||||||
action.yaml
|
action.yaml
|
||||||
main
|
dist
|
||||||
test
|
test
|
||||||
sparse-checkout-cone-mode: false
|
sparse-checkout-cone-mode: false
|
||||||
|
|
||||||
@ -206,7 +206,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
sparse-checkout: |
|
sparse-checkout: |
|
||||||
action.yaml
|
action.yaml
|
||||||
main
|
dist
|
||||||
test
|
test
|
||||||
sparse-checkout-cone-mode: false
|
sparse-checkout-cone-mode: false
|
||||||
|
|
||||||
|
@ -52,4 +52,4 @@ outputs:
|
|||||||
value: ${{ steps.process-inputs.outputs.build-dir }}
|
value: ${{ steps.process-inputs.outputs.build-dir }}
|
||||||
runs:
|
runs:
|
||||||
using: node20
|
using: node20
|
||||||
main: main/index.mjs
|
main: dist/index.mjs
|
||||||
|
0
main/index.mjs → dist/index.mjs
generated
vendored
0
main/index.mjs → dist/index.mjs
generated
vendored
@ -3,8 +3,8 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc && ncc build src/main.mjs -o main",
|
"build": "tsc && ncc build src/main.mjs -o dist",
|
||||||
"format": "prettier --write . !main !README.md",
|
"format": "prettier --write . !dist !README.md",
|
||||||
"lint": "eslint --ignore-path .gitignore .",
|
"lint": "eslint --ignore-path .gitignore .",
|
||||||
"test": "tsc && jest"
|
"test": "tsc && jest"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user