build: switch to @rollup/plugin-typescript
This commit is contained in:
parent
8f0c1d4df9
commit
e40b3ce419
|
@ -62,6 +62,7 @@
|
||||||
"@commitlint/config-conventional": "16.0.0",
|
"@commitlint/config-conventional": "16.0.0",
|
||||||
"@guanghechen/rollup-plugin-copy": "1.8.6",
|
"@guanghechen/rollup-plugin-copy": "1.8.6",
|
||||||
"@league-of-foundry-developers/foundry-vtt-types": "9.242.0",
|
"@league-of-foundry-developers/foundry-vtt-types": "9.242.0",
|
||||||
|
"@rollup/plugin-typescript": "^8.3.0",
|
||||||
"@seald-io/nedb": "2.2.1",
|
"@seald-io/nedb": "2.2.1",
|
||||||
"@types/fs-extra": "9.0.13",
|
"@types/fs-extra": "9.0.13",
|
||||||
"@types/jest": "27.4.0",
|
"@types/jest": "27.4.0",
|
||||||
|
@ -82,10 +83,8 @@
|
||||||
"prettier": "2.5.1",
|
"prettier": "2.5.1",
|
||||||
"rimraf": "3.0.2",
|
"rimraf": "3.0.2",
|
||||||
"rollup": "2.66.0",
|
"rollup": "2.66.0",
|
||||||
"rollup-plugin-sourcemaps": "0.6.3",
|
|
||||||
"rollup-plugin-styles": "4.0.0",
|
"rollup-plugin-styles": "4.0.0",
|
||||||
"rollup-plugin-terser": "7.0.2",
|
"rollup-plugin-terser": "7.0.2",
|
||||||
"rollup-plugin-typescript2": "0.31.1",
|
|
||||||
"sass": "1.49.0",
|
"sass": "1.49.0",
|
||||||
"semver": "7.3.5",
|
"semver": "7.3.5",
|
||||||
"ts-jest": "27.1.3",
|
"ts-jest": "27.1.3",
|
||||||
|
|
|
@ -3,8 +3,7 @@
|
||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
import copy from "@guanghechen/rollup-plugin-copy";
|
import copy from "@guanghechen/rollup-plugin-copy";
|
||||||
import typescript from "rollup-plugin-typescript2";
|
import typescript from "@rollup/plugin-typescript";
|
||||||
import sourcemaps from "rollup-plugin-sourcemaps";
|
|
||||||
import styles from "rollup-plugin-styles";
|
import styles from "rollup-plugin-styles";
|
||||||
import { terser } from "rollup-plugin-terser";
|
import { terser } from "rollup-plugin-terser";
|
||||||
import { distDirectory, name, sourceDirectory } from "./tools/const.js";
|
import { distDirectory, name, sourceDirectory } from "./tools/const.js";
|
||||||
|
@ -25,8 +24,7 @@ const config = {
|
||||||
assetFileNames: "[name].[ext]",
|
assetFileNames: "[name].[ext]",
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
sourcemaps(),
|
typescript({ noEmitOnError: true }),
|
||||||
typescript(),
|
|
||||||
styles({
|
styles({
|
||||||
mode: ["extract", `css/${name}.css`],
|
mode: ["extract", `css/${name}.css`],
|
||||||
url: false,
|
url: false,
|
||||||
|
|
|
@ -1,14 +1,13 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "ES2020",
|
"target": "ES2021",
|
||||||
"lib": ["DOM", "ES2020"],
|
"lib": ["ES2021", "DOM"],
|
||||||
"types": ["@league-of-foundry-developers/foundry-vtt-types"],
|
"types": ["@league-of-foundry-developers/foundry-vtt-types"],
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"forceConsistentCasingInFileNames": true,
|
"forceConsistentCasingInFileNames": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"noUncheckedIndexedAccess": true,
|
"noUncheckedIndexedAccess": true
|
||||||
"sourceMap": true
|
|
||||||
},
|
},
|
||||||
"include": ["src"]
|
"include": ["src"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue