Skip to content

Commit 4222b73

Browse files
authored
Merge pull request #1 from techconative/fix/esm
Fix/esm
2 parents dd70ecc + 67931ae commit 4222b73

File tree

15 files changed

+4850
-2467
lines changed

15 files changed

+4850
-2467
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export default {
22
parser: '@typescript-eslint/parser',
33
extends: ['plugin:@typescript-eslint/recommended', 'prettier'],
44
parserOptions: {

.github/workflows/publish.yml

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,24 @@
1-
name: Release & Publish
1+
name: Publish
22

33
on:
44
push:
55
tags:
66
- 'v*'
77

88
jobs:
9-
release:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- name: Checkout code
13-
uses: actions/checkout@v2
14-
- name: Create Release
15-
id: create_release
16-
uses: actions/create-release@v1
17-
env:
18-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19-
with:
20-
tag_name: ${{ github.ref }}
21-
release_name: ${{ github.ref }}
22-
draft: false
23-
prerelease: false
24-
259
publish:
2610
runs-on: ubuntu-latest
2711
steps:
28-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
2913
- name: Setup .npmrc file to publish to npm
30-
uses: actions/setup-node@v1
14+
uses: actions/setup-node@v4
3115
with:
32-
node-version: '14.x'
16+
node-version: '20.x'
3317
registry-url: 'https://registry.npmjs.org'
3418
- name: Install modules
3519
run: npm install
3620
- name: Build
3721
run: npm run build
38-
- name: Add npm scope
39-
run: npm run addscope
4022
- name: Publish to npm
4123
run: npm publish --access public
4224
env:

.github/workflows/test.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
. "$(dirname "$0")/_/husky.sh"
33
. "$(dirname "$0")/common.sh"
44

5-
npm run test
5+
#npm run test

.prettierrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export default {
22
semi: false,
33
singleQuote: true,
44
trailingComma: 'es5',

commitlint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = {extends: ['@commitlint/config-conventional']}
1+
export default {extends: ['@commitlint/config-conventional']}

config/fileTransformer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// source: https://jestjs.io/docs/code-transformation#examples
22

3-
const path = require('path')
3+
import path from 'path'
44

5-
module.exports = {
5+
export default {
66
process(src, filename, config, options) {
77
return 'module.exports = ' + JSON.stringify(path.basename(filename)) + ';'
88
},

config/webpack.config.js

Lines changed: 0 additions & 30 deletions
This file was deleted.

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export default {
22
roots: ['<rootDir>/test'],
33
testMatch: [
44
'**/__tests__/**/*.+(ts|tsx|js)',

0 commit comments

Comments
 (0)