Skip to content

Commit

Permalink
Merge pull request #5 from infysumanta/dev
Browse files Browse the repository at this point in the history
 build process update to tsup
  • Loading branch information
infysumanta authored Feb 17, 2024
2 parents 8321e08 + f60ab4f commit 4917c87
Show file tree
Hide file tree
Showing 38 changed files with 7,651 additions and 233 deletions.
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"parser": "@typescript-eslint/parser",
"extends": ["plugin:@typescript-eslint/recommended", "prettier"],
"parserOptions": {
"sourceType": "module"
},
"rules": {
"prettier/prettier": "error"
},
"plugins": ["@typescript-eslint", "prettier"]
}
18 changes: 13 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,29 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
publish:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
if: ${{ github.event.workflow_run.conclusion == 'success' && github.repository_owner == 'infysumanta' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Checkout Repo
uses: actions/checkout@v3
with:
node-version: 16.x
fetch-depth: 0

- name: Use Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'

- run: npm install --frozen-lockfile
- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
with:
publish: npm run release
commit: 'chore(release): version packages'
title: 'chore(release): version packages'
publish: npm run publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_ENV: 'production'
6 changes: 3 additions & 3 deletions config/fileTransformer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const path = require('path');
const path = require('path')

module.exports = {
process(src, filename, config, options) {
return 'module.exports = ' + JSON.stringify(path.basename(filename)) + ';';
return 'module.exports = ' + JSON.stringify(path.basename(filename)) + ';'
},
};
}
7 changes: 0 additions & 7 deletions config/tsconfig.cjs.json

This file was deleted.

7 changes: 0 additions & 7 deletions config/tsconfig.esm.json

This file was deleted.

8 changes: 0 additions & 8 deletions config/tsconfig.types.json

This file was deleted.

7 changes: 0 additions & 7 deletions config/tsconfig.umd.json

This file was deleted.

30 changes: 0 additions & 30 deletions config/webpack.config.js

This file was deleted.

11 changes: 0 additions & 11 deletions eslintrc.js

This file was deleted.

2 changes: 0 additions & 2 deletions index.ts

This file was deleted.

Loading

0 comments on commit 4917c87

Please sign in to comment.