Skip to content

Commit

Permalink
fix: add missing export build in package.json (#936)
Browse files Browse the repository at this point in the history
Closes #935
  • Loading branch information
ahnpnl authored May 28, 2021
1 parent 7f93a4b commit b035581
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions examples/example-app-v10/jest-esm.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require('jest-preset-angular/ngcc-jest-processor');
const snapshotSerializers = require('jest-preset-angular/build/serializers/index');

/** @type {import('@jest/types').Config.InitialOptions} */
module.exports = {
Expand All @@ -9,5 +10,6 @@ module.exports = {
stringifyContentPathRegex: '\\.html$',
},
},
snapshotSerializers,
setupFilesAfterEnv: ['<rootDir>/setup-jest.ts'],
};
2 changes: 2 additions & 0 deletions examples/example-app-v11/jest-esm.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require('jest-preset-angular/ngcc-jest-processor');
const snapshotSerializers = require('jest-preset-angular/build/serializers/index');

/** @type {import('@jest/types').Config.InitialOptions} */
module.exports = {
Expand All @@ -9,5 +10,6 @@ module.exports = {
stringifyContentPathRegex: '\\.html$',
},
},
snapshotSerializers,
setupFilesAfterEnv: ['<rootDir>/setup-jest.ts'],
};
2 changes: 2 additions & 0 deletions examples/example-app-v12/jest-esm.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require('jest-preset-angular/ngcc-jest-processor');
const snapshotSerializers = require('jest-preset-angular/build/serializers/index');

/** @type {import('@jest/types').Config.InitialOptions} */
module.exports = {
Expand All @@ -9,5 +10,6 @@ module.exports = {
stringifyContentPathRegex: '\\.html$',
},
},
snapshotSerializers,
setupFilesAfterEnv: ['<rootDir>/setup-jest.ts'],
};
2 changes: 2 additions & 0 deletions examples/example-app-v9/jest-esm.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require('jest-preset-angular/ngcc-jest-processor');
const snapshotSerializers = require('jest-preset-angular/build/serializers/index');

/** @type {import('@jest/types').Config.InitialOptions} */
module.exports = {
Expand All @@ -9,5 +10,6 @@ module.exports = {
stringifyContentPathRegex: '\\.html$',
},
},
snapshotSerializers,
setupFilesAfterEnv: ['<rootDir>/setup-jest.ts'],
};
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"license": "MIT",
"main": "build/index.js",
"exports": {
".": "./dist/index.js",
".": "./build/index.js",
"./build/*": "./build/*.js",
"./presets": "./presets/index.js",
"./jest-preset": "./jest-preset.js",
"./setup-jest": "./setup-jest.js",
Expand Down

0 comments on commit b035581

Please sign in to comment.