@mirta/rollup 0.3.5 → 0.4.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/package.json CHANGED
@@ -1,13 +1,24 @@
1
1
  {
2
2
  "name": "@mirta/rollup",
3
- "description": "Predefined Rollup configuration for wb-rules project builds.",
4
- "version": "0.3.5",
5
- "license": "Unlicense",
3
+ "version": "0.4.0",
4
+ "sideEffects": false,
5
+ "description": "Predefined Rollup configuration for wb-rules project builds",
6
6
  "keywords": [
7
7
  "mirta",
8
8
  "wb-rules"
9
9
  ],
10
+ "license": "Unlicense",
11
+ "homepage": "https://github.com/wb-mirta/core/tree/latest/packages/mirta-rollup#readme",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/wb-mirta/core.git",
15
+ "directory": "packages/mirta-rollup"
16
+ },
17
+ "bugs": {
18
+ "url": "https://github.com/wb-mirta/core/issues"
19
+ },
10
20
  "type": "module",
21
+ "types": "./dist/index.d.mts",
11
22
  "files": [
12
23
  "dist",
13
24
  "LICENSE",
@@ -21,53 +32,54 @@
21
32
  }
22
33
  },
23
34
  "./config": {
24
- "types": "./dist/configs/index.d.mts",
25
- "default": "./dist/configs/index.mjs"
35
+ "types": "./dist/config.d.mts",
36
+ "default": "./dist/config.mjs"
37
+ },
38
+ "./config-package": {
39
+ "types": "./dist/config-package.d.mts",
40
+ "default": "./dist/config-package.mjs"
26
41
  }
27
42
  },
28
43
  "imports": {
29
44
  "#src/*": "./src/*.js",
30
- "#ast/*": "./src/ast-transformers/*.js",
45
+ "#ast": "./src/ast-transformers/index.js",
31
46
  "#utils/*": "./src/utils/*.js",
47
+ "#utils/monorepo": "./src/utils/monorepo/index.js",
32
48
  "#plugins/*": "./src/plugins/*.js",
33
49
  "#configs/*": "./src/configs/*.js"
34
50
  },
35
- "homepage": "https://github.com/wb-mirta/core/tree/latest/packages/mirta-rollup#readme",
36
- "repository": {
37
- "type": "git",
38
- "url": "git+https://github.com/wb-mirta/core.git",
39
- "directory": "packages/mirta-rollup"
40
- },
41
- "bugs": {
42
- "url": "https://github.com/wb-mirta/core/issues"
43
- },
44
51
  "dependencies": {
45
- "@babel/core": "^7.28.4",
46
- "@babel/preset-env": "^7.28.3",
47
- "@dotenv-run/rollup": "^1.3.7",
48
- "@pnpm/find-workspace-dir": "^1000.1.3",
49
- "@pnpm/workspace.find-packages": "^1000.0.42",
50
- "@rollup/plugin-babel": "^6.0.4",
51
- "@rollup/plugin-commonjs": "^28.0.6",
52
- "@rollup/plugin-multi-entry": "^6.0.1",
53
- "@rollup/plugin-node-resolve": "^16.0.2",
54
- "@rollup/plugin-replace": "^6.0.2",
55
- "@rollup/plugin-typescript": "^12.1.4",
52
+ "@babel/core": "^7.28.5",
53
+ "@babel/preset-env": "^7.28.5",
54
+ "@babel/plugin-transform-spread": "^7.27.1",
55
+ "@dotenvx/dotenvx": "^1.51.1",
56
+ "@rollup/plugin-babel": "^6.1.0",
57
+ "@rollup/plugin-commonjs": "^29.0.0",
58
+ "@rollup/plugin-multi-entry": "^7.1.0",
59
+ "@rollup/plugin-node-resolve": "^16.0.3",
60
+ "@rollup/plugin-replace": "^6.0.3",
61
+ "@rollup/plugin-typescript": "^12.3.0",
56
62
  "babel-plugin-array-includes": "^2.0.3",
57
63
  "del": "^8.0.1",
58
- "magic-string": "^0.30.19",
64
+ "magic-string": "^0.30.21",
59
65
  "rollup-plugin-copy": "^3.5.0",
60
- "rollup-plugin-dts": "^6.2.3",
66
+ "rollup-plugin-dts": "^6.3.0",
61
67
  "rollup-plugin-typescript2": "^0.36.0",
62
- "typescript": "^5.8.3",
63
- "@mirta/polyfills": "0.3.5"
68
+ "find-up": "^8.0.0",
69
+ "@mirta/basics": "0.4.0",
70
+ "@mirta/env-loader": "0.4.0",
71
+ "@mirta/package": "0.4.0",
72
+ "@mirta/workspace": "0.4.0"
64
73
  },
65
74
  "devDependencies": {
66
- "rollup": "^4.52.4",
67
- "@pnpm/types": "^1000.9.0"
75
+ "rollup": "^4.55.1",
76
+ "typescript": "^5.8.3"
77
+ },
78
+ "peerDependencies": {
79
+ "rollup": ">= 4.52.5 < 5",
80
+ "typescript": ">= 5.8.3 < 6"
68
81
  },
69
82
  "scripts": {
70
- "clean": "rimraf dist",
71
- "build:mono": "pnpm clean && rollup -c --configPlugin typescript={tsconfig:\\\"./tsconfig.build.json\\\"}"
83
+ "build:mono": "rollup -c --configPlugin typescript={tsconfig:\\\"./tsconfig.build.json\\\"}"
72
84
  }
73
85
  }
@@ -1,19 +0,0 @@
1
- import * as rollup from 'rollup';
2
-
3
- /**
4
- * Основная функция для определения конфигурации на основе переданных аргументов.
5
- *
6
- * @param args Объект с аргументами командной строки Rollup.
7
- * Доступные ключи:
8
- * - 'config-package': активирует использование пакетной конфигурации.
9
- * - 'config-skip-exports': указывает, следует ли пропустить экспорт.
10
- *
11
- * @returns Результат выполнения функции `definePackageConfig` или `defineRuntimeConfig`
12
- * в зависимости от наличия флага 'config-package'.
13
- *
14
- * @since 0.3.5
15
- *
16
- **/
17
- declare function resolveConfig(args: Record<string, unknown>): rollup.RollupOptions[] | Promise<rollup.RollupOptions>;
18
-
19
- export { resolveConfig as default };
@@ -1,47 +0,0 @@
1
- import { d as definePackageConfig, a as defineRuntimeConfig } from '../runtime.mjs';
2
- import '@rollup/plugin-typescript';
3
- import '@rollup/plugin-node-resolve';
4
- import '@rollup/plugin-commonjs';
5
- import '@rollup/plugin-replace';
6
- import 'rollup-plugin-copy';
7
- import 'rollup-plugin-dts';
8
- import 'typescript';
9
- import 'node:path';
10
- import '@rollup/plugin-multi-entry';
11
- import 'rollup-plugin-typescript2';
12
- import '@dotenv-run/rollup';
13
- import '@rollup/plugin-babel';
14
- import 'del';
15
- import 'path';
16
- import 'magic-string';
17
- import '@pnpm/find-workspace-dir';
18
- import '@pnpm/workspace.find-packages';
19
- import 'fs';
20
-
21
- /**
22
- * Основная функция для определения конфигурации на основе переданных аргументов.
23
- *
24
- * @param args Объект с аргументами командной строки Rollup.
25
- * Доступные ключи:
26
- * - 'config-package': активирует использование пакетной конфигурации.
27
- * - 'config-skip-exports': указывает, следует ли пропустить экспорт.
28
- *
29
- * @returns Результат выполнения функции `definePackageConfig` или `defineRuntimeConfig`
30
- * в зависимости от наличия флага 'config-package'.
31
- *
32
- * @since 0.3.5
33
- *
34
- **/
35
- function resolveConfig(args) {
36
- // Признак использования пакетной конфигурации.
37
- const usePackageConfig = 'config-package' in args;
38
- // Пропуск проверки секции экспорта.
39
- const skipExports = 'config-skip-exports' in args;
40
- return usePackageConfig
41
- ? definePackageConfig({
42
- skipExports,
43
- })
44
- : defineRuntimeConfig();
45
- }
46
-
47
- export { resolveConfig as default };