Skip to content

Commit

Permalink
fix: replace get-package-name with depcheck-package-name
Browse files Browse the repository at this point in the history
  • Loading branch information
dword-design committed Dec 10, 2020
1 parent d336d02 commit 4d7c1e5
Show file tree
Hide file tree
Showing 4 changed files with 237 additions and 312 deletions.
2 changes: 1 addition & 1 deletion .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM gitpod/workspace-full

RUN sudo apt-get update && sudo apt-get install -y libgtk-3-0 libx11-xcb1 libnss3 libxss1 libasound2
RUN sudo apt-get update && sudo apt-get install -y libgtk-3-0 libx11-xcb1 libnss3 libxss1 libasound2 libgbm1
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"@dword-design/base": "^6.0.0",
"@dword-design/functions": "^2.2.4",
"depcheck": "dword-design/depcheck#fork",
"depcheck-package-name": "^1.0.0",
"execa": "^5.0.0",
"get-package-name": "^1.1.0",
"output-files": "^1.1.10",
"with-local-tmp-dir": "^2.2.4"
},
Expand Down
11 changes: 3 additions & 8 deletions src/index.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { endent } from '@dword-design/functions'
import packageName from 'depcheck-package-name'
import execa from 'execa'
import getPackageName from 'get-package-name'
import outputFiles from 'output-files'
import withLocalTmpDir from 'with-local-tmp-dir'

Expand All @@ -11,17 +11,12 @@ export default {
'.babelrc.json': JSON.stringify({
plugins: [
[
getPackageName(
require.resolve('@babel/plugin-proposal-pipeline-operator')
),
packageName`@babel/plugin-proposal-pipeline-operator`,
{ proposal: 'fsharp' },
],
],
presets: [
[
getPackageName(require.resolve('@babel/preset-env')),
{ targets: { node: 10 } },
],
[packageName`@babel/preset-env`, { targets: { node: 10 } }],
],
}),
'depcheck.config.js': endent`
Expand Down
Loading

0 comments on commit 4d7c1e5

Please sign in to comment.