Skip to content

Commit

Permalink
chore(libuild): remove unuse dep and temp dir (#4386)
Browse files Browse the repository at this point in the history
  • Loading branch information
10Derozan authored Aug 7, 2023
1 parent cc5f49e commit da96607
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 11,157 deletions.
3 changes: 2 additions & 1 deletion packages/libuild/libuild-core/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = {
root: true,
extends: ['@modern-js'],
extends: ['@modern-js/eslint-config'],
ignorePatterns: ['scripts/*.ts'],
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
Expand Down
1 change: 1 addition & 0 deletions packages/libuild/libuild-core/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist
lib
temp
*.cpuprofile
4 changes: 0 additions & 4 deletions packages/libuild/libuild-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
"@types/picomatch": "2.3.0",
"@types/rimraf": "3.0.2",
"@types/sass": "1.43.1",
"@types/semver": "7.3.9",
"@types/source-map-support": "0.5.4",
"@types/stack-trace": "0.0.30",
"@types/yargs": "17.0.4",
Expand All @@ -77,7 +76,6 @@
"enhanced-resolve": "5.8.3",
"error-stack": "1.0.3",
"es-module-lexer": "0.9.3",
"esbuild-plugin-license": "1.2.2",
"fs-extra": "10.0.0",
"import-lazy": "4.0.0",
"mime-types": "2.1.33",
Expand All @@ -87,7 +85,6 @@
"postcss-load-config": "3.1.4",
"postcss-modules": "4.3.0",
"rimraf": "3.0.2",
"semver": "7.3.5",
"stack-trace": "1.0.0-pre1",
"strip-ansi": "7.0.1",
"tapable": "2.2.1",
Expand All @@ -96,7 +93,6 @@
"tsd": "0.19.1",
"tsm": "2.3.0",
"typescript": "4.4.4",
"utility-types": "3.10.0",
"yargs": "17.2.1",
"commander": "9.4.0",
"magic-string": "0.26.4",
Expand Down
30 changes: 0 additions & 30 deletions packages/libuild/libuild-core/scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import fse from 'fs-extra';
import { resolvePathAndQuery } from '@modern-js/libuild-utils';
import { Extractor, ExtractorConfig } from '@microsoft/api-extractor';
import remapping from '@ampproject/remapping';
import esbuildPluginLicense from 'esbuild-plugin-license';

let rebuildCnt = 0;

Expand Down Expand Up @@ -207,35 +206,6 @@ async function run() {
workerPlugin(),
rawPlugin(),
enhancedResolvePlugin(),
!args.watch &&
esbuildPluginLicense({
thirdParty: {
output: {
file: '../LICENSE.md',
template(dependencies, self) {
return `
# Libuild license
Libuild is released under the MIT license:
The MIT License (MIT)
Copyright (c) 2022 [Libuild](https://github.com/modern-js/libuild)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
## Licenses of bundled dependencies
${dependencies.map((dependency) => `- ${dependency.packageJson.name} -- ${dependency.packageJson.license}`).join('\n')}
`.trimStart();
},
},
},
}),
].filter(Boolean) as Plugin[],
};

Expand Down
Loading

0 comments on commit da96607

Please sign in to comment.