Skip to content

Commit

Permalink
rollup typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
awran5 committed Sep 25, 2021
1 parent 946bbac commit 4f28627
Show file tree
Hide file tree
Showing 5 changed files with 181 additions and 244 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
node-version: [12.x]
node-version: [14.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"main": "dist/index.js",
"source": "src/index.tsx",
"engines": {
"node": ">=12"
"node": ">=14"
},
"scripts": {
"lint": "eslint \"src/**/*.{js,ts,tsx}\"",
Expand All @@ -30,6 +30,7 @@
"devDependencies": {
"@rollup/plugin-commonjs": "^20.0.0",
"@rollup/plugin-node-resolve": "^13.0.5",
"@rollup/plugin-typescript": "^8.2.5",
"@semantic-release/changelog": "^6.0.0",
"@semantic-release/commit-analyzer": "^9.0.1",
"@semantic-release/git": "^10.0.0",
Expand Down Expand Up @@ -65,7 +66,6 @@
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-postcss": "^4.0.1",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.30.0",
"semantic-release": "^18.0.0",
"typescript": "^4.4.3"
},
Expand Down
3 changes: 1 addition & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import typescript from 'rollup-plugin-typescript2'
import typescript from '@rollup/plugin-typescript'
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
import resolve from '@rollup/plugin-node-resolve'
import commonjs from '@rollup/plugin-commonjs'
import postcss from 'rollup-plugin-postcss'
import autoprefixer from 'autoprefixer'
import copy from 'rollup-plugin-copy'

import { terser } from 'rollup-plugin-terser'
import packageJson from './package.json'

Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"baseUrl": "./",
"target": "es5",
"target": "ES6",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
Expand All @@ -10,7 +10,7 @@
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"module": "ES2015",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
Expand Down
Loading

0 comments on commit 4f28627

Please sign in to comment.