build: switch to @rollup/plugin-typescript

This commit is contained in:
Johannes Loher 2022-01-21 02:26:48 +01:00
parent 8f0c1d4df9
commit e40b3ce419
4 changed files with 480 additions and 1435 deletions

View file

@ -62,6 +62,7 @@
"@commitlint/config-conventional": "16.0.0",
"@guanghechen/rollup-plugin-copy": "1.8.6",
"@league-of-foundry-developers/foundry-vtt-types": "9.242.0",
"@rollup/plugin-typescript": "^8.3.0",
"@seald-io/nedb": "2.2.1",
"@types/fs-extra": "9.0.13",
"@types/jest": "27.4.0",
@ -82,10 +83,8 @@
"prettier": "2.5.1",
"rimraf": "3.0.2",
"rollup": "2.66.0",
"rollup-plugin-sourcemaps": "0.6.3",
"rollup-plugin-styles": "4.0.0",
"rollup-plugin-terser": "7.0.2",
"rollup-plugin-typescript2": "0.31.1",
"sass": "1.49.0",
"semver": "7.3.5",
"ts-jest": "27.1.3",

View file

@ -3,8 +3,7 @@
// SPDX-License-Identifier: MIT
import copy from "@guanghechen/rollup-plugin-copy";
import typescript from "rollup-plugin-typescript2";
import sourcemaps from "rollup-plugin-sourcemaps";
import typescript from "@rollup/plugin-typescript";
import styles from "rollup-plugin-styles";
import { terser } from "rollup-plugin-terser";
import { distDirectory, name, sourceDirectory } from "./tools/const.js";
@ -25,8 +24,7 @@ const config = {
assetFileNames: "[name].[ext]",
},
plugins: [
sourcemaps(),
typescript(),
typescript({ noEmitOnError: true }),
styles({
mode: ["extract", `css/${name}.css`],
url: false,

View file

@ -1,14 +1,13 @@
{
"compilerOptions": {
"target": "ES2020",
"lib": ["DOM", "ES2020"],
"target": "ES2021",
"lib": ["ES2021", "DOM"],
"types": ["@league-of-foundry-developers/foundry-vtt-types"],
"esModuleInterop": true,
"moduleResolution": "node",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noUncheckedIndexedAccess": true,
"sourceMap": true
"noUncheckedIndexedAccess": true
},
"include": ["src"]
}

1899
yarn.lock

File diff suppressed because it is too large Load diff