25 Commits

Author SHA1 Message Date
Ryan Zimmerman
fd50986b4c
BREAKING: ESM support (#974)
* Remove process.cwd() trick from test files

* BREAKING: Switch from main to exports

* Add fs-extra/esm ESM named import module, with just fs-extra methods

Fixes #746
2022-11-28 13:50:33 -05:00
Ryan Zimmerman
8f79dcd221
Refactor folder structure (#922)
* Rename lib/output/ to lib/output-file/

* Refactor lib/ensure/index.js

* Collapse copy-sync/ and move-sync/ into the async folders
2021-09-22 20:37:35 -04:00
Ryan Zimmerman
a149f822c3
JSON updates (#768)
* Upgrade jsonfile

Fixes #745

* Test from main entry point

* Make outputJson() mutation-proof

Fixes #702

* Update outputJsonSync() to match async implementation
2020-03-11 15:18:23 -04:00
Ryan Zimmerman
f3a2eed496
Upgrade to standard v12 (#685) 2019-05-14 13:50:05 -04:00
Mani Maghsoudlou
e340861b4f [BREAKING] copy*(): use ino to check identical paths (#582) 2018-07-16 20:52:21 -04:00
Mani Maghsoudlou
b02eea6a37 Use strict assert in all tests (#569) 2018-04-19 07:28:45 -04:00
RyanZim
7a9bb173b9 Upgrade to jsonfile 4.0.0 for EOL option support 2017-09-12 18:47:43 -04:00
RyanZim
dd85f38ab1 Fix typo that broke outputJSONSync()
Reorganize file to put async methods first
2017-05-17 12:28:22 -04:00
RyanZim
df125bebf7 Use pathExists() internally 2017-04-26 10:04:17 -04:00
RyanZim
03b2080b7e Universalify fs-extra methods 2017-04-26 10:04:07 -04:00
RyanZim
03e1b477d9 BREAKING: Don't use spaces for JSON writing, remove global setting 2017-04-26 10:04:07 -04:00
JPeer264
d24a98bbc6 Update: arrow functions simplified 2017-02-22 15:40:47 +01:00
JPeer264
a432377c0e Refactor test json 2017-02-22 13:44:43 +01:00
JPeer264
4a9db4ebca Refactor outputJson 2017-02-17 18:00:53 +01:00
JPeer264
6f69cd6ca8 Refactor outputJsonSync 2017-02-17 17:58:37 +01:00
JPeer264
ce24044615 Refactor jsonfile 2017-02-17 17:57:16 +01:00
JPeer264
8eb6bc2e30 Refactor json/index 2017-02-17 17:29:21 +01:00
JP Richardson
08ebcfab78 lib/json: bug fix, outputJson{Sync} wasn't setting spaces correctly. Closes #163. 2015-11-02 21:00:22 -06:00
JP Richardson
4e4b936467 lib/json: fixed jsonfile regression. Closes #26 2015-06-23 15:25:02 -05:00
JP Richardson
b7166e2a9a lib/json/output-json: pass options 2015-06-19 09:54:59 -05:00
JP Richardson
81ad04ef8b lib/json/output-json-sync: pass options 2015-06-19 09:51:06 -05:00
JP Richardson
e37ebab553 lib/json/__tests__/output-json: renamed 2015-06-19 09:39:16 -05:00
JP Richardson
77faa58cf7 lib/json: refactored output-sync-test 2015-06-19 09:34:30 -05:00
JP Richardson
32a5daf7b1 fs-extra: started moving tests inline 2015-06-19 09:17:07 -05:00
JP Richardson
1dd0e8accc lib/json: moved json methods 2015-06-16 09:46:52 -05:00