Skip to content

Commit

Permalink
Move extlib to extension-library
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas101 committed Dec 10, 2024
1 parent 8d8ef54 commit b836ef4
Show file tree
Hide file tree
Showing 13 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build/generate_eslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ await writeConfig(path.join(srcDir, 'extension'), {
root: true,
overrides: [jsEslint, mergeEnv(tsEslint, { browser: true })]
})
await writeConfig(path.join(srcDir, 'extlib'), {
await writeConfig(path.join(srcDir, 'extension-library'), {
root: true,
overrides: [jsEslint, mergeEnv(tsEslint, { browser: true })]
})
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"watch": "webpack --watch --mode=development",
"start": "webpack --mode=development",
"start:extension": "webpack --mode=development --env task=extension",
"start:extlib": "webpack --mode=development --env task=extlib",
"start:extension-library": "webpack --mode=development --env task=extension-library",
"start:native": "webpack --mode=development --env task=native"
},
"engines": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = function ({ outDir, nodeModulesDir, pkg, config }, { mode }) {
},
output: {
filename: '[name].js',
path: path.join(outDir, 'extlib'),
path: path.join(outDir, 'extension-library'),
library: config.extensionLibrary.name,
libraryTarget: 'umd',
umdNamedDefine: true
Expand All @@ -27,15 +27,15 @@ module.exports = function ({ outDir, nodeModulesDir, pkg, config }, { mode }) {
rollupTypesPlugin(
path.join(srcDir, 'index.ts'),
path.join(__dirname, 'types-rollup.config.js'),
path.join(outDir, 'extlib/index.d.ts')
path.join(outDir, 'extension-library/index.d.ts')
),
new CleanWebpackPlugin(),
new CaseSensitivePathsPlugin(),
new CircularDependencyPlugin({ exclude: /node_modules/, failOnError: true, allowAsyncCycles: false }),
new CopyWebpackPlugin({
patterns: [
{
from: path.join(srcDir, 'extlib-package.json'),
from: path.join(srcDir, 'extension-library-package.json'),
to: 'package.json',
force: true,
transform: (content) => {
Expand All @@ -47,7 +47,7 @@ module.exports = function ({ outDir, nodeModulesDir, pkg, config }, { mode }) {
return JSON.stringify(manifest, null, 2)
}
},
{ from: path.join(srcDir, 'extlib-README.md'), to: 'README.md', force: true }
{ from: path.join(srcDir, 'extension-library-README.md'), to: 'README.md', force: true }
]
}),
new MiniCssExtractPlugin()
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const fs = require('fs-extra')

const registry = {
extension: require('./src/extension/webpack.config.cjs'),
extlib: require('./src/extlib/webpack.config.cjs'),
'extension-library': require('./src/extension-library/webpack.config.cjs'),
native: require('./src/native/webpack.config.cjs')
}

Expand Down

0 comments on commit b836ef4

Please sign in to comment.