Skip to content

Commit 26b5dac

Browse files
build: add support ESM2015 and UMD builds
1 parent 1ee9349 commit 26b5dac

16 files changed

+263
-32
lines changed

.eslintrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ rules:
2222
'@typescript-eslint/no-inferrable-types': off
2323
'@typescript-eslint/no-explicit-any': off
2424
'@typescript-eslint/member-ordering': 'error'
25+
'@typescript-eslint/no-unused-vars':
26+
- 'error'
27+
- args: 'none'
2528
# TODO: Remove these and fixed issues once we merged all the current PRs.
2629
'@typescript-eslint/ban-types': off
2730
'@typescript-eslint/no-unsafe-return': off

.github/workflows/continuous-deployment-workflow.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ jobs:
1515
- run: npm run prettier:check
1616
- run: npm run lint:check
1717
- run: npm run test:ci
18-
- run: npm run build
18+
- run: npm run build:es2015
19+
- run: npm run build:esm5
20+
- run: npm run build:cjs
21+
- run: npm run build:umd
22+
- run: npm run build:types
1923
- run: cp LICENSE build/LICENSE
2024
- run: cp README.md build/README.md
2125
- run: jq 'del(.devDependencies) | del(.scripts)' package.json > build/package.json

.github/workflows/continuous-integration-workflow.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,8 @@ jobs:
3636
- uses: actions/checkout@v1
3737
- uses: actions/setup-node@v1
3838
- run: npm ci --ignore-scripts
39-
- run: npm run build
39+
- run: npm run build:es2015
40+
- run: npm run build:esm5
41+
- run: npm run build:cjs
42+
- run: npm run build:umd
43+
- run: npm run build:types

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License
22

3-
Copyright (c) 2015-2020 Umed Khudoiberdiev
3+
Copyright (c) 2015-2020 TypeStack
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ coverage:
88
comment: off
99
ignore:
1010
- testing/**/*.ts
11-
- src/**/*.interface.ts
11+
- src/**/*.interface.ts

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ module.exports = {
77
tsConfig: 'tsconfig.spec.json',
88
},
99
},
10-
};
10+
};

package-lock.json

Lines changed: 168 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)