Comparing version 6.9.0 to 7.0.0
"use strict"; | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
}; | ||
@@ -39,3 +37,3 @@ exports.__esModule = true; | ||
function joinPathToBase(base, segments) { | ||
return base ? path.join.apply(path, __spreadArrays([base], segments)) : void 0; | ||
return base ? path.join.apply(path, __spreadArray([base], segments)) : void 0; | ||
} | ||
@@ -55,3 +53,3 @@ function posix() { | ||
var priorityListLazy = [ | ||
os.tmpdir, | ||
typeof os.tmpdir === 'function' ? os.tmpdir : function () { return void 0; }, | ||
function () { return env.get('TEMP'); }, | ||
@@ -85,2 +83,2 @@ function () { return env.get('TMP'); }, | ||
exports.Adapt = Adapt; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiT1NQYXRocy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9saWIvT1NQYXRocy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBdUJBLFNBQVMsT0FBTyxDQUFDLENBQTRCO0lBQzVDLE9BQU8sQ0FBQyxDQUFDLENBQUM7QUFDWCxDQUFDO0FBRUQsU0FBUyxLQUFLLENBQUMsUUFBMEI7SUFDaEMsSUFBQSxHQUFHLEdBQWUsUUFBUSxJQUF2QixFQUFFLEVBQUUsR0FBVyxRQUFRLEdBQW5CLEVBQUUsSUFBSSxHQUFLLFFBQVEsS0FBYixDQUFjO0lBRW5DLElBQU0sT0FBTyxHQUFHLE9BQU8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ENBQUM7SUFHRDtRQUNDO1lBQ0MsU0FBUyxPQUFPO2dCQUNmLE9BQU8sSUFBSSxRQUFRLEVBQWEsQ0FBQztZQUNsQyxDQUFDO1lBRUQsT0FBTyxDQUFDLElBQUksR0FBRyxJQUFJLENBQUM7WUFDcEIsT0FBTyxDQUFDLElBQUksR0FBRyxJQUFJLENBQUM7WUFFcEIsT0FBTyxPQUFPLENBQUM7UUFDaEIsQ0FBQztRQUNGLGVBQUM7SUFBRCxDQUFDLEFBWEQsSUFXQztJQUVELE9BQU8sRUFBRSxPQUFPLEVBQUUsSUFBSSxRQUFRLEVBQWEsRUFBRSxDQUFDO0FBQy9DLENBQUM7QUFHUSxzQkFBSyJ9 |
@@ -26,2 +26,3 @@ "use strict"; | ||
exports.adapter = { | ||
atImportPermissions: { env: true }, | ||
env: { | ||
@@ -36,2 +37,2 @@ get: function (s) { | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9kZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9wbGF0Zm9ybS1hZGFwdGVycy9ub2RlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSxxQ0FBeUI7QUFDekIseUNBQTZCO0FBSWhCLFFBQUEsT0FBTyxHQUFxQjtJQUN4QyxHQUFHLEVBQUU7UUFDSixHQUFHLEVBQUUsVUFBQyxDQUFDO1lBRU4sT0FBTyxPQUFPLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQ3ZCLENBQUM7S0FDRDtJQUNELEVBQUUsSUFBQTtJQUNGLElBQUksTUFBQTtJQUNKLE9BQU8sU0FBQTtDQUNQLENBQUMifQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9kZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9wbGF0Zm9ybS1hZGFwdGVycy9ub2RlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSxxQ0FBeUI7QUFDekIseUNBQTZCO0FBSWhCLFFBQUEsT0FBTyxHQUFxQjtJQUN4QyxtQkFBbUIsRUFBRSxFQUFFLEdBQUcsRUFBRSxJQUFJLEVBQUU7SUFDbEMsR0FBRyxFQUFFO1FBQ0osR0FBRyxFQUFFLFVBQUMsQ0FBQztZQUVOLE9BQU8sT0FBTyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQztRQUN2QixDQUFDO0tBQ0Q7SUFDRCxFQUFFLElBQUE7SUFDRixJQUFJLE1BQUE7SUFDSixPQUFPLFNBQUE7Q0FDUCxDQUFDIn0= |
@@ -15,3 +15,2 @@ /** `OSPaths` (API) Determine common OS/platform paths (home, temp, ...) */ | ||
export default _; | ||
export { OSPaths }; | ||
export { OSPaths, _ as default }; |
{ | ||
"name": "os-paths", | ||
"version": "6.9.0", | ||
"version": "7.0.0", | ||
"description": "Determine common OS/platform paths (home, temp, ...)", | ||
@@ -66,3 +66,3 @@ "license": "MIT", | ||
"build:umd": "exec-if-updated --source package.json --source tsconfig.json --source \"tsconfig/**\" --source \"rollup.*.config.js\" --source \"src/**\" --target build/.targets/build-umd.succeeded \"run-s -n rebuild:umd\"", | ||
"build:testbed": "exec-if-updated --source package.json --source tsconfig.json --source \"tsconfig/**\" --source \"rollup.*.config.js\" --source \"src/**\" --target build/.targets/build-testbed.succeeded \"run-s -n rebuild:testbed\"", | ||
"build:lab": "exec-if-updated --source package.json --source tsconfig.json --source \"tsconfig/**\" --source \"rollup.*.config.js\" --source \"src/**\" --target build/.targets/build-lab.succeeded \"run-s -n rebuild:lab\"", | ||
"build:types": "exec-if-updated --source package.json --source tsconfig.json --source \"tsconfig/**\" --source \"rollup.*.config.js\" --source \"src/**\" --target build/.targets/build-types.succeeded \"run-s -n rebuild:types\"", | ||
@@ -84,3 +84,3 @@ "# clean # remove build artifacts": "", | ||
"# fix:style # fix Prettier formatting issues": "", | ||
"fix:style": "prettier . --write", | ||
"fix:style": "prettier . --write --list-different", | ||
"# help # display help": "", | ||
@@ -93,3 +93,3 @@ "help": "run-s --silent _:help", | ||
"# lint:editorconfig # check for EditorConfig format flaws (using `editorconfig-checker`)": "", | ||
"lint:editorconfig": "editorconfig-checker -disable-max-line-length -exclude \"(build|dist|vendor)/.*\"", | ||
"lint:editorconfig": "editorconfig-checker -config .ecrc.JS.json", | ||
"# lint:lint # check for code 'lint' (using `eslint`)": "", | ||
@@ -102,3 +102,5 @@ "lint:lint": "eslint .", | ||
"# lint:style # check for format imperfections (using `prettier`)": "", | ||
"lint:style": "prettier . --list-different", | ||
"lint:style": "prettier . --check --loglevel warn", | ||
"# prerelease # clean, rebuild, and fully test (useful prior to publish/release)": "", | ||
"prerelease": "run-s clean verify", | ||
"# realclean # remove all generated files": "", | ||
@@ -108,6 +110,8 @@ "realclean": "run-s clean && rimraf coverage .nyc_output", | ||
"rebuild": "run-s clean build", | ||
"# rebuild:all # clean and fully reconstruct project distribution": "", | ||
"rebuild:all": "run-s clean build update", | ||
"rebuild:cjs": "shx rm -fr build/cjs && tsc -p tsconfig/tsconfig.cjs.json && shx cp -r src/esm-wrapper build/cjs/src && shx mkdir -p build/.targets && shx touch build/.targets/build-cjs.succeeded", | ||
"rebuild:esm": "shx rm -fr build/esm && tsc -p tsconfig/tsconfig.esm.json && shx cp src/esm-wrapper/package.json build/esm/src && shx mkdir -p build/.targets && shx touch build/.targets/build-esm.succeeded", | ||
"rebuild:umd": "shx rm -fr build/umd && tsc -p tsconfig/tsconfig.umd.json && shx mkdir -p build/.targets && shx touch build/.targets/build-umd.succeeded", | ||
"rebuild:testbed": "shx rm -fr build/testbed && tsc -p tsconfig/tsconfig.testbed.json && shx mkdir -p build/.targets && shx touch build/.targets/build-testbed.succeeded", | ||
"rebuild:lab": "shx rm -fr build/lab && tsc -p tsconfig/tsconfig.lab.json && shx mkdir -p build/.targets && shx touch build/.targets/build-lab.succeeded", | ||
"rebuild:types": "shx rm -fr build/types && tsc -p tsconfig/tsconfig.types.json && shx mkdir -p build/.targets && shx touch build/.targets/build-types.succeeded", | ||
@@ -123,3 +127,3 @@ "# retest # clean and (re-)test project": "", | ||
"# test:code # test package code": "", | ||
"test:code": "run-s --silent +:max-node-8 && ava || ( run-s --silent +:min-node-10 && nyc --silent ava )", | ||
"test:code": "run-s --silent +:max-node-8 && cross-env-shell ava $npm_config_ava || ( run-s --silent +:min-node-10 && cross-env-shell nyc --silent ava $npm_config_ava )", | ||
"# test:types # test for type declaration errors (using `tsd`)": "", | ||
@@ -132,3 +136,5 @@ "test:types": "run-s --silent +:max-node-8 && shx echo \"[test:types] WARN Type testing skipped [for NodeJS < v10]\" 1>&2 || tsd", | ||
"# update:dist # update distribution content": "", | ||
"update:dist": "run-s --silent build && exec-if-updated --source \"build/**\" --target \"dist/**\" --target dist/.targets/update-dist.succeeded \"run-s --silent _:update:dist:rebuild\"", | ||
"update:dist": "run-s --silent build && exec-if-updated --source \"build/**\" --target \"dist/**\" --target build/.targets/update-dist.succeeded \"run-s --silent _:update:dist:rebuild\"", | ||
"# verify # fully (and verbosely) test package": "", | ||
"verify": "cross-env npm_config_test_dist=true npm_config_ava=--verbose run-s test", | ||
"## +:... == sub-scripts (may run 'visibly', but not user-facing)": "", | ||
@@ -141,5 +147,5 @@ "+:coverage": "run-s build test:code && is-ci && run-s cov:send || run-s cov:view", | ||
"_:help": "< package.json node -e \"s = {p:'',e:'npm'}; if (new String(process.env.npm_execpath).match(/yarn.js$/)) { s = {p:'\\n',e:'yarn'}; }; console.log('%susage: \\`%s run TARGET\\` or \\`npx run-s TARGET [TARGET..]\\`\\n\\nTARGETs:\\n', s.p, s.e); re = /^.*?\\x22(?:\\W+\\s*)([^#\\x22]+)\\s+#+\\s+([^#\\x22]+?)(\\s+#+)?\\x22.*$/; require('readline').createInterface({ input: process.stdin, output: process.stdout, terminal: false }).on('line', function(line){ if (match = re.exec(line)) { console.log('%s %s', match[1].padEnd(19), match[2]); } });\"", | ||
"_:lint:commits.all:spell": "node -e \"result=require('child_process').spawnSync('git log --color=never | cspell stdin --no-summary --config \".vscode/cspell.json\"',{shell:true,encoding:'utf-8'}); if (result.status != 0) {console.error('[cspell] ERR! Unknown words in commit(s)\\n'+result.stdout); process.exit(1);} else {console.log(result.stdout);};\"", | ||
"_:lint:commits.all:spell": "node -e \"result=require('child_process').spawnSync('git log --color=never | cspell stdin --no-summary --config \".vscode/cspell.json\"',{shell:true,encoding:'utf-8'}); if (result.status != 0) {console.error('[cspell] ERR! Unknown words in commit(s)\\n'+result.stdout+'\\n'+result.stderr); process.exit(1);} else {console.log(result.stdout);};\"", | ||
"_:lint:commits.new:commitlint": "node -e \"v=require('./package.json').version; result=require('child_process').spawnSync('commitlint --config .commitlint.config.js --from v'+v,{shell:true,encoding:'utf-8'}); if (result.status != 0) {console.error('[commitlint] ERR! Flawed commit(s) found\\n'+result.stdout+'\\n'+result.stderr); process.exit(1);} else {console.log(result.stdout);};\"", | ||
"_:lint:commits.new:spell": "node -e \"v=require('./package.json').version; result=require('child_process').spawnSync('git log v'+v+'.. --color=never | cspell stdin --no-summary --config \".vscode/cspell.json\"',{shell:true,encoding:'utf-8'}); if (result.status != 0) {console.error('[cspell] ERR! Unknown words in commit(s)\\n'+result.stdout); process.exit(1);} else {console.log(result.stdout);};\"", | ||
"_:lint:commits.new:spell": "node -e \"v=require('./package.json').version; result=require('child_process').spawnSync('git log v'+v+'.. --color=never | cspell stdin --no-summary --config \".vscode/cspell.json\"',{shell:true,encoding:'utf-8'}); if (result.status != 0) {console.error('[cspell] ERR! Unknown words in commit(s)\\n'+result.stdout+'\\n'+result.stderr); process.exit(1);} else {console.log(result.stdout);};\"", | ||
"_:show:deps:dev": "npm --silent ls --only development || shx true", | ||
@@ -156,11 +162,11 @@ "_:show:deps:prod": "npm --silent ls --only production || shx true", | ||
"_:update:dist.normalizeEOL": "eolConverter lf dist/**/*.{cjs,js,mjs,ts,json}", | ||
"_:update:dist.pack": "node -e \"delete process.env.NPM_CONFIG_DRY_RUN; name=require('./package.json').name; result=require('child_process').spawnSync('npm pack && shx mkdir -p dist && shx mv '+name+'-*.tgz dist/'+name+'.tgz',{shell:true,encoding:'utf-8'}); if (result.status != 0) {console.error('[update] ERR! Unable to package (into *.tgz) for distribution\\n'+result.stderr); process.exit(1);} else {console.log(result.stdout);};\"", | ||
"_:update:dist.types": "shx mkdir -p dist && shx rm -fr dist/types && rollup --config .rollup.config.types.js && shx mkdir -p dist/cjs && shx cp dist/types/*.cjs.d.ts dist/cjs", | ||
"_:update:dist:rebuild": "shx rm -fr dist && run-s --silent _:update:dist.build _:update:dist.types _:update:dist.normalizeEOL _:update:dist.pack && shx mkdir -p dist/.targets && shx touch dist/.targets/update-dist.succeeded", | ||
"_:update:dist.pack": "node -e \"delete process.env.npm_config_dry_run; name=require('./package.json').name; result=require('child_process').spawnSync('npm pack && shx mkdir -p dist && shx mv '+name+'-*.tgz dist/'+name+'.tgz',{shell:true,encoding:'utf-8'}); if (result.status != 0) {console.error('[update] ERR! Unable to package (into *.tgz) for distribution\\n'+result.stdout+'\\n'+result.stderr); process.exit(1);} else {console.log(result.stdout);};\"", | ||
"_:update:dist.types": "shx mkdir -p dist && shx rm -fr dist/types && rollup --config .rollup.config.types.js && replace-in-file \"export { _default as default }\" \"export = _default\" dist/types/mod.cjs.d.ts --quiet && shx mkdir -p dist/cjs && shx cp dist/types/*.cjs.d.ts dist/cjs", | ||
"_:update:dist:rebuild": "shx rm -fr dist && run-s --silent _:update:dist.build _:update:dist.types _:update:dist.normalizeEOL _:update:dist.pack && shx mkdir -p dist/.targets && shx touch build/.targets/update-dist.succeeded", | ||
"_:version:spell:changelog_update": "run-s --silent _:exists:git-changelog && git changelog -u | cspell stdin --config \".vscode/cspell.json\" || shx echo \"[lint] WARN CHANGELOG update `cspell` exception\" 1>&2", | ||
"_:version:update:changelog": "run-s --silent _:exists:git-changelog && node -e \"v=require('./package.json').version; result=require('child_process').spawnSync('git changelog --next-tag-now --next-tag v'+v,{shell:true,encoding:'utf-8'}); if (result.status != 0) {console.error('ERR! '+result.stderr); process.exit(1);} else {require('fs').writeFileSync('CHANGELOG.mkd',result.stdout);};\" || shx echo \"[version] WARN CHANGELOG not updated\" 1>&2", | ||
"## npm lifecycle scripts ##": "", | ||
"prepublishOnly": "npm run clean && npm run test --test-dist && run-s --silent update _:vcs-strictly-clean-err", | ||
"prepublishOnly": "npm run clean && cross-env npm_config_test_dist=true npm run test && run-s --silent update _:vcs-strictly-clean-err", | ||
"## npm-version scripts ##": "", | ||
"preversion": "run-s --silent _:version:spell:changelog_update && npm run test --test-dist", | ||
"preversion": "run-s --silent _:version:spell:changelog_update && cross-env npm_config_test_dist=true npm run test", | ||
"version": "run-s --silent _:version:update:changelog && run-s lint:spell && run-s --silent update:dist && git add CHANGELOG.mkd dist" | ||
@@ -175,3 +181,2 @@ }, | ||
"@istanbuljs/nyc-config-typescript": "^1.0.1", | ||
"@rollup/plugin-replace": "^2.3.4", | ||
"@types/node": "^14.14.20", | ||
@@ -183,3 +188,3 @@ "@typescript-eslint/eslint-plugin": "^4.12.0", | ||
"command-exists": "^1.2.9", | ||
"coveralls": "^3.0.5", | ||
"cross-env": "^7.0.3", | ||
"cross-spawn": "^7.0.3", | ||
@@ -196,3 +201,3 @@ "cspell": "^4.2.7", | ||
"eslint-plugin-security-node": "^1.0.14", | ||
"exec-if-updated": "git://github.com/rivy/js-cli.exec-if-updated.git#v2.0.0", | ||
"exec-if-updated": "https://cdn.jsdelivr.net/gh/rivy/js-cli.exec-if-updated@2.2.0/dist/pkg/exec-if-updated.tgz", | ||
"is-ci": "^2.0.0", | ||
@@ -202,5 +207,5 @@ "is-node-modern": "^1.0.0", | ||
"nyc": "^15.1.0", | ||
"open-cli": "^6.0.1", | ||
"open-cli": ">=6.0 <7.0", | ||
"prettier": "^2.1.1", | ||
"remark-cli": "^9.0.0", | ||
"remark-cli": "=9.0.0", | ||
"remark-footnotes": "^3.0.0", | ||
@@ -211,2 +216,3 @@ "remark-preset-lint-consistent": "^4.0.0", | ||
"remark-retext": "^4.0.0", | ||
"replace-in-file": "=6.3.0", | ||
"retext-english": "^3.0.4", | ||
@@ -225,6 +231,9 @@ "retext-passive": "^3.0.0", | ||
"typedoc": "^0.20.27", | ||
"typescript": "^4.1.3", | ||
"typescript": "~4.2.0", | ||
"unified": "^9.2.0" | ||
}, | ||
"optionalDependencies": {}, | ||
"optionalDependencies:#": "* 'fsevents' included to avoid `npm ci` errors with early npm versions; ref: <https://github.com/bahmutov/npm-install/issues/103>", | ||
"optionalDependencies": { | ||
"fsevents": "*" | ||
}, | ||
"ava": { | ||
@@ -237,3 +246,3 @@ "files": [ | ||
"rewritePaths": { | ||
"src/": "build/testbed/src/" | ||
"src/": "build/lab/src/" | ||
} | ||
@@ -245,2 +254,5 @@ } | ||
"exclude": [ | ||
"build/cjs/**", | ||
"build/esm/**", | ||
"build/umd/**", | ||
"eg/**", | ||
@@ -247,0 +259,0 @@ "test/**", |
130
README.md
@@ -1,2 +0,6 @@ | ||
<!DOCTYPE markdown><!-- markdownlint-disable no-inline-html --> | ||
<!-- dprint-ignore-file --> | ||
<!-- deno-fmt-ignore-start --> | ||
<!-- @prettier --> | ||
<!DOCTYPE markdown><!-- markdownlint-disable first-line-heading no-inline-html --> | ||
<meta charset="utf-8" content="text/markdown" lang="en"> | ||
@@ -7,5 +11,5 @@ <!-- -## editors ## (emacs/sublime) -*- coding: utf8-nix; tab-width: 4; mode: markdown; indent-tabs-mode: nil; basic-offset: 2; st-word_wrap: 'true' -*- ## (jEdit) :tabSize=4:indentSize=4:mode=markdown: ## (notepad++) vim:tabstop=4:syntax=markdown:expandtab:smarttab:softtabstop=2 ## modeline (see <https://archive.is/djTUD>@@<http://webcitation.org/66W3EhCAP> ) --> | ||
<!-- markdownlint-disable heading-increment no-duplicate-heading --> | ||
<!-- spell-checker:ignore (abbrev/names) CICD CJS Codacy Deno ESM ESMs JSDelivr npmJS --> | ||
<!-- spell-checker:ignore (abbrev/names) CICD CJS Codacy Deno Dprint ESM ESMs JSDelivr npmJS --> | ||
<!-- spell-checker:ignore (targets) realclean --> | ||
<!-- spell-checker:ignore (people) rivy --> | ||
<!-- spell-checker:ignore (people) Roy Ivy III * rivy --> | ||
@@ -35,3 +39,3 @@ # [os-paths](https://github.com/rivy/js.os-paths) | ||
# or... `npm install "git:github.com/rivy/js.os-paths"` | ||
# or... `npm install "git:github.com/rivy/js.os-paths#v6.3.0"` | ||
# or... `npm install "git:github.com/rivy/js.os-paths#v7.0.0"` | ||
# or... `npm install "https://cdn.jsdelivr.net/gh/rivy/js.os-paths/dist/os-paths.tgz"` | ||
@@ -63,6 +67,6 @@ ``` | ||
//or... | ||
//import osPaths from 'https://deno.land/x/os_paths@v6.3.0/src/mod.deno.ts'; | ||
//import osPaths from 'https://deno.land/x/os_paths@v7.0.0/src/mod.deno.ts'; | ||
//or (via CDN, with optional version/version-range/latest/commit support)... | ||
//import osPaths from 'https://cdn.jsdelivr.net/gh/rivy/js.os-paths@6.3.0/src/mod.deno.ts'; // v6.3.0 | ||
//import osPaths from 'https://cdn.jsdelivr.net/gh/rivy/js.os-paths@6/src/mod.deno.ts'; // v6.x.y | ||
//import osPaths from 'https://cdn.jsdelivr.net/gh/rivy/js.os-paths@7.0.0/src/mod.deno.ts'; // v7.0.0 | ||
//import osPaths from 'https://cdn.jsdelivr.net/gh/rivy/js.os-paths@7/src/mod.deno.ts'; // v7.x.y | ||
//import osPaths from 'https://cdn.jsdelivr.net/gh/rivy/js.os-paths/src/mod.deno.ts'; // latest | ||
@@ -75,8 +79,2 @@ //import osPaths from 'https://cdn.jsdelivr.net/gh/rivy/js.os-paths@latest/src/mod.deno.ts'; // latest | ||
##### Required Deno permissions | ||
###### `--allow-env` · _allow access to the process environment variables_ | ||
This module/package requires access to various environment variable to determine platform configuration (eg, location of temp and user directories). | ||
## API | ||
@@ -101,3 +99,3 @@ | ||
The returned path strings are _not_ guaranteed to already exist on the file system. So, the user is responsible for directory construction, if/when needed. However, since all of these are _standard_ OS directories, they should all exist without the need for user intervention. | ||
The returned path strings are _not_ guaranteed to already exist on the file system. So, the user application is responsible for directory construction, if/when needed. However, since all of these are _standard_ OS directories, they should all exist without the need for user intervention. | ||
@@ -156,3 +154,3 @@ If/when necessary, [`make-dir`](https://www.npmjs.com/package/make-dir) or [`mkdirp`](https://www.npmjs.com/package/mkdirp) can be used to create the directories. | ||
- <small><span title="ESM support added in v6.0">Requires `v6.0`+.</span></small> | ||
- <small><span title="ESM support added in v6.0">Requires `OSPaths` `v6.0`+.</span></small> | ||
@@ -169,3 +167,3 @@ `OSPaths` fully supports ESM imports. | ||
- <small><span title="TypeScript support added in v5.0">Requires `v5.0`+.</span></small> | ||
- <small><span title="TypeScript support added in v5.0">Requires `OSPaths` `v5.0`+.</span></small> | ||
@@ -177,4 +175,19 @@ As of `v5.0`+, `OSPaths` has been converted to a TypeScript-based module. | ||
- <small><span title="Deno support added in v6.0">Requires `v6.0`+.</span></small> | ||
> #### Requirements | ||
> | ||
> Deno >= v1.8.0[^deno-version-req] | ||
<!--{blockquote: .--info style="font-size:75%;"}--> | ||
[^deno-version-req]: The `Deno.permissions` API (stabilized in Deno v1.8.0) is required to avoid needless panics or prompts by Deno during static imports of this module/package. Note: Deno v1.3.0+ may be used if the run flag `--unstable` is also used. | ||
> #### Required Permissions | ||
> | ||
> - `--allow-env` · _allow access to the process environment variables_<br> | ||
> This module/package requires access to various environment variables to determine platform configuration (eg, location of temp and user directories). | ||
<!--{blockquote: .--info style="font-size:75%;"}--> | ||
- <small><span title="Deno support added in v6.0">Requires `OSPaths` `v6.0`+.</span></small> | ||
`OSPaths` also fully supports use by Deno. | ||
@@ -204,2 +217,3 @@ | ||
- a JavaScript package/project manager ([`npm`](https://www.npmjs.com/get-npm) or [`yarn`](https://yarnpkg.com)) | ||
- [`git`](https://git-scm.com) | ||
@@ -209,4 +223,5 @@ > #### optional | ||
> - [`git-changelog`](https://github.com/rivy-go/git-changelog) (v1.1+) ... enables changelog automation | ||
> - [`perl`](https://www.perl.org) ... enables automated version updates to **`package.json`** during packaging | ||
### Build/test | ||
### Quick build/test | ||
@@ -217,5 +232,21 @@ ```shell | ||
### Project development scripts | ||
### Contributions/development | ||
#### _Reproducible_ setup (for CI or local development) | ||
```shell | ||
git clone "https://github.com/rivy/js.os-paths" | ||
cd js.os-paths | ||
# * note: for WinOS, replace `cp` with `copy` | ||
# npm | ||
cp .deps-lock/package-lock.json . | ||
npm clean-install | ||
# yarn | ||
cp .deps-lock/yarn.lock . | ||
yarn --immutable --immutable-cache --check-cache | ||
``` | ||
#### Project development scripts | ||
```shell | ||
> npm run help | ||
@@ -241,4 +272,6 @@ ... | ||
lint:style check for format imperfections (using `prettier`) | ||
prerelease clean, rebuild, and fully test (useful prior to publish/release) | ||
realclean remove all generated files | ||
rebuild clean and (re-)build project | ||
rebuild:all clean and fully reconstruct project distribution | ||
retest clean and (re-)test project | ||
@@ -253,4 +286,63 @@ reset:hard remove *all* generated files and reinstall dependencies | ||
update:dist update distribution content | ||
verify fully (and verbosely) test package | ||
``` | ||
#### Packaging & Publishing | ||
##### Package | ||
```shell | ||
#=== * POSIX | ||
# next VERSION in M.m.r (semver) format | ||
VERSION=... | ||
# update to VERSION in package.json | ||
perl -i -E 'use open IO => q/:raw:utf8/} while(<>) { s/^(\s*\x22version\x22\s*:\s*)\x22(?:\d+(?:[.]\d+)*)?\x22/$1\x22$ENV{VERSION}\x22/ims; print }' package.json | ||
git-changelog --next-tag "v${VERSION}" > CHANGELOG.mkd | ||
# create/commit updates and distribution | ||
npm run retest # optional; note: `[lint] WARN Missing commit tag ...` is ok at this point | ||
git add package.json CHANGELOG.mkd | ||
git commit -m "${VERSION}" | ||
npm run clean && npm run update:dist | ||
git add dist | ||
git commit --amend --no-edit | ||
# tag VERSION commit | ||
git tag -f "v${VERSION}" | ||
# (optional) save dependency locks | ||
mkdir .deps-lock 2> /dev/null | ||
cp package-lock.json yarn.lock .deps-lock/ | ||
#=== * WinOS | ||
@rem ::# next VERSION in M.m.r (semver) format | ||
set VERSION=... | ||
@rem ::# update to VERSION in package.json | ||
perl -i -E "use open IO => q/:raw:utf8/; while(<>) { s/^(\s*\x22version\x22\s*:\s*)\x22(?:\d+(?:[.]\d+)*)?\x22/$1\x22$ENV{VERSION}\x22/ims; print }" package.json | ||
git-changelog --next-tag "v%VERSION%" > CHANGELOG.mkd | ||
@rem ::# create/commit updates and distribution | ||
npm run retest &@rem ::# optional; note: `[lint] WARN Missing commit tag ...` is ok at this point | ||
git add package.json CHANGELOG.mkd | ||
git commit -m "%VERSION%" | ||
npm run clean && npm run update:dist | ||
git add dist | ||
git commit --amend --no-edit | ||
@rem ::# tag VERSION commit | ||
git tag -f "v%VERSION%" | ||
@rem ::# (optional) save dependency locks | ||
mkdir .deps-lock 2>NUL | ||
copy package-lock.json .deps-lock/ | ||
copy yarn.lock .deps-lock/ | ||
``` | ||
##### Publish | ||
```shell | ||
# publish | ||
# * optional (will be done in 'prePublishOnly' by `npm publish`) | ||
npm run clean && npm run test && npm run dist && git-changelog > CHANGELOG.mkd | ||
npm run _:v_tag:exists || echo "[lint] ERROR Missing version matching commit tag" # expect no output and exit code == 0 | ||
git diff-index --quiet HEAD || echo "[lint] ERROR uncommitted changes" # expect no output and exit code == 0 | ||
# * | ||
npm publish # `npm publish --dry-run` will perform all prepublication actions and stop just before the actual publish push | ||
# * if no ERRORs * | ||
git push origin --tags | ||
``` | ||
### Contributions | ||
@@ -257,0 +349,0 @@ |
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
117856
415
1
163