Skip to content

Commit 99c9055

Browse files
committed
fix build output files
1 parent f1698d2 commit 99c9055

5 files changed

Lines changed: 11 additions & 10 deletions

File tree

.github/workflows/alpha.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ jobs:
1414
node-version: "12.x"
1515
- run: yarn install --frozen-lockfile
1616
- run: yarn build
17-
- run: yarn pack --filename=release.tgz
1817
- uses: Klemensas/action-autotag@stable
1918
id: update_tag
2019
with:
@@ -27,7 +26,7 @@ jobs:
2726
package: ./dist/package.json
2827
token: "${{ secrets.NPM_TOKEN }}"
2928
- name: Create Release
30-
if: "steps.update_tag.outputs.tagname && !contains(github.event.head_commit.message, '[skip publish]')"
29+
if: steps.update_tag.outputs.tagname && !contains(github.event.head_commit.message, '[skip publish]')
3130
uses: actions/create-release@v1
3231
id: create_release
3332
env:
@@ -36,7 +35,7 @@ jobs:
3635
tag_name: ${{ steps.update_tag.outputs.tagname }}
3736
release_name: Release ${{ steps.update_tag.outputs.tagname }}
3837
- name: Upload Release Asset
39-
if: "steps.update_tag.outputs.tagname && !contains(github.event.head_commit.message, '[skip publish]')"
38+
if: steps.update_tag.outputs.tagname && !contains(github.event.head_commit.message, '[skip publish]')
4039
id: upload-release-asset
4140
uses: actions/upload-release-asset@v1
4241
env:

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
package: ./dist/package.json
2626
token: "${{ secrets.NPM_TOKEN }}"
2727
- name: Create Release
28-
if: steps.update_tag.outputs.tagname
28+
if: steps.update_tag.outputs.tagname && !contains(github.event.head_commit.message, '[skip publish]')
2929
uses: actions/create-release@v1
3030
id: create_release
3131
env:
@@ -34,7 +34,7 @@ jobs:
3434
tag_name: ${{ steps.update_tag.outputs.tagname }}
3535
release_name: Release ${{ steps.update_tag.outputs.tagname }}
3636
- name: Upload Release Asset
37-
if: steps.update_tag.outputs.tagname
37+
if: steps.update_tag.outputs.tagname && !contains(github.event.head_commit.message, '[skip publish]')
3838
id: upload-release-asset
3939
uses: actions/upload-release-asset@v1
4040
env:

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
22
"name": "simple-scaffold",
3-
"version": "1.0.0-alpha.1",
3+
"version": "1.0.0-alpha.2",
44
"description": "Create files based on templates",
55
"repository": "https://github.com/chenasraf/simple-scaffold.git",
66
"author": "Chen Asraf <inbox@casraf.com>",
77
"license": "MIT",
88
"main": "index.js",
99
"bin": "cmd.js",
10-
"types": "index.d.ts",
10+
"types": "types.d.ts",
1111
"scripts": {
1212
"clean": "rm -rf dist/",
13-
"build": "yarn clean && tsc && chmod -R +x ./dist && cp ./package.json ./dist/package.json",
13+
"build": "yarn clean && tsc && chmod -R +x ./dist && cp ./package.json ./dist/ && cp ./README.md ./dist/",
1414
"dev": "tsc --watch",
1515
"start": "node dist/scaffold.js",
1616
"test": "jest --verbose",

src/types.d.ts renamed to src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export type FileResponseFn<T> = (fullPath: string, basedir: string, basename: st
33
export type FileResponse<T> = T | FileResponseFn<T>
44

55
export interface ScaffoldConfig {
6+
/** The name supplied for the output templates */
67
name: string
78
templates: string[]
89
output: FileResponse<string>

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@
1010
"declaration": true,
1111
"outDir": "dist",
1212
"strict": true,
13-
"sourceMap": true
13+
"sourceMap": true,
14+
"removeComments": false,
1415
},
1516
"include": [
1617
"src/index.ts",
17-
"src/cmd.ts"
18+
"src/cmd.ts",
1819
],
1920
"exclude": [
2021
"tests/*"

0 commit comments

Comments
 (0)