Skip to content

Commit

Permalink
move string utils to lib
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Sep 5, 2024
1 parent 71098b0 commit f840dac
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion generators/angular/support/needles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import type { Entity } from '../../base-application/index.js';
import type { BaseApplication, CommonClientServerApplication } from '../../base-application/types.js';
import { createNeedleCallback } from '../../base/support/needles.js';
import { upperFirstCamelCase } from '../../base/support/string.js';
import { upperFirstCamelCase } from '../../../lib/utils/string.js';
import { joinCallbacks } from '../../base/support/write-files.js';

export function addRoute({
Expand Down
2 changes: 1 addition & 1 deletion generators/base/support/hipster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { stringHashCode } from './string.js';
import { stringHashCode } from '../../../lib/utils/string.js';

/**
* get a hipster based on the applications name.
Expand Down
2 changes: 1 addition & 1 deletion generators/base/support/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ export * from './needles.js';
export * from './path.js';
export { default as httpsGet } from './remote.js';
export * from './secret.js';
export * from './string.js';
export * from '../../../lib/utils/string.js';
export * from './timestamp.js';
export * from './write-files.js';
2 changes: 1 addition & 1 deletion generators/base/support/jhipster7-context.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
import { getDBCExtraOption } from '../../spring-data-relational/support/database-data.js';
import { getJdbcUrl, getR2dbcUrl } from '../../spring-data-relational/support/database-url.js';
import { fieldTypes } from '../../../jdl/jhipster/index.js';
import { upperFirstCamelCase } from './string.js';
import { upperFirstCamelCase } from '../../../lib/utils/string.js';

const { BYTES, BYTE_BUFFER } = fieldTypes.RelationalOnlyDBTypes;

Expand Down
2 changes: 1 addition & 1 deletion lib/internal/config-def.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { JHipsterConfigs } from '../../lib/command/index.js';
import type CoreGenerator from '../../generators/base-core/index.js';
import { upperFirstCamelCase } from '../../generators/base/support/string.js';
import { upperFirstCamelCase } from '../utils/string.js';

export function loadConfig(
this: CoreGenerator | void,
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit f840dac

Please sign in to comment.