Merge pull request #244 from mathuo/234-improve-tsconfig-setup

chore: remove sourcemaps from rollup jobs
This commit is contained in:
mathuo 2023-04-11 20:29:40 +01:00 committed by GitHub
commit 75da885f91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -20,7 +20,7 @@
"build:esm": "cross-env ../../node_modules/.bin/tsc --project ./tsconfig.esm.json --extendedDiagnostics",
"build:modulefiles": "rollup -c",
"build": "npm run build:ci && npm run build:modulefiles",
"clean": "rimraf dist/ .build/",
"clean": "rimraf dist/ .build/ .rollup.cache/",
"prepublishOnly": "npm run rebuild && npm run test",
"docs": "typedoc",
"rebuild": "npm run clean && npm run build",
@ -65,4 +65,4 @@
"rollup-plugin-postcss": "^4.0.2",
"typedoc": "^0.23.25"
}
}
}

View File

@ -55,12 +55,12 @@ function createBundle(format, options) {
` * @license ${license}`,
` */`,
].join('\n'),
sourcemap: true,
};
const plugins = [
typescript({
tsconfig: 'tsconfig.esm.json',
sourceMap: false,
}),
];

View File

@ -20,7 +20,7 @@
"build:esm": "cross-env ../../node_modules/.bin/tsc --project ./tsconfig.esm.json --extendedDiagnostics",
"build:modulefiles": "rollup -c",
"build": "npm run build:ci && npm run build:modulefiles",
"clean": "rimraf dist/ .build/",
"clean": "rimraf dist/ .build/ .rollup.cache/",
"docs": "typedoc",
"prepublishOnly": "npm run rebuild && npm run test",
"rebuild": "npm run clean && npm run build",
@ -74,4 +74,4 @@
"rollup-plugin-postcss": "^4.0.2",
"typedoc": "^0.23.25"
}
}
}

View File

@ -56,7 +56,6 @@ function createBundle(format, options) {
` * @license ${license}`,
` */`,
].join('\n'),
sourcemap: true,
};
const plugins = [
@ -65,6 +64,7 @@ function createBundle(format, options) {
}),
typescript({
tsconfig: 'tsconfig.esm.json',
sourceMap: false,
}),
];