diff --git a/build/generate_eslint.js b/build/generate_eslint.js index 82cf677..1dca881 100644 --- a/build/generate_eslint.js +++ b/build/generate_eslint.js @@ -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 })] }) diff --git a/package.json b/package.json index 70113a9..1127526 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/extlib/AI.ts b/src/extension-library/AI.ts similarity index 100% rename from src/extlib/AI.ts rename to src/extension-library/AI.ts diff --git a/src/extlib/IPC/ExtensionLibPort.ts b/src/extension-library/IPC/ExtensionLibPort.ts similarity index 100% rename from src/extlib/IPC/ExtensionLibPort.ts rename to src/extension-library/IPC/ExtensionLibPort.ts diff --git a/src/extlib/IPC/IPC.ts b/src/extension-library/IPC/IPC.ts similarity index 100% rename from src/extlib/IPC/IPC.ts rename to src/extension-library/IPC/IPC.ts diff --git a/src/extlib/IPC/index.ts b/src/extension-library/IPC/index.ts similarity index 100% rename from src/extlib/IPC/index.ts rename to src/extension-library/IPC/index.ts diff --git a/src/extlib/extlib-README.md b/src/extension-library/extension-library-README.md similarity index 100% rename from src/extlib/extlib-README.md rename to src/extension-library/extension-library-README.md diff --git a/src/extlib/extlib-package.json b/src/extension-library/extension-library-package.json similarity index 100% rename from src/extlib/extlib-package.json rename to src/extension-library/extension-library-package.json diff --git a/src/extlib/index.ts b/src/extension-library/index.ts similarity index 100% rename from src/extlib/index.ts rename to src/extension-library/index.ts diff --git a/src/extlib/tsconfig.json b/src/extension-library/tsconfig.json similarity index 100% rename from src/extlib/tsconfig.json rename to src/extension-library/tsconfig.json diff --git a/src/extlib/types-rollup.config.js b/src/extension-library/types-rollup.config.js similarity index 100% rename from src/extlib/types-rollup.config.js rename to src/extension-library/types-rollup.config.js diff --git a/src/extlib/webpack.config.cjs b/src/extension-library/webpack.config.cjs similarity index 91% rename from src/extlib/webpack.config.cjs rename to src/extension-library/webpack.config.cjs index d1a0f9b..f9028f9 100644 --- a/src/extlib/webpack.config.cjs +++ b/src/extension-library/webpack.config.cjs @@ -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 @@ -27,7 +27,7 @@ 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(), @@ -35,7 +35,7 @@ module.exports = function ({ outDir, nodeModulesDir, pkg, config }, { mode }) { 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) => { @@ -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() diff --git a/webpack.config.cjs b/webpack.config.cjs index 4b30cf6..2fb0b70 100644 --- a/webpack.config.cjs +++ b/webpack.config.cjs @@ -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') }