Skip to content

Commit

Permalink
Devtools: Introduce new module with depreacted util
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed May 27, 2018
1 parent 9fd7bb9 commit 169ae93
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module.exports = {
message: 'Use @wordpress/date as import path instead.',
},
{
selector: 'ImportDeclaration[source.value=/^deprecated/]',
selector: 'ImportDeclaration[source.value=/^deprecated$/]',
message: 'Use @wordpress/deprecated as import path instead.',
},
{
Expand Down
1 change: 1 addition & 0 deletions packages/data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
},
"main": "src/index.js",
"dependencies": {
"@wordpress/deprecated": "0.0.1",
"@wordpress/element": "0.0.1",
"@wordpress/is-shallow-equal": "1.0.2",
"equivalent-key-map": "0.2.0",
Expand Down
2 changes: 1 addition & 1 deletion test/unit/jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
],
"moduleNameMapper": {
"@wordpress\\/(blocks|components|editor|utils|edit-post|viewport|plugins|core-data|core-blocks)$": "$1",
"@wordpress\\/(data|date|dom|deprecated|element)$": "packages/$1/src"
"@wordpress\\/(data|date|dom|deprecated|element|postcss-themes)$": "packages/$1/src"
},
"preset": "@wordpress/jest-preset-default",
"setupFiles": [
Expand Down

0 comments on commit 169ae93

Please sign in to comment.