diff --git a/CHANGELOG.md b/CHANGELOG.md index 3fe2a46..fc63e31 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +## [v6.0.1](https://github.com/studiometa/webpack-config/compare/6.0.0..6.0.1) (2024-04-15) + +### Removed + +- ⚠️ Remove the `meta link` command ([d255afe](https://github.com/studiometa/webpack-config/commit/d255afe)) + ## [v6.0.0](https://github.com/studiometa/webpack-config/compare/5.3.0..6.0.0) (2024-04-15) ### Removed diff --git a/composer.json b/composer.json index 22679ec..0a3f42c 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "studiometa/webpack-config", - "version": "6.0.0", + "version": "6.0.1", "description": "PHP Helpers for @studiometa/webpack-config", "type": "library", "require": { diff --git a/eslint.config.js b/eslint.config.js index 688327b..453d0e5 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,3 +1,13 @@ import { js, prettier } from '@studiometa/eslint-config'; +import { globals } from '@studiometa/eslint-config/utils'; -export default [...js, ...prettier]; +export default [ + ...js, + ...prettier, + { + files: ['packages/preset-*/**/*', 'packages/webpack-config/**/*'], + languageOptions: { + globals: globals.node, + }, + }, +]; diff --git a/package-lock.json b/package-lock.json index 1a65f85..f36cfc9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@studiometa/webpack-config-root", - "version": "6.0.0", + "version": "6.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@studiometa/webpack-config-root", - "version": "6.0.0", + "version": "6.0.1", "workspaces": [ "packages/*" ], @@ -16106,7 +16106,7 @@ }, "packages/demo": { "name": "@studiometa/webpack-config-demo", - "version": "6.0.0", + "version": "6.0.1", "dependencies": { "@studiometa/js-toolkit": "^2.12.0", "@studiometa/ui": "^0.2.47", @@ -16916,7 +16916,7 @@ }, "packages/preset-markdown": { "name": "@studiometa/webpack-config-preset-markdown", - "version": "6.0.0", + "version": "6.0.1", "license": "MIT", "dependencies": { "front-matter-loader": "^2.0.0", @@ -17378,7 +17378,7 @@ }, "packages/preset-prototyping": { "name": "@studiometa/webpack-config-preset-prototyping", - "version": "6.0.0", + "version": "6.0.1", "license": "MIT", "dependencies": { "@studiometa/webpack-config-preset-markdown": "file:../preset-markdown", @@ -17440,7 +17440,7 @@ }, "packages/preset-vue-2": { "name": "@studiometa/webpack-config-preset-vue-2", - "version": "6.0.0", + "version": "6.0.1", "license": "MIT", "dependencies": { "vue-loader": "^15.11.1", @@ -17519,7 +17519,7 @@ }, "packages/preset-vue-3": { "name": "@studiometa/webpack-config-preset-vue-3", - "version": "6.0.0", + "version": "6.0.1", "license": "MIT", "dependencies": { "@vue/compiler-sfc": "^3.4.21", @@ -17535,7 +17535,7 @@ }, "packages/webpack-config": { "name": "@studiometa/webpack-config", - "version": "6.0.0", + "version": "6.0.1", "license": "MIT", "dependencies": { "@soda/friendly-errors-webpack-plugin": "^1.8.1", diff --git a/package.json b/package.json index 7ce3595..52f4e5d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@studiometa/webpack-config-root", - "version": "6.0.0", + "version": "6.0.1", "private": true, "type": "module", "workspaces": [ diff --git a/packages/demo/package.json b/packages/demo/package.json index c659566..c8c4dd5 100644 --- a/packages/demo/package.json +++ b/packages/demo/package.json @@ -1,6 +1,6 @@ { "name": "@studiometa/webpack-config-demo", - "version": "6.0.0", + "version": "6.0.1", "private": true, "type": "module", "scripts": { diff --git a/packages/preset-markdown/package.json b/packages/preset-markdown/package.json index 3b9642a..7920c05 100644 --- a/packages/preset-markdown/package.json +++ b/packages/preset-markdown/package.json @@ -1,6 +1,6 @@ { "name": "@studiometa/webpack-config-preset-markdown", - "version": "6.0.0", + "version": "6.0.1", "publishConfig": { "access": "public" }, diff --git a/packages/preset-prototyping/package.json b/packages/preset-prototyping/package.json index 981f4a4..079a940 100644 --- a/packages/preset-prototyping/package.json +++ b/packages/preset-prototyping/package.json @@ -1,6 +1,6 @@ { "name": "@studiometa/webpack-config-preset-prototyping", - "version": "6.0.0", + "version": "6.0.1", "publishConfig": { "access": "public" }, diff --git a/packages/preset-vue-2/package.json b/packages/preset-vue-2/package.json index 97d3e4b..e62b6ec 100644 --- a/packages/preset-vue-2/package.json +++ b/packages/preset-vue-2/package.json @@ -1,6 +1,6 @@ { "name": "@studiometa/webpack-config-preset-vue-2", - "version": "6.0.0", + "version": "6.0.1", "publishConfig": { "access": "public" }, diff --git a/packages/preset-vue-3/package.json b/packages/preset-vue-3/package.json index 509c6bc..31b2465 100644 --- a/packages/preset-vue-3/package.json +++ b/packages/preset-vue-3/package.json @@ -1,6 +1,6 @@ { "name": "@studiometa/webpack-config-preset-vue-3", - "version": "6.0.0", + "version": "6.0.1", "publishConfig": { "access": "public" }, diff --git a/packages/webpack-config/bin/cli.js b/packages/webpack-config/bin/cli.js index 2bc44eb..95cbebd 100755 --- a/packages/webpack-config/bin/cli.js +++ b/packages/webpack-config/bin/cli.js @@ -1,11 +1,7 @@ #!/usr/bin/env node import cac from 'cac'; import chalk from 'chalk'; -import { cwd } from 'node:process'; -import { symlinkSync, existsSync, readlinkSync, lstatSync } from 'node:fs'; -import { resolve } from 'node:path'; import { createRequire } from 'node:module'; -import { withTrailingSlash } from '../src/utils/index.js'; const require = createRequire(import.meta.url); const { version, name } = require('../package.json'); @@ -47,35 +43,6 @@ cli watch(options); }); -cli - .command('link ', 'Link the given folder to the given alias (default "@").') - .option('-a, --alias ', 'The alias name') - .action(async (path, { alias = '@' }) => { - const target = resolve(cwd(), path); - const symlink = resolve(cwd(), 'node_modules', alias); - - if (existsSync(symlink)) { - const stat = lstatSync(symlink); - - if (!stat.isSymbolicLink()) { - console.log(chalk.red(`A folder named "${alias}" already exists, choose another name with the "--link" parameter.`)); - process.exit(1); - } - - const existingSymlink = readlinkSync(symlink); - if (existingSymlink !== target) { - console.log(chalk.red(`A symlink named "${alias}" already exists, choose another name with the "--link" parameter.`)); - process.exit(1); - } else { - console.log(`You can now use "${chalk.green(withTrailingSlash(alias))}" as an alias for the "${chalk.green(withTrailingSlash(path))}" folder.`); - return; - } - } - - symlinkSync(target, symlink); - console.log(`You can now use "${chalk.green(withTrailingSlash(alias))}" as an alias for the "${chalk.green(withTrailingSlash(path))}" folder.`); - }); - cli.help(); cli.version(fullVersion); diff --git a/packages/webpack-config/package.json b/packages/webpack-config/package.json index b1c0e6a..a6fe62e 100644 --- a/packages/webpack-config/package.json +++ b/packages/webpack-config/package.json @@ -1,6 +1,6 @@ { "name": "@studiometa/webpack-config", - "version": "6.0.0", + "version": "6.0.1", "description": "A basic webpack config", "type": "module", "main": "src/index.js",