Skip to content

Commit

Permalink
Generate d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaliytv committed Oct 8, 2022
1 parent bf88bef commit ba03963
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ concurrency:
jobs:
build:
name: Mega-Linter
runs-on: self-hosted
# runs-on: ubuntu-latest
# runs-on: self-hosted
runs-on: ubuntu-latest
steps:
# Git Checkout
- name: Checkout Code
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18


- name: Generate d.ts
run: npx -p typescript tsc src/**/*.js --declaration --allowJs --emitDeclarationOnly --outDir types

- name: standard fix
run: yarn standard

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "smsc",
"version": "2.0.1",
"version": "2.0.2",
"description": "Vodafone & SMSC.ru api",
"type": "module",
"main": "./src/index.js",
Expand All @@ -11,7 +11,8 @@
"scripts": {
"standard": "npx standard --fix",
"fix": "npx standard --fix && npx prettier --write .",
"test": "env $(cat .env .env.secret) npx coverage-node test/index.js"
"test": "env $(cat .env .env.secret) npx coverage-node test/index.js",
"types": "npx -p typescript tsc src/**/*.js --declaration --allowJs --emitDeclarationOnly --outDir types"
},
"keywords": [
"vodafone",
Expand Down

0 comments on commit ba03963

Please sign in to comment.