@o3r/stylelint-plugin 13.4.0-prerelease.9 → 13.5.0-prerelease.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/migration.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/angular/angular-cli/master/packages/angular_devkit/schematics/collection-schema.json",
3
+ "schematics": {
4
+ "migration": {
5
+ "version": "*",
6
+ "description": "Migration of @o3r/stylelint-plugin to new scope",
7
+ "factory": "./schematics/ng-update/index#updateAll"
8
+ }
9
+ }
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o3r/stylelint-plugin",
3
- "version": "13.4.0-prerelease.9",
3
+ "version": "13.5.0-prerelease.0",
4
4
  "deprecated": "This package is will be removed in Otter v14. Please use @ama-styling/stylelint-plugin instead.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -20,17 +20,17 @@
20
20
  "build": "yarn nx build stylelint-plugin",
21
21
  "build:source": "tsc -b tsconfig.build.json",
22
22
  "postbuild": "cpy package.json dist/ && patch-package-json-main",
23
- "prepare:build:builders": "yarn cpy 'schematics/**/*.json' 'schematics/**/templates/**' dist/schematics && yarn cpy './collection.json' dist",
23
+ "prepare:build:builders": "yarn cpy 'schematics/**/*.json' 'schematics/**/templates/**' dist/schematics && yarn cpy './collection.json' './migration.json' dist",
24
24
  "build:builders": "tsc -b tsconfig.builders.json --pretty && yarn generate-cjs-manifest"
25
25
  },
26
26
  "dependencies": {
27
- "@o3r/schematics": "13.4.0-prerelease.9",
27
+ "@o3r/schematics": "~13.5.0-prerelease.0",
28
28
  "ts-node": "~10.9.2",
29
29
  "tslib": "^2.6.2"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "@angular-devkit/schematics": "^20.0.0",
33
- "@o3r/schematics": "13.4.0-prerelease.9",
33
+ "@o3r/schematics": "~13.5.0-prerelease.0",
34
34
  "@schematics/angular": "^20.0.0",
35
35
  "postcss": "^8.4.5",
36
36
  "postcss-scss": "^4.0.9",
@@ -62,25 +62,25 @@
62
62
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
63
63
  "@nx/eslint-plugin": "~21.6.0",
64
64
  "@nx/jest": "~21.6.0",
65
- "@o3r/build-helpers": "13.4.0-prerelease.9",
66
- "@o3r/eslint-config": "13.4.0-prerelease.9",
67
- "@o3r/eslint-plugin": "13.4.0-prerelease.9",
68
- "@o3r/test-helpers": "13.4.0-prerelease.9",
65
+ "@o3r/build-helpers": "~13.5.0-prerelease.0",
66
+ "@o3r/eslint-config": "~13.5.0-prerelease.0",
67
+ "@o3r/eslint-plugin": "~13.5.0-prerelease.0",
68
+ "@o3r/test-helpers": "~13.5.0-prerelease.0",
69
69
  "@schematics/angular": "~20.3.0",
70
- "@stylistic/eslint-plugin": "~5.5.0",
70
+ "@stylistic/eslint-plugin": "~5.6.0",
71
71
  "@types/css-tree": "~2.3.0",
72
72
  "@types/jest": "~29.5.2",
73
73
  "@types/node": "~22.18.0",
74
- "@typescript-eslint/parser": "~8.46.0",
75
- "angular-eslint": "~20.5.0",
74
+ "@typescript-eslint/parser": "~8.47.0",
75
+ "angular-eslint": "~20.6.0",
76
76
  "babel-jest": "^29.7.0",
77
77
  "cpy-cli": "^6.0.0",
78
- "eslint": "~9.38.0",
78
+ "eslint": "~9.39.0",
79
79
  "eslint-import-resolver-node": "~0.3.9",
80
80
  "eslint-import-resolver-typescript": "~4.4.0",
81
81
  "eslint-plugin-import": "~2.32.0",
82
82
  "eslint-plugin-import-newlines": "~1.4.0",
83
- "eslint-plugin-jest": "~29.0.0",
83
+ "eslint-plugin-jest": "~29.1.0",
84
84
  "eslint-plugin-jsdoc": "~54.7.0",
85
85
  "eslint-plugin-prefer-arrow": "~1.2.3",
86
86
  "eslint-plugin-unicorn": "~60.0.0",
@@ -91,7 +91,6 @@
91
91
  "jest-util": "~29.7.0",
92
92
  "jsonc-eslint-parser": "~2.4.0",
93
93
  "nx": "~21.6.0",
94
- "pid-from-port": "^1.1.3",
95
94
  "postcss": "~8.5.1",
96
95
  "postcss-scss": "~4.0.9",
97
96
  "rimraf": "^6.0.1",
@@ -102,7 +101,7 @@
102
101
  "ts-node": "~10.9.2",
103
102
  "type-fest": "^4.30.1",
104
103
  "typescript": "~5.9.2",
105
- "typescript-eslint": "~8.46.0"
104
+ "typescript-eslint": "~8.47.0"
106
105
  },
107
106
  "main": "./src/public_api.mjs",
108
107
  "schematics": "./collection.json",
@@ -0,0 +1,6 @@
1
+ import type { Rule } from '@angular-devkit/schematics';
2
+ /**
3
+ * Update of Otter library V13.0
4
+ */
5
+ export declare const updateAll: (options: any) => Rule;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-update/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,IAAI,EACL,MAAM,4BAA4B,CAAC;AA6BpC;;GAEG;AACH,eAAO,MAAM,SAAS,wBAMnB,CAAC"}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateAll = void 0;
4
+ const schematics_1 = require("@angular-devkit/schematics");
5
+ const schematics_2 = require("@o3r/schematics");
6
+ /**
7
+ * Rule to update the Stylelint configuration to new scope
8
+ * @param tree
9
+ * @param context
10
+ */
11
+ const updateStyleLintConfig = (tree, context) => {
12
+ const excludes = ['**/node_modules/**', '**/.cache/**'];
13
+ const extensionMatcher = /stylelint.config\.[mc]?js$/;
14
+ const configFiles = (0, schematics_2.getAllFilesInTree)(tree, '/', excludes)
15
+ .filter((filePath) => extensionMatcher.test(filePath));
16
+ configFiles.forEach((file) => {
17
+ const text = tree.readText(file);
18
+ if (text.includes('@o3r/stylelint-plugin')) {
19
+ context.logger.debug(`Update ${file}`);
20
+ tree.overwrite(file, text
21
+ .replaceAll(/@o3r\/stylelint-plugin/g, '@ama-styling/stylelint-plugin')
22
+ .replaceAll(/o3r-/g, 'ama-'));
23
+ }
24
+ });
25
+ };
26
+ /**
27
+ * Update of Otter library V13.0
28
+ */
29
+ exports.updateAll = (0, schematics_2.createOtterSchematic)(() => (0, schematics_1.chain)([
30
+ updateStyleLintConfig,
31
+ (_, context) => {
32
+ context.logger.warn('The package "@o3r/stylelint-plugin" is deprecated, please install "@ama-styling/stylelint-plugin" with the following command:');
33
+ context.logger.warn('ng add @ama-styling/stylelint-plugin');
34
+ }
35
+ ]));
36
+ //# sourceMappingURL=index.js.map