@mirta/rollup 0.2.1 → 0.2.3

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.
Files changed (2) hide show
  1. package/dist/index.mjs +9 -6
  2. package/package.json +6 -6
package/dist/index.mjs CHANGED
@@ -33,10 +33,10 @@ function del(options = {}) {
33
33
  }
34
34
 
35
35
  // Абсолютный путь к результирующему каталогу.
36
- const outputDir = path.join(process.cwd(), 'dist');
37
- const modulesDir = path.join(outputDir, 'wb-rules-modules');
36
+ const outputDir$1 = path.join(process.cwd(), 'dist');
37
+ const modulesDir = path.join(outputDir$1, 'wb-rules-modules');
38
38
  // Расположение обрабатываемого чанка.
39
- const getChunkDir = (fileName) => path.dirname(path.join(outputDir, fileName));
39
+ const getChunkDir = (fileName) => path.dirname(path.join(outputDir$1, fileName));
40
40
  // Шаблон для отлова конструкций require.
41
41
  const patternRequire = /require\(['"]([^'"]+)'\)/g;
42
42
  /**
@@ -104,6 +104,9 @@ const isProduction = env === 'production';
104
104
  const packagesPattern = /node_modules\/@?(.+)\/(.+)/;
105
105
  const modulesPattern = /(?:src\/)?wb-rules-modules\/(.*)/;
106
106
  const scriptsPattern = /(?:src\/)?(?:wb-rules\/)?(.*)/;
107
+ const outputDir = {
108
+ es5: 'dist/es5',
109
+ };
107
110
  function packageEntry(pkg, entry) {
108
111
  const key = entry ? `${pkg}/${entry}` : pkg;
109
112
  // if ((process.env.NODE_ENV !== 'production'))
@@ -157,7 +160,7 @@ function defineConfig(options = {}) {
157
160
  targets: 'dist/*',
158
161
  }),
159
162
  multi({
160
- exclude: ['src/wb-rules/*.disabled.ts'],
163
+ exclude: ['src/wb-rules/*.disabled.[jt]s'],
161
164
  preserveModules: true,
162
165
  }),
163
166
  resolve(),
@@ -185,7 +188,7 @@ function defineConfig(options = {}) {
185
188
  }),
186
189
  ];
187
190
  return {
188
- input: 'src/wb-rules/*.ts',
191
+ input: 'src/wb-rules/*.[jt]s',
189
192
  plugins: [
190
193
  ...defaultPlugins,
191
194
  ...plugins,
@@ -193,7 +196,7 @@ function defineConfig(options = {}) {
193
196
  output: {
194
197
  format: 'cjs',
195
198
  strict: false,
196
- dir: 'dist/es5',
199
+ dir: outputDir.es5,
197
200
  preserveModules: true,
198
201
  entryFileNames(chunkInfo) {
199
202
  // console.log(process.cwd())
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mirta/rollup",
3
3
  "description": "Predefined Rollup configuration for wb-rules project builds.",
4
- "version": "0.2.1",
4
+ "version": "0.2.3",
5
5
  "license": "Unlicense",
6
6
  "keywords": [
7
7
  "mirta",
@@ -31,21 +31,21 @@
31
31
  "url": "https://github.com/wb-mirta/core/issues"
32
32
  },
33
33
  "dependencies": {
34
- "@babel/core": "^7.28.0",
35
- "@babel/preset-env": "^7.28.0",
34
+ "@babel/core": "^7.28.3",
35
+ "@babel/preset-env": "^7.28.3",
36
36
  "@dotenv-run/rollup": "^1.3.7",
37
37
  "@rollup/plugin-babel": "^6.0.4",
38
38
  "@rollup/plugin-multi-entry": "^6.0.1",
39
39
  "@rollup/plugin-node-resolve": "^16.0.1",
40
40
  "babel-plugin-array-includes": "^2.0.3",
41
41
  "del": "^8.0.0",
42
- "magic-string": "^0.30.17",
42
+ "magic-string": "^0.30.18",
43
43
  "rollup-plugin-typescript2": "^0.36.0",
44
44
  "typescript": "^5.8.3",
45
- "@mirta/polyfills": "0.2.1"
45
+ "@mirta/polyfills": "0.2.3"
46
46
  },
47
47
  "devDependencies": {
48
- "rollup": "^4.45.1"
48
+ "rollup": "^4.48.1"
49
49
  },
50
50
  "publishConfig": {
51
51
  "access": "public"