Comparing version 4.0.7 to 4.1.0
{ | ||
"name": "rimraf", | ||
"version": "4.0.7", | ||
"main": "./dist/cjs/src/index.js", | ||
"module": "./dist/mjs/src/index.js", | ||
"version": "4.1.0", | ||
"main": "./dist/cjs/src/index-cjs.js", | ||
"module": "./dist/mjs/index.js", | ||
"bin": "./dist/cjs/src/bin.js", | ||
@@ -10,8 +10,8 @@ "exports": { | ||
"import": { | ||
"default": "./dist/mjs/src/index.js", | ||
"types": "./dist/mjs/src/index.d.ts" | ||
"default": "./dist/mjs/index.js", | ||
"types": "./dist/mjs/index.d.ts" | ||
}, | ||
"require": { | ||
"default": "./dist/cjs/src/index.js", | ||
"types": "./dist/cjs/src/index.d.ts" | ||
"default": "./dist/cjs/src/index-cjs.js", | ||
"types": "./dist/cjs/src/index-cjs.d.ts" | ||
} | ||
@@ -32,3 +32,3 @@ } | ||
"preprepare": "rm -rf dist", | ||
"prepare": "tsc -p tsconfig-cjs.json && tsc -p tsconfig-esm.json", | ||
"prepare": "tsc -p tsconfig.json && tsc -p tsconfig-esm.json", | ||
"postprepare": "bash fixup.sh", | ||
@@ -35,0 +35,0 @@ "pretest": "npm run prepare", |
@@ -9,3 +9,3 @@ #!/usr/bin/env node | ||
const package_json_1 = require("../package.json"); | ||
const _1 = __importDefault(require("./")); | ||
const index_cjs_js_1 = __importDefault(require("./index-cjs.js")); | ||
const runHelpForUsage = () => console.error('run `rimraf --help` for usage information'); | ||
@@ -45,3 +45,3 @@ exports.help = `rimraf version ${package_json_1.version} | ||
let dashdash = false; | ||
let impl = _1.default; | ||
let impl = index_cjs_js_1.default; | ||
for (const arg of args) { | ||
@@ -92,3 +92,3 @@ if (dashdash) { | ||
case 'rimraf': | ||
impl = _1.default; | ||
impl = index_cjs_js_1.default; | ||
continue; | ||
@@ -99,6 +99,6 @@ case 'native': | ||
case 'windows': | ||
impl = _1.default[val]; | ||
impl = index_cjs_js_1.default[val]; | ||
continue; | ||
case 'move-remove': | ||
impl = _1.default.moveRemove; | ||
impl = index_cjs_js_1.default.moveRemove; | ||
continue; | ||
@@ -105,0 +105,0 @@ default: |
{ | ||
"name": "rimraf", | ||
"version": "4.0.7", | ||
"main": "./dist/cjs/src/index.js", | ||
"module": "./dist/mjs/src/index.js", | ||
"bin": "./dist/cjs/src/bin.js", | ||
"exports": { | ||
".": { | ||
"import": { | ||
"default": "./dist/mjs/src/index.js", | ||
"types": "./dist/mjs/src/index.d.ts" | ||
}, | ||
"require": { | ||
"default": "./dist/cjs/src/index.js", | ||
"types": "./dist/cjs/src/index.d.ts" | ||
} | ||
} | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"description": "A deep deletion module for node (like `rm -rf`)", | ||
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)", | ||
"license": "ISC", | ||
"repository": "git://github.com/isaacs/rimraf.git", | ||
"scripts": { | ||
"preversion": "npm test", | ||
"postversion": "npm publish", | ||
"prepublishOnly": "git push origin --follow-tags", | ||
"preprepare": "rm -rf dist", | ||
"prepare": "tsc -p tsconfig-cjs.json && tsc -p tsconfig-esm.json", | ||
"postprepare": "bash fixup.sh", | ||
"pretest": "npm run prepare", | ||
"presnap": "npm run prepare", | ||
"test": "c8 tap", | ||
"snap": "c8 tap", | ||
"format": "prettier --write . --loglevel warn", | ||
"benchmark": "node benchmark/index.js", | ||
"typedoc": "typedoc --tsconfig tsconfig-esm.json ./src/*.ts" | ||
}, | ||
"prettier": { | ||
"semi": false, | ||
"printWidth": 80, | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"singleQuote": true, | ||
"jsxSingleQuote": false, | ||
"bracketSameLine": true, | ||
"arrowParens": "avoid", | ||
"endOfLine": "lf" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^18.11.9", | ||
"@types/tap": "^15.0.7", | ||
"c8": "^7.12.0", | ||
"eslint-config-prettier": "^8.6.0", | ||
"mkdirp": "1", | ||
"prettier": "^2.8.2", | ||
"tap": "^16.3.3", | ||
"ts-node": "^10.9.1", | ||
"typedoc": "^0.23.21", | ||
"typescript": "^4.9.3" | ||
}, | ||
"tap": { | ||
"coverage": false, | ||
"libtap-settings": "libtap-settings.js", | ||
"node-arg": [ | ||
"--no-warnings", | ||
"--loader", | ||
"ts-node/esm" | ||
], | ||
"ts": false | ||
}, | ||
"funding": { | ||
"url": "https://github.com/sponsors/isaacs" | ||
}, | ||
"engines": { | ||
"node": ">=14" | ||
} | ||
"type": "module" | ||
} |
{ | ||
"name": "rimraf", | ||
"version": "4.0.7", | ||
"main": "./dist/cjs/src/index.js", | ||
"module": "./dist/mjs/src/index.js", | ||
"version": "4.1.0", | ||
"main": "./dist/cjs/src/index-cjs.js", | ||
"module": "./dist/mjs/index.js", | ||
"bin": "./dist/cjs/src/bin.js", | ||
@@ -10,8 +10,8 @@ "exports": { | ||
"import": { | ||
"default": "./dist/mjs/src/index.js", | ||
"types": "./dist/mjs/src/index.d.ts" | ||
"default": "./dist/mjs/index.js", | ||
"types": "./dist/mjs/index.d.ts" | ||
}, | ||
"require": { | ||
"default": "./dist/cjs/src/index.js", | ||
"types": "./dist/cjs/src/index.d.ts" | ||
"default": "./dist/cjs/src/index-cjs.js", | ||
"types": "./dist/cjs/src/index-cjs.d.ts" | ||
} | ||
@@ -32,3 +32,3 @@ } | ||
"preprepare": "rm -rf dist", | ||
"prepare": "tsc -p tsconfig-cjs.json && tsc -p tsconfig-esm.json", | ||
"prepare": "tsc -p tsconfig.json && tsc -p tsconfig-esm.json", | ||
"postprepare": "bash fixup.sh", | ||
@@ -35,0 +35,0 @@ "pretest": "npm run prepare", |
@@ -24,5 +24,5 @@ The [UNIX command](<http://en.wikipedia.org/wiki/Rm_(Unix)>) `rm -rf` for node. | ||
// default export is the main rimraf function, or use named imports | ||
import { rimraf } from 'rimraf' | ||
import rimraf from 'rimraf' | ||
// or | ||
const { rimraf } = require('rimraf') | ||
const rimraf = require('rimraf') | ||
@@ -29,0 +29,0 @@ // other strategies exported as well |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8
145044
107
1820