@atls/code-service 0.1.8 → 2.0.1

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/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
- export * from './webpack.config';
2
- export * from './service';
3
- //# sourceMappingURL=index.d.ts.map
1
+ export * from './service.interfaces.js';
2
+ export * from './webpack.interfaces.js';
3
+ export * from './webpack.config.js';
4
+ export * from './service.js';
package/dist/index.js CHANGED
@@ -1,19 +1,4 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./webpack.config"), exports);
18
- __exportStar(require("./service"), exports);
19
- //# sourceMappingURL=index.js.map
1
+ export * from "./service.interfaces.js";
2
+ export * from "./webpack.interfaces.js";
3
+ export * from "./webpack.config.js";
4
+ export * from "./service.js";
package/dist/service.d.ts CHANGED
@@ -1,16 +1,12 @@
1
- import { WebpackPluginInstance } from 'webpack';
2
- import { Watching } from 'webpack';
3
- export interface ServiceBuildResultMessage {
4
- message: string;
1
+ import type { webpack as wp } from '@atls/code-runtime/webpack';
2
+ import type { ServiceLogRecord } from './service.interfaces.js';
3
+ import EventEmitter from 'node:events';
4
+ import { WebpackConfig } from './webpack.config.js';
5
+ export declare class Service extends EventEmitter {
6
+ private readonly webpack;
7
+ private readonly config;
8
+ protected constructor(webpack: typeof wp, config: WebpackConfig);
9
+ static initialize(cwd: string): Promise<Service>;
10
+ build(): Promise<Array<ServiceLogRecord>>;
11
+ watch(callback: (logRecord: ServiceLogRecord) => void): Promise<wp.Watching>;
5
12
  }
6
- export interface ServiceBuildResult {
7
- errors: ServiceBuildResultMessage[];
8
- warnings: ServiceBuildResultMessage[];
9
- }
10
- export declare class Service {
11
- private readonly cwd;
12
- constructor(cwd: string);
13
- build(plugins?: Array<WebpackPluginInstance>): Promise<ServiceBuildResult>;
14
- watch(callback?: any): Promise<Watching>;
15
- }
16
- //# sourceMappingURL=service.d.ts.map
@@ -0,0 +1,3 @@
1
+ import type { LogRecord } from '@monstrs/logger';
2
+ import type { WebpackLogRecord } from './webpack.interfaces.js';
3
+ export type ServiceLogRecord = Error | LogRecord | WebpackLogRecord;
@@ -0,0 +1 @@
1
+ export {};
package/dist/service.js CHANGED
@@ -1,54 +1,63 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Service = void 0;
7
- const node_stream_1 = require("node:stream");
8
- const webpack_1 = __importDefault(require("webpack"));
9
- const webpack_start_server_plugin_1 = require("@atls/webpack-start-server-plugin");
10
- const webpack_config_1 = require("./webpack.config");
11
- const webpack_interfaces_1 = require("./webpack.interfaces");
12
- class Service {
13
- cwd;
14
- constructor(cwd) {
15
- this.cwd = cwd;
1
+ import EventEmitter from 'node:events';
2
+ import { PassThrough } from 'node:stream';
3
+ import { SeverityNumber } from '@monstrs/logger';
4
+ import { StartServerPlugin } from '@atls/webpack-start-server-plugin';
5
+ import { WebpackConfig } from './webpack.config.js';
6
+ export class Service extends EventEmitter {
7
+ webpack;
8
+ config;
9
+ constructor(webpack, config) {
10
+ super();
11
+ this.webpack = webpack;
12
+ this.config = config;
16
13
  }
17
- async build(plugins = []) {
18
- const config = new webpack_config_1.WebpackConfig(this.cwd);
19
- const compiler = (0, webpack_1.default)(await config.build());
14
+ static async initialize(cwd) {
15
+ const { webpack, nullLoaderPath, tsLoaderPath, nodeLoaderPath } = await import('@atls/code-runtime/webpack');
16
+ const config = new WebpackConfig(webpack, {
17
+ nodeLoader: nodeLoaderPath,
18
+ nullLoader: nullLoaderPath,
19
+ tsLoader: tsLoaderPath,
20
+ }, cwd);
21
+ return new Service(webpack, config);
22
+ }
23
+ async build() {
24
+ const compiler = this.webpack(await this.config.build('production', [
25
+ {
26
+ name: 'progress',
27
+ use: this.webpack.ProgressPlugin,
28
+ args: [
29
+ (percent, message) => {
30
+ this.emit('build:progress', { percent: percent * 100, message });
31
+ },
32
+ ],
33
+ },
34
+ ]));
20
35
  return new Promise((resolve, reject) => {
21
36
  compiler.run((error, stats) => {
37
+ this.emit('end', { error, stats });
22
38
  if (error) {
23
39
  if (!error.message) {
24
40
  reject(error);
25
41
  }
26
42
  else {
27
- resolve({
28
- errors: [error],
29
- warnings: [],
30
- });
43
+ resolve([error]);
31
44
  }
32
45
  }
33
46
  else if (stats) {
34
47
  const { errors = [], warnings = [] } = stats.toJson();
35
- resolve({
36
- errors,
37
- warnings,
38
- });
48
+ resolve([
49
+ ...errors.map((record) => ({ record, severityNumber: SeverityNumber.ERROR })),
50
+ ...warnings.map((record) => ({ record, severityNumber: SeverityNumber.WARN })),
51
+ ]);
39
52
  }
40
53
  else {
41
- resolve({
42
- errors: [],
43
- warnings: [],
44
- });
54
+ resolve([]);
45
55
  }
46
56
  });
47
57
  });
48
58
  }
49
59
  async watch(callback) {
50
- const config = new webpack_config_1.WebpackConfig(this.cwd);
51
- const pass = new node_stream_1.PassThrough();
60
+ const pass = new PassThrough();
52
61
  pass.on('data', (chunk) => {
53
62
  chunk
54
63
  .toString()
@@ -59,32 +68,44 @@ class Service {
59
68
  callback(JSON.parse(row));
60
69
  }
61
70
  catch {
62
- callback({ body: row });
71
+ callback({ severityNumber: SeverityNumber.INFO, body: row });
63
72
  }
64
73
  });
65
74
  });
66
- return (0, webpack_1.default)(await config.build(webpack_interfaces_1.WebpackEnvironment.dev, [
67
- new webpack_start_server_plugin_1.StartServerPlugin({ stdout: pass, stderr: pass }),
75
+ return this.webpack(await this.config.build('development', [
76
+ {
77
+ name: 'start-server',
78
+ use: StartServerPlugin,
79
+ args: [
80
+ {
81
+ stdout: pass,
82
+ stderr: pass,
83
+ },
84
+ ],
85
+ },
86
+ {
87
+ name: 'progress',
88
+ use: this.webpack.ProgressPlugin,
89
+ args: [
90
+ (percent, message) => {
91
+ this.emit('build:progress', { percent: percent * 100, message });
92
+ },
93
+ ],
94
+ },
68
95
  ])).watch({}, (error, stats) => {
96
+ this.emit('end', { error, stats });
69
97
  if (error) {
70
- callback({
71
- severityText: 'ERROR',
72
- body: error,
73
- });
98
+ callback(error);
74
99
  }
75
100
  else if (stats) {
76
101
  const { errors = [], warnings = [] } = stats.toJson();
77
- warnings.forEach((warning) => callback({
78
- severityText: 'WARN',
79
- body: warning,
80
- }));
81
- errors.forEach((err) => callback({
82
- severityText: 'ERROR',
83
- body: err,
84
- }));
102
+ warnings.forEach((record) => {
103
+ callback({ record, severityNumber: SeverityNumber.WARN });
104
+ });
105
+ errors.forEach((record) => {
106
+ callback({ record, severityNumber: SeverityNumber.ERROR });
107
+ });
85
108
  }
86
109
  });
87
110
  }
88
111
  }
89
- exports.Service = Service;
90
- //# sourceMappingURL=service.js.map
@@ -1,16 +1,19 @@
1
- import { Configuration } from 'webpack';
2
- import { WebpackPluginInstance } from 'webpack';
3
- import { ModuleTypes } from './webpack.interfaces';
4
- import { WebpackEnvironment } from './webpack.interfaces';
1
+ import type { WebpackEnvironment } from './webpack.interfaces.js';
2
+ import { webpack as wp } from '@atls/code-runtime/webpack';
5
3
  export declare class WebpackConfig {
4
+ private readonly webpack;
5
+ private readonly loaders;
6
6
  private readonly cwd;
7
- constructor(cwd: string);
8
- getWorkspaceExternals(): Promise<Set<string>>;
9
- getWorkspaceType(): Promise<ModuleTypes>;
10
- getUnpluggedDependencies(): Promise<Set<string>>;
11
- getExternals(): Promise<{
12
- [key: string]: string;
13
- }>;
14
- build(environment?: WebpackEnvironment, plugins?: WebpackPluginInstance[]): Promise<Configuration>;
7
+ constructor(webpack: typeof wp, loaders: {
8
+ tsLoader: string;
9
+ nodeLoader: string;
10
+ nullLoader: string;
11
+ }, cwd: string);
12
+ build(environment?: WebpackEnvironment, additionalPlugins?: Array<{
13
+ use: wp.WebpackPluginInstance;
14
+ args: Array<any>;
15
+ name: string;
16
+ }>): Promise<wp.Configuration>;
17
+ private getWorkspaceType;
18
+ private createPlugins;
15
19
  }
16
- //# sourceMappingURL=webpack.config.d.ts.map
@@ -1,145 +1,139 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.WebpackConfig = void 0;
7
- const promises_1 = require("node:fs/promises");
8
- const node_path_1 = require("node:path");
9
- const fast_glob_1 = __importDefault(require("fast-glob"));
10
- const find_up_1 = __importDefault(require("find-up"));
11
- const webpack_1 = require("webpack");
12
- const webpack_externals_1 = require("./webpack.externals");
13
- const webpack_externals_2 = require("./webpack.externals");
14
- const webpack_interfaces_1 = require("./webpack.interfaces");
15
- class WebpackConfig {
1
+ import { readFile } from 'node:fs/promises';
2
+ import { writeFile } from 'node:fs/promises';
3
+ import { mkdtemp } from 'node:fs/promises';
4
+ import { tmpdir } from 'node:os';
5
+ import { join } from 'node:path';
6
+ import { webpack as wp } from '@atls/code-runtime/webpack';
7
+ import { tsLoaderPath } from '@atls/code-runtime/webpack';
8
+ import { nodeLoaderPath } from '@atls/code-runtime/webpack';
9
+ import { nullLoaderPath } from '@atls/code-runtime/webpack';
10
+ import tsconfig from '@atls/config-typescript';
11
+ import { WebpackExternals } from './webpack.externals.js';
12
+ import { LAZY_IMPORTS } from './webpack.ignore.js';
13
+ export class WebpackConfig {
14
+ webpack;
15
+ loaders;
16
16
  cwd;
17
- constructor(cwd) {
17
+ constructor(webpack, loaders, cwd) {
18
+ this.webpack = webpack;
19
+ this.loaders = loaders;
18
20
  this.cwd = cwd;
19
21
  }
20
- async getWorkspaceExternals() {
21
- try {
22
- const content = await (0, promises_1.readFile)((0, node_path_1.join)(this.cwd, 'package.json'), 'utf-8');
23
- const { externalDependencies = {} } = JSON.parse(content);
24
- return new Set(Object.keys(externalDependencies));
25
- }
26
- catch {
27
- return Promise.resolve(new Set());
28
- }
29
- }
30
- async getWorkspaceType() {
31
- try {
32
- const content = await (0, promises_1.readFile)((0, node_path_1.join)(this.cwd, 'package.json'), 'utf-8');
33
- const { type = 'commonjs' } = JSON.parse(content);
34
- return type;
35
- }
36
- catch {
37
- return 'module';
38
- }
39
- }
40
- async getUnpluggedDependencies() {
41
- const yarnFolder = await (0, find_up_1.default)('.yarn');
42
- if (!yarnFolder)
43
- return Promise.resolve(new Set());
44
- const pnpUnpluggedFolder = (0, node_path_1.join)(yarnFolder, 'unplugged');
45
- const dependenciesNames = new Set();
46
- const entries = await (0, fast_glob_1.default)('*/node_modules/*/package.json', {
47
- cwd: pnpUnpluggedFolder,
48
- });
49
- await Promise.all(entries
50
- .map((entry) => (0, node_path_1.join)(pnpUnpluggedFolder, entry))
51
- .map(async (entry) => {
52
- try {
53
- const { name } = JSON.parse((await (0, promises_1.readFile)(entry)).toString());
54
- if (name && !webpack_externals_1.FORCE_UNPLUGGED_PACKAGES.has(name)) {
55
- dependenciesNames.add(name);
56
- }
57
- }
58
- catch { }
59
- }));
60
- return dependenciesNames;
61
- }
62
- async getExternals() {
63
- const workspaceExternals = Array.from(await this.getWorkspaceExternals());
64
- const unpluggedExternals = Array.from(await this.getUnpluggedDependencies());
65
- return Array.from(new Set([...workspaceExternals, ...unpluggedExternals, ...webpack_externals_2.UNUSED_EXTERNALS])).reduce((result, dependency) => ({
66
- ...result,
67
- [dependency]: `commonjs2 ${dependency}`,
68
- }), {});
69
- }
70
- async build(environment = webpack_interfaces_1.WebpackEnvironment.prod, plugins = []) {
22
+ async build(environment = 'production', additionalPlugins = []) {
23
+ const configFile = join(await mkdtemp(join(tmpdir(), 'code-service-')), 'tsconfig.json');
24
+ await writeFile(configFile, '{"include":["**/*"]}');
25
+ const type = await this.getWorkspaceType();
26
+ const webpackExternals = new WebpackExternals(this.cwd);
27
+ const externals = ['webpack/hot/poll?100', await webpackExternals.build()];
28
+ const plugins = this.createPlugins(environment, additionalPlugins);
71
29
  return {
72
30
  mode: environment,
73
- bail: environment === webpack_interfaces_1.WebpackEnvironment.prod,
74
- externals: await this.getExternals(),
31
+ bail: environment === 'production',
75
32
  target: 'async-node',
76
33
  optimization: { minimize: false },
77
34
  experiments: {
78
- outputModule: (await this.getWorkspaceType()) === 'module',
35
+ outputModule: type === 'module',
79
36
  },
80
- plugins: [
81
- environment === webpack_interfaces_1.WebpackEnvironment.dev ? new webpack_1.HotModuleReplacementPlugin() : () => { },
82
- ...plugins,
83
- ],
37
+ plugins,
84
38
  entry: {
85
- index: (0, node_path_1.join)(this.cwd, 'src/index'),
39
+ index: join(this.cwd, 'src/index'),
40
+ ...(environment === 'development' && { hot: 'webpack/hot/poll?100' }),
86
41
  },
87
42
  node: { __dirname: false, __filename: false },
88
43
  output: {
89
- path: (0, node_path_1.join)(this.cwd, 'dist'),
44
+ path: join(this.cwd, 'dist'),
90
45
  filename: '[name].js',
91
- library: { type: await this.getWorkspaceType() },
92
- chunkFormat: await this.getWorkspaceType(),
46
+ library: { type },
47
+ chunkFormat: environment === 'development' ? 'commonjs' : type,
48
+ module: type === 'module',
49
+ publicPath: './',
50
+ clean: false,
51
+ assetModuleFilename: 'assets/[name][ext]',
93
52
  },
94
53
  resolve: {
95
- extensionAlias: { '.js': ['.tsx', '.ts', '.js'], '.jsx': ['.tsx', '.ts', '.js'] },
54
+ extensionAlias: {
55
+ '.js': ['.tsx', '.ts', '.js'],
56
+ '.jsx': ['.tsx', '.ts', '.js'],
57
+ '.cjs': ['.cjs', '.cts'],
58
+ '.mjs': ['.mjs', '.mts'],
59
+ },
96
60
  extensions: ['.tsx', '.ts', '.js'],
61
+ alias: {
62
+ 'class-transformer/storage': 'class-transformer/cjs/storage',
63
+ },
64
+ },
65
+ externals,
66
+ externalsType: type === 'module' ? 'import' : 'commonjs',
67
+ externalsPresets: {
68
+ node: true,
97
69
  },
98
- devtool: environment === webpack_interfaces_1.WebpackEnvironment.prod ? 'source-map' : 'eval-cheap-module-source-map',
70
+ devtool: environment === 'production' ? 'source-map' : 'eval-cheap-module-source-map',
99
71
  module: {
100
72
  rules: [
101
73
  {
102
- test: /\.([mc]?ts|tsx)$/,
74
+ test: /\.d\.ts$/,
103
75
  use: {
104
- loader: require.resolve('swc-loader'),
105
- options: {
106
- minify: false,
107
- jsc: {
108
- parser: {
109
- syntax: 'typescript',
110
- jsx: true,
111
- dynamicImport: true,
112
- privateMethod: true,
113
- functionBind: true,
114
- exportDefaultFrom: true,
115
- exportNamespaceFrom: true,
116
- decorators: true,
117
- decoratorsBeforeExport: true,
118
- topLevelAwait: true,
119
- importMeta: true,
120
- },
121
- transform: {
122
- legacyDecorator: true,
123
- decoratorMetadata: true,
124
- },
125
- },
126
- },
76
+ loader: nullLoaderPath,
127
77
  },
128
78
  },
129
- { test: /\.proto$/, use: require.resolve('@atls/webpack-proto-imports-loader') },
130
79
  {
131
- test: /\.css$/i,
132
- use: [require.resolve('style-loader'), require.resolve('css-loader')],
80
+ test: /(^.?|\.[^d]|[^.]d|[^.][^d])\.tsx?$/,
81
+ use: {
82
+ loader: tsLoaderPath,
83
+ options: {
84
+ transpileOnly: true,
85
+ experimentalWatchApi: true,
86
+ onlyCompileBundledFiles: true,
87
+ compilerOptions: { ...tsconfig.compilerOptions, sourceMap: true },
88
+ context: this.cwd,
89
+ configFile,
90
+ },
91
+ },
133
92
  },
134
93
  { test: /\.(woff|woff2|eot|ttf|otf)$/i, type: 'asset/resource' },
135
94
  { test: /\.(png|svg|jpg|jpeg|gif)$/i, type: 'asset/resource' },
136
- { test: /\.ya?ml$/, use: require.resolve('yaml-loader') },
137
- { test: /\.(hbs|handlebars)$/, use: require.resolve('handlebars-loader') },
138
- { test: /\.node$/, use: require.resolve('node-loader') },
95
+ { test: /\.(md)$/i, type: 'asset/resource' },
96
+ { test: /\.node$/, use: nodeLoaderPath },
139
97
  ],
140
98
  },
141
99
  };
142
100
  }
101
+ async getWorkspaceType() {
102
+ try {
103
+ const content = await readFile(join(this.cwd, 'package.json'), 'utf-8');
104
+ const { type = 'commonjs' } = JSON.parse(content);
105
+ return type;
106
+ }
107
+ catch {
108
+ return 'module';
109
+ }
110
+ }
111
+ createPlugins(environment, additionalPlugins) {
112
+ const plugins = [
113
+ new wp.IgnorePlugin({
114
+ checkResource: (resource) => {
115
+ if (resource.endsWith('.js.map')) {
116
+ return true;
117
+ }
118
+ if (!LAZY_IMPORTS.includes(resource)) {
119
+ return false;
120
+ }
121
+ try {
122
+ require.resolve(resource, {
123
+ paths: [this.cwd],
124
+ });
125
+ }
126
+ catch (err) {
127
+ return true;
128
+ }
129
+ return false;
130
+ },
131
+ }),
132
+ ...additionalPlugins,
133
+ ];
134
+ if (environment === 'development') {
135
+ plugins.push(new wp.HotModuleReplacementPlugin());
136
+ }
137
+ return plugins;
138
+ }
143
139
  }
144
- exports.WebpackConfig = WebpackConfig;
145
- //# sourceMappingURL=webpack.config.js.map
@@ -1,3 +1,11 @@
1
- export declare const FORCE_UNPLUGGED_PACKAGES: Set<string>;
2
- export declare const UNUSED_EXTERNALS: string[];
3
- //# sourceMappingURL=webpack.externals.d.ts.map
1
+ import type { IPackageJson } from 'package-json-type';
2
+ export declare class WebpackExternals {
3
+ #private;
4
+ private readonly cwd;
5
+ constructor(cwd: string);
6
+ loadPackageJson(): Promise<IPackageJson>;
7
+ loadDependencies(): Promise<Array<string>>;
8
+ loadExternals(): Promise<Array<string>>;
9
+ build(): Promise<typeof this.externals>;
10
+ private externals;
11
+ }
@@ -1,40 +1,43 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UNUSED_EXTERNALS = exports.FORCE_UNPLUGGED_PACKAGES = void 0;
4
- exports.FORCE_UNPLUGGED_PACKAGES = new Set([
5
- 'nan',
6
- 'node-gyp',
7
- 'node-pre-gyp',
8
- 'node-addon-api',
9
- 'fsevents',
10
- 'core-js',
11
- 'core-js-pure',
12
- 'protobufjs',
13
- ]);
14
- exports.UNUSED_EXTERNALS = [
15
- 'cli-color',
16
- 'flaschenpost',
17
- 'amqp-connection-manager',
18
- 'amqplib',
19
- 'redis',
20
- 'mqtt',
21
- 'nats',
22
- '@nestjs/websockets',
23
- 'typeorm-aurora-data-api-driver',
24
- 'react-native-sqlite-storage',
25
- '@sap/hana-client',
26
- 'better-sqlite3',
27
- 'mongodb',
28
- 'oracledb',
29
- 'pg-native',
30
- 'mysql',
31
- 'ioredis',
32
- 'hdb-pool',
33
- 'mysql2',
34
- 'mssql',
35
- 'sql.js',
36
- 'sqlite3',
37
- 'pnpapi',
38
- 'next',
39
- ];
40
- //# sourceMappingURL=webpack.externals.js.map
1
+ import { readFile } from 'node:fs/promises';
2
+ import { join } from 'node:path';
3
+ import { WorkspaceConfiguration } from '@atls/code-configuration';
4
+ export class WebpackExternals {
5
+ cwd;
6
+ #externals = [];
7
+ #dependencies = [];
8
+ constructor(cwd) {
9
+ this.cwd = cwd;
10
+ }
11
+ async loadPackageJson() {
12
+ try {
13
+ return JSON.parse(await readFile(join(this.cwd, 'package.json'), 'utf-8'));
14
+ }
15
+ catch {
16
+ return {};
17
+ }
18
+ }
19
+ async loadDependencies() {
20
+ const { dependencies = {} } = await this.loadPackageJson();
21
+ return Object.keys(dependencies);
22
+ }
23
+ async loadExternals() {
24
+ const { service } = await WorkspaceConfiguration.find(this.cwd);
25
+ return service?.externals || [];
26
+ }
27
+ async build() {
28
+ this.#externals = await this.loadExternals();
29
+ this.#dependencies = await this.loadDependencies();
30
+ return this.externals;
31
+ }
32
+ externals = ({ request }, callback) => {
33
+ if (request && this.#dependencies.includes(request)) {
34
+ callback(undefined, request, 'module');
35
+ }
36
+ else if (request && this.#externals.includes(request)) {
37
+ callback(undefined, request, 'import');
38
+ }
39
+ else {
40
+ callback();
41
+ }
42
+ };
43
+ }
@@ -0,0 +1 @@
1
+ export declare const LAZY_IMPORTS: string[];
@@ -0,0 +1,25 @@
1
+ export const LAZY_IMPORTS = [
2
+ 'mqtt',
3
+ 'nats',
4
+ 'mariadb/callback',
5
+ 'better-sqlite3',
6
+ 'pg-native',
7
+ 'hdb-pool',
8
+ 'oracledb',
9
+ 'mongodb',
10
+ 'tedious',
11
+ 'sqlite3',
12
+ 'mysql',
13
+ 'mysql2',
14
+ 'mssql',
15
+ 'sql.js',
16
+ 'libsql',
17
+ '@mikro-orm/better-sqlite',
18
+ '@mikro-orm/mongodb',
19
+ '@mikro-orm/mariadb',
20
+ '@mikro-orm/sqlite',
21
+ '@mikro-orm/mysql',
22
+ '@nestjs/mongoose',
23
+ '@nestjs/typeorm/dist/common/typeorm.utils',
24
+ '@nestjs/sequelize/dist/common/sequelize.utils',
25
+ ];
@@ -1,6 +1,14 @@
1
- export declare enum WebpackEnvironment {
2
- prod = "production",
3
- dev = "development"
1
+ import type { SeverityNumber } from '@monstrs/logger';
2
+ import type { webpack } from '@atls/code-runtime/webpack';
3
+ export interface WebpackLogRecord {
4
+ record: webpack.StatsError;
5
+ severityNumber: SeverityNumber.ERROR | SeverityNumber.WARN;
6
+ }
7
+ export type WebpackEnvironment = 'development' | 'production';
8
+ export interface WebpackConfigPlugin {
9
+ name: string;
10
+ use: any;
11
+ args: Array<any>;
4
12
  }
5
13
  declare const ModuleType: {
6
14
  readonly commonjs: "commonjs";
@@ -8,4 +16,3 @@ declare const ModuleType: {
8
16
  };
9
17
  export type ModuleTypes = (typeof ModuleType)[keyof typeof ModuleType];
10
18
  export {};
11
- //# sourceMappingURL=webpack.interfaces.d.ts.map
@@ -1,13 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WebpackEnvironment = void 0;
4
- var WebpackEnvironment;
5
- (function (WebpackEnvironment) {
6
- WebpackEnvironment["prod"] = "production";
7
- WebpackEnvironment["dev"] = "development";
8
- })(WebpackEnvironment || (exports.WebpackEnvironment = WebpackEnvironment = {}));
9
1
  const ModuleType = {
10
2
  commonjs: 'commonjs',
11
3
  module: 'module',
12
4
  };
13
- //# sourceMappingURL=webpack.interfaces.js.map
5
+ export {};
package/package.json CHANGED
@@ -1,7 +1,16 @@
1
1
  {
2
2
  "name": "@atls/code-service",
3
- "version": "0.1.8",
3
+ "version": "2.0.1",
4
4
  "license": "BSD-3-Clause",
5
+ "type": "module",
6
+ "exports": {
7
+ "./package.json": "./package.json",
8
+ ".": {
9
+ "import": "./dist/index.js",
10
+ "types": "./dist/index.d.ts",
11
+ "default": "./dist/index.js"
12
+ }
13
+ },
5
14
  "main": "dist/index.js",
6
15
  "files": [
7
16
  "dist",
@@ -13,37 +22,33 @@
13
22
  "postpack": "rm -rf dist"
14
23
  },
15
24
  "dependencies": {
16
- "@atls/config-typescript": "0.0.11",
17
- "@atls/webpack-proto-imports-loader": "0.0.20",
18
- "@atls/webpack-start-server-plugin": "0.0.7",
19
- "@swc/core": "1.5.7",
20
- "@yarnpkg/cli": "4.1.0",
21
- "@yarnpkg/core": "4.0.3",
22
- "css-loader": "6.8.1",
23
- "fast-glob": "3.2.11",
24
- "find-up": "5.0.0",
25
- "handlebars": "4.7.8",
26
- "handlebars-loader": "1.7.3",
27
- "node-loader": "2.0.0",
28
- "string-replace-loader": "3.1.0",
29
- "style-loader": "3.3.3",
30
- "swc-loader": "0.2.6",
31
- "typescript": "5.2.2",
32
- "webpack": "5.91.0",
33
- "yaml-loader": "0.8.0"
25
+ "@atls/code-configuration": "2.0.0",
26
+ "@atls/code-runtime": "2.0.1",
27
+ "@atls/config-typescript": "2.0.0",
28
+ "@atls/webpack-start-server-plugin": "1.0.0",
29
+ "@yarnpkg/cli": "4.5.1",
30
+ "@yarnpkg/core": "4.1.4",
31
+ "typescript": "5.5.4"
34
32
  },
35
33
  "devDependencies": {
36
- "@types/jest": "27.5.2",
37
- "@types/node": "18.19.3",
38
- "@types/protocol-buffers-schema": "3.4.3",
39
- "@types/wait-for-localhost": "3.1.0",
34
+ "@monstrs/logger": "0.0.20",
35
+ "@types/node": "22.9.0",
40
36
  "@types/webpack": "5.28.5",
41
- "@yarnpkg/fslib": "3.0.2",
42
- "wait-for-localhost": "4.0.1"
37
+ "@yarnpkg/fslib": "3.1.0",
38
+ "package-json-type": "1.0.3"
43
39
  },
44
40
  "publishConfig": {
41
+ "access": "public",
42
+ "exports": {
43
+ "./package.json": "./package.json",
44
+ ".": {
45
+ "import": "./dist/index.js",
46
+ "types": "./dist/index.d.ts",
47
+ "default": "./dist/index.js"
48
+ }
49
+ },
45
50
  "main": "dist/index.js",
46
- "typings": "dist/index.d.ts"
51
+ "types": "dist/index.d.ts"
47
52
  },
48
- "typings": "dist/index.d.ts"
53
+ "types": "dist/index.d.ts"
49
54
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA"}
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAgC;AAChC,4CAAyB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAmB,SAAS,CAAA;AAO/C,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,yBAAyB,EAAE,CAAA;IAC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CAAC,EAAE;oBACzD,EAAE,IAAI,EAAE,qBAAqB,EAAE,GAAG,EAAE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,EAAE;oBAC1E,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE;iBACzD;aACF;SACF,CAAA;IACH,CAAC;CACF;AApJD,sCAoJC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"webpack.externals.d.ts","sourceRoot":"","sources":["../src/webpack.externals.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,aASnC,CAAA;AAEF,eAAO,MAAM,gBAAgB,UAgC5B,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"webpack.externals.js","sourceRoot":"","sources":["../src/webpack.externals.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG,IAAI,GAAG,CAAC;IAC9C,KAAK;IACL,UAAU;IACV,cAAc;IACd,gBAAgB;IAChB,UAAU;IACV,SAAS;IACT,cAAc;IACd,YAAY;CACb,CAAC,CAAA;AAEW,QAAA,gBAAgB,GAAG;IAE9B,WAAW;IACX,cAAc;IACd,yBAAyB;IACzB,SAAS;IACT,OAAO;IACP,MAAM;IACN,MAAM;IACN,oBAAoB;IAGpB,gCAAgC;IAChC,6BAA6B;IAC7B,kBAAkB;IAClB,gBAAgB;IAChB,SAAS;IACT,UAAU;IACV,WAAW;IACX,OAAO;IACP,SAAS;IACT,UAAU;IACV,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,SAAS;IAGT,QAAQ;IAGR,MAAM;CACP,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"webpack.interfaces.d.ts","sourceRoot":"","sources":["../src/webpack.interfaces.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,IAAI,eAAe;IACnB,GAAG,gBAAgB;CACpB;AAED,QAAA,MAAM,UAAU;;;CAGN,CAAA;AAEV,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"webpack.interfaces.js","sourceRoot":"","sources":["../src/webpack.interfaces.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,yCAAmB,CAAA;AACrB,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAED,MAAM,UAAU,GAAG;IACjB,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;CACR,CAAA"}