Skip to content

Commit

Permalink
chore: drop import-cwd (#227)
Browse files Browse the repository at this point in the history
* chore: drop import-cwd

* node 10 support
  • Loading branch information
43081j authored Jan 1, 2022
1 parent 64528c6 commit d7287ea
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"url": "https://opencollective.com/postcss/"
},
"dependencies": {
"import-cwd": "^3.0.0",
"lilconfig": "^2.0.3",
"yaml": "^1.10.2"
},
Expand Down
5 changes: 4 additions & 1 deletion src/options.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
'use strict'

const req = require('import-cwd')
// eslint-disable-next-line node/no-deprecated-api
const { createRequire, createRequireFromPath } = require('module')
const path = require('path')
const req = (createRequire || createRequireFromPath)(path.resolve(process.cwd(), '_'))

/**
* Load Options
Expand Down
5 changes: 4 additions & 1 deletion src/plugins.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
'use strict'

const req = require('import-cwd')
// eslint-disable-next-line node/no-deprecated-api
const { createRequire, createRequireFromPath } = require('module')
const path = require('path')
const req = (createRequire || createRequireFromPath)(path.resolve(process.cwd(), '_'))

/**
* Plugin Loader
Expand Down

0 comments on commit d7287ea

Please sign in to comment.