@adonisjs/assembler 6.1.3-20 → 6.1.3-21

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.
@@ -8,8 +8,8 @@
8
8
  */
9
9
  import slash from 'slash';
10
10
  import fs from 'node:fs/promises';
11
+ import { relative } from 'node:path';
11
12
  import { fileURLToPath } from 'node:url';
12
- import { join, relative } from 'node:path';
13
13
  import { cliui } from '@poppinss/cliui';
14
14
  import { run, parseConfig, copyFiles } from './helpers.js';
15
15
  /**
@@ -105,18 +105,6 @@ export class Bundler {
105
105
  .concat(additionalFilesToCopy);
106
106
  await this.#copyFiles(metaFiles, outDir);
107
107
  }
108
- /**
109
- * Copies .adonisrc.json file to the destination
110
- */
111
- async #copyAdonisRcFile(outDir) {
112
- const existingContents = JSON.parse(await fs.readFile(join(this.#cwdPath, '.adonisrc.json'), 'utf-8'));
113
- const compiledContents = Object.assign({}, existingContents, {
114
- typescript: false,
115
- lastCompiledAt: new Date().toISOString(),
116
- });
117
- await fs.mkdir(outDir, { recursive: true });
118
- await fs.writeFile(join(outDir, '.adonisrc.json'), JSON.stringify(compiledContents, null, 2) + '\n');
119
- }
120
108
  /**
121
109
  * Returns the lock file name for a given packages client
122
110
  */
@@ -200,11 +188,6 @@ export class Bundler {
200
188
  const pkgFiles = ['package.json', this.#getClientLockFile(client)];
201
189
  this.#logger.info('copying meta files to the output directory');
202
190
  await this.#copyMetaFiles(outDir, pkgFiles);
203
- /**
204
- * Step 6: Copy .adonisrc.json file to the build directory
205
- */
206
- this.#logger.info('copying .adonisrc.json file to the output directory');
207
- await this.#copyAdonisRcFile(outDir);
208
191
  this.#logger.success('build completed');
209
192
  this.#logger.log('');
210
193
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adonisjs/assembler",
3
3
  "description": "Provides utilities to run AdonisJS development server and build project for production",
4
- "version": "6.1.3-20",
4
+ "version": "6.1.3-21",
5
5
  "engines": {
6
6
  "node": ">=18.16.0"
7
7
  },