Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: make imports compatible with new bundler #44

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion projects/validation-messages/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@house-of-angular/validation-messages",
"version": "17.0.2",
"version": "17.0.3",
"peerDependencies": {
"@angular/common": "^17.0.6",
"@angular/core": "^17.0.6"
Expand Down
4 changes: 2 additions & 2 deletions projects/validation-messages/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"defaultConfiguration": "production"
},
"test": {
"executor": "@nrwl/jest:jest",
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "projects/validation-messages/jest.config.ts",
Expand All @@ -37,7 +37,7 @@
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"executor": "@nx/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": [
Expand Down
10 changes: 5 additions & 5 deletions projects/validation-messages/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export * from './lib/services';
export * from './lib/components/validation-messages/validation-messages.component';
export * from './lib/validation-messages.module';
export * from './lib/resources';
export * from './lib/utils';
export * from './lib/services/index.js';
export * from './lib/components/validation-messages/validation-messages.component.js';
export * from './lib/validation-messages.module.js';
export * from './lib/resources/index.js';
export * from './lib/utils/index.js';
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ControlContainer, FormControl, Validators } from '@angular/forms';
import { ValidationMessagesComponent } from './validation-messages.component';
import { ValidationMessagesComponent } from './validation-messages.component.js';
import { MatFormField } from '@angular/material/form-field';
import { createHostFactory } from '@ngneat/spectator/jest';
// eslint-disable-next-line @nrwl/nx/enforce-module-boundaries
Expand All @@ -8,7 +8,7 @@ import {
ValidationMessagesConfig,
ValidationMessagesService,
} from 'validation-messages';
import { selectors } from '../../resources/const/test-selectors';
import { selectors } from '../../resources/const/test-selectors.js';

interface TestConfig {
control?: FormControl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import {
ApiErrorMessage,
ApiErrorMessages,
ValidationMessagesConfig,
} from '../../resources';
import { ValidationMessagesService } from '../../services';
} from '../../resources/index.js';
import { ValidationMessagesService } from '../../services/index.js';
import {
MatFormField,
MatFormFieldControl,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import {
ReactiveFormsModule,
Validators,
} from '@angular/forms';
import { ValidationMessagesModule } from '../../validation-messages.module';
import { ValidationMessagesModule } from '../../validation-messages.module.js';
import { createHostFactory } from '@ngneat/spectator/jest';
import { MatInputModule } from '@angular/material/input';
import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';
import { MatDatepickerInputHarness } from '@angular/material/datepicker/testing';
import { MatDatepickerModule } from '@angular/material/datepicker';
import { MatNativeDateModule } from '@angular/material/core';
import { ValidationMessagesService } from '../../services/validation-messages.service';
import { ValidationMessagesService } from '../../services/validation-messages.service.js';

const selectors = {
textInput: '[data-cy="text-input"]',
Expand Down
4 changes: 2 additions & 2 deletions projects/validation-messages/src/lib/resources/const/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './angular-validators-with-value-map.const';
export * from './validators-with-value.const';
export * from './angular-validators-with-value-map.const.js';
export * from './validators-with-value.const.js';
8 changes: 4 additions & 4 deletions projects/validation-messages/src/lib/resources/enums/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './angular-validator-value.enum';
export * from './angular-validators-with-value.enum';
export * from './validator-value.enum';
export * from './validator-with-value.enum';
export * from './angular-validator-value.enum.js';
export * from './angular-validators-with-value.enum.js';
export * from './validator-value.enum.js';
export * from './validator-with-value.enum.js';
6 changes: 3 additions & 3 deletions projects/validation-messages/src/lib/resources/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './interfaces';
export * from './const';
export * from './enums';
export * from './interfaces/index.js';
export * from './const/index.js';
export * from './enums/index.js';
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './validation-message';
export * from './validation-messages-config';
export * from './api-error-message';
export * from './parser';
export * from './validation-message.js';
export * from './validation-messages-config.js';
export * from './api-error-message.js';
export * from './parser.js';
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ValidationMessage } from './validation-message';
import { ValidationMessage } from './validation-message.js';

export interface ValidationMessagesConfig {
[key: string]: string | ValidationMessage;
Expand Down
2 changes: 1 addition & 1 deletion projects/validation-messages/src/lib/services/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './validation-messages.service';
export * from './validation-messages.service.js';
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
Parser,
ValidationMessagesConfig,
ValidationMessagesEnhancedConfig,
} from '../resources';
} from '../resources/index.js';
import { KeyValue } from '@angular/common';
import {
getInterpolableParams,
Expand Down
6 changes: 3 additions & 3 deletions projects/validation-messages/src/lib/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './get-prop-by-path.util';
export * from './get-interpolable-params.util';
export * from './merge-validation-messages-configs.util';
export * from './get-prop-by-path.util.js';
export * from './get-interpolable-params.util.js';
export * from './merge-validation-messages-configs.util.js';
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
angularValidatorsWithValueMap,
ValidationMessagesConfig,
ValidationMessagesEnhancedConfig,
} from '../resources';
} from '../resources/index.js';

export function mergeValidationMessagesConfigs(
config: ValidationMessagesEnhancedConfig,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { ValidationMessagesComponent } from './components/validation-messages/validation-messages.component';
import { ValidationMessagesComponent } from './components/validation-messages/validation-messages.component.js';

@NgModule({
imports: [CommonModule],
declarations: [ValidationMessagesComponent],
exports: [ValidationMessagesComponent]
exports: [ValidationMessagesComponent],
})
export class ValidationMessagesModule {}
2 changes: 1 addition & 1 deletion projects/validation-messages/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
"noFallthroughCasesInSwitch": true,
},
"files": [],
"include": [],
Expand Down
Loading