Skip to content

Commit

Permalink
fix: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dword-design committed Feb 17, 2021
1 parent 9faf20a commit cfeba1a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
"test": "base test"
},
"dependencies": {
"@dword-design/functions": "^2.7.2",
"linaria": "^2.0.0"
},
"devDependencies": {
"@dword-design/base": "^7.0.0",
"@dword-design/functions": "^1.1.5",
"@dword-design/puppeteer": "^1.0.1",
"depcheck-package-name": "^1.0.0",
"nuxt": "^2.14.3",
Expand Down
4 changes: 1 addition & 3 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { find } from '@dword-design/functions'

export default function () {
this.extendBuild(config => {
const jsRule = config.module.rules |> find(rule => rule.test.test('.js'))
const jsRule = config.module.rules.find(rule => rule.test.test('.js'))
jsRule.use.push({
loader: require.resolve('linaria/loader'),
options: {
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1161,7 +1161,7 @@
"@dword-design/functions" "^1.1.2"
babel-plugin-module-resolver "^4.0.0"

"@dword-design/functions@^1.1.2":
"@dword-design/functions@^1.1.2", "@dword-design/functions@^1.1.5":
version "1.1.5"
resolved "https://registry.yarnpkg.com/@dword-design/functions/-/functions-1.1.5.tgz#0b39b7a15ed2b162641991c6950cca9844f4cd4e"
integrity sha512-j/pqGY6PC/8ccXM+SMxekarpwsHsDPOUkia+Eu/28ZTx3FQ2mUDb0EEAmFj9OwEXIjVvU+F710Wh0fBB7/9eyg==
Expand Down Expand Up @@ -4430,7 +4430,7 @@ depcheck-parser-babel@^1.2.0:
"@babel/core" "^7.7.7"
fs-extra "^9.0.0"

"depcheck@github:dword-design/depcheck#fork":
depcheck@dword-design/depcheck#fork:
version "0.0.1"
resolved "https://codeload.github.com/dword-design/depcheck/tar.gz/8a9eb41006c2c6f9cbd79e4e68bf265e1c1df1dc"
dependencies:
Expand Down Expand Up @@ -4755,7 +4755,7 @@ end-of-stream@^1.0.0, end-of-stream@^1.1.0, end-of-stream@^1.4.1:
dependencies:
once "^1.4.0"

endent@dword-design/endent#fork:
endent@dword-design/endent#fork, "endent@github:dword-design/endent#fork":
version "1.4.0"
resolved "https://codeload.github.com/dword-design/endent/tar.gz/be5433db67eaec07c6c9d00ba3bed2ed946dc664"
dependencies:
Expand Down

0 comments on commit cfeba1a

Please sign in to comment.