@nxworker/workspace
Version:
Nx plugin providing generators for managing workspace files, including the move-file generator for safely moving files between projects while updating all imports
62 lines (61 loc) • 1.34 kB
JavaScript
/**
* File extension constants used throughout the move-file generator.
* These constants define which file types are processed during moves.
*/ /**
* File extensions that can be used for project entry points.
* Frozen array to prevent modifications.
*/ "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
entrypointExtensions: function() {
return entrypointExtensions;
},
primaryEntryBaseNames: function() {
return primaryEntryBaseNames;
},
sourceFileExtensions: function() {
return sourceFileExtensions;
},
strippableExtensions: function() {
return strippableExtensions;
}
});
const entrypointExtensions = Object.freeze([
'ts',
'mts',
'cts',
'mjs',
'cjs',
'js',
'tsx',
'jsx'
]);
const primaryEntryBaseNames = Object.freeze([
'public-api',
'index'
]);
const sourceFileExtensions = Object.freeze([
'.ts',
'.tsx',
'.js',
'.jsx',
'.mts',
'.mjs',
'.cts',
'.cjs'
]);
const strippableExtensions = Object.freeze([
'.ts',
'.tsx',
'.js',
'.jsx'
]);
//# sourceMappingURL=file-extensions.js.map