diff --git a/config/scripts.yaml b/config/scripts.yaml index 5edd4d7e603..c29fb1c0c6f 100644 --- a/config/scripts.yaml +++ b/config/scripts.yaml @@ -13,7 +13,7 @@ _types: design: prettier: "npx prettier --write 'src/*.mjs' 'tests/*.mjs'" test: &test 'npx mocha tests/*.test.mjs' - testci: &testci 'npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js' + testci: &testci 'NODE_OPTIONS="--conditions=internal" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js' plugin: prettier: "npx prettier --write 'src/*.mjs' 'tests/*.mjs'" test: *test @@ -28,11 +28,11 @@ core: models: test: 'npx mocha tests/*.test.mjs' new-design: - i18n-only: 'SITE="new-design/shared" node ../../sites/shared/prebuild/i18n-only.mjs' + i18n-only: 'SITE="new-design/shared" node --conditions=internal ../../sites/shared/prebuild/i18n-only.mjs' wbuild: '!' lint: "npx eslint 'lib/*.mjs'" mbuild: '!' - prebuild: 'node ./prebuild.mjs' + prebuild: 'node --conditions=internal ./prebuild.mjs' test: '!' testci: '!' vbuild: '!' @@ -69,10 +69,9 @@ dev: clean: &nextClean 'rimraf prebuild/* && rimraf public/locales/*/* && rimraf public/feeds/* && rimraf ../shared/prebuild/data/*' dev: &nextDev 'next dev -p 8000' develop: *nextDev - i18n: "SITE=dev node ../shared/prebuild/i18n-only.mjs" + i18n: "SITE=dev node --conditions=internal ../shared/prebuild/i18n-only.mjs" lint: &nextLint 'next lint' - prebuild: 'cd ../../ && yarn sitebuildconfigure && cd - && node --experimental-json-modules ./prebuild.mjs' - predev: 'node --experimental-json-modules ./prebuild.mjs' + prebuild: &nextPrebuild 'node --conditions=internal --experimental-json-modules ./prebuild.mjs' serve: "pm2 start npm --name 'dev' -- run start" start: &nextStart 'yarn prebuild && yarn dev' @@ -85,11 +84,10 @@ lab: cibuild: 'yarn build' dev: *nextDev develop: *nextDev - i18n: 'SITE=lab node ../shared/prebuild/i18n-only.mjs' + i18n: 'SITE=lab node --conditions=internal ../shared/prebuild/i18n-only.mjs' e2e: &e2e 'yarn playwright test' lint: *nextLint - prebuild: 'cd ../../ && yarn sitebuildconfigure && cd - && node --experimental-json-modules ./prebuild.mjs' - predev: 'node --experimental-json-modules ./prebuild.mjs' + prebuild: *nextPrebuild start: *nextStart org: @@ -98,10 +96,9 @@ org: clean: *nextClean dev: *nextDev develop: *nextDev - i18n: 'SITE=org node ../shared/prebuild/i18n-only.mjs' + i18n: 'SITE=org node --conditions=internal ../shared/prebuild/i18n-only.mjs' lint: *nextLint - prebuild: 'cd ../../ && yarn sitebuildconfigure && cd - && node --experimental-json-modules ./prebuild.mjs' - predev: 'node --experimental-json-modules ./prebuild.mjs' + prebuild: *nextPrebuild start: *nextStart sanity: diff --git a/config/templates/package.dflt.json b/config/templates/package.dflt.json index 1d535c8d852..80d0581c3f9 100644 --- a/config/templates/package.dflt.json +++ b/config/templates/package.dflt.json @@ -14,7 +14,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "cibuild_step1": "node build.mjs", diff --git a/designs/aaron/package.json b/designs/aaron/package.json index 81ea34d3b5f..ac5d1f31d81 100644 --- a/designs/aaron/package.json +++ b/designs/aaron/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/albert/package.json b/designs/albert/package.json index e07f89b4767..69901a4afe0 100644 --- a/designs/albert/package.json +++ b/designs/albert/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/bee/package.json b/designs/bee/package.json index f270168ddfe..cf30a45d3f5 100644 --- a/designs/bee/package.json +++ b/designs/bee/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/bella/package.json b/designs/bella/package.json index 353204a4e5d..bc7e1698bc9 100644 --- a/designs/bella/package.json +++ b/designs/bella/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/benjamin/package.json b/designs/benjamin/package.json index 681030a755a..ea71cdf5f08 100644 --- a/designs/benjamin/package.json +++ b/designs/benjamin/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/bent/package.json b/designs/bent/package.json index ea5899f17fd..67c5df6b630 100644 --- a/designs/bent/package.json +++ b/designs/bent/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/bob/package.json b/designs/bob/package.json index d848eb40dca..27ba487c22c 100644 --- a/designs/bob/package.json +++ b/designs/bob/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/breanna/package.json b/designs/breanna/package.json index 4096f8934d6..c55f5c0a481 100644 --- a/designs/breanna/package.json +++ b/designs/breanna/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/brian/package.json b/designs/brian/package.json index de02cff8144..f58dba85e48 100644 --- a/designs/brian/package.json +++ b/designs/brian/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/bruce/package.json b/designs/bruce/package.json index 67eddd8936b..f58b8dac457 100644 --- a/designs/bruce/package.json +++ b/designs/bruce/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/carlita/package.json b/designs/carlita/package.json index 14697136405..e9b20224dc3 100644 --- a/designs/carlita/package.json +++ b/designs/carlita/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/carlton/package.json b/designs/carlton/package.json index c58d9fe789d..d4026668564 100644 --- a/designs/carlton/package.json +++ b/designs/carlton/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/cathrin/package.json b/designs/cathrin/package.json index 222a02310ec..b15f3cddcfd 100644 --- a/designs/cathrin/package.json +++ b/designs/cathrin/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/charlie/package.json b/designs/charlie/package.json index 251c995d5e4..cdfcb730261 100644 --- a/designs/charlie/package.json +++ b/designs/charlie/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/cornelius/package.json b/designs/cornelius/package.json index 392ef9675ac..7cfb638f568 100644 --- a/designs/cornelius/package.json +++ b/designs/cornelius/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/diana/package.json b/designs/diana/package.json index f328b16aca0..0ae76c6d215 100644 --- a/designs/diana/package.json +++ b/designs/diana/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/examples/package.json b/designs/examples/package.json index 766d809e5e4..6404acb72da 100644 --- a/designs/examples/package.json +++ b/designs/examples/package.json @@ -22,7 +22,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -36,7 +39,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/florence/package.json b/designs/florence/package.json index 62e4b4471a0..932444abcb8 100644 --- a/designs/florence/package.json +++ b/designs/florence/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/florent/package.json b/designs/florent/package.json index be1820a972a..64cc6eb22d8 100644 --- a/designs/florent/package.json +++ b/designs/florent/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/hi/package.json b/designs/hi/package.json index f5bfa64980e..e1f042e618e 100644 --- a/designs/hi/package.json +++ b/designs/hi/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/holmes/package.json b/designs/holmes/package.json index 068fbcf5a21..30a0d08180a 100644 --- a/designs/holmes/package.json +++ b/designs/holmes/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/hortensia/package.json b/designs/hortensia/package.json index 08ece812f38..efae18bf664 100644 --- a/designs/hortensia/package.json +++ b/designs/hortensia/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/huey/package.json b/designs/huey/package.json index 7cf8efc2538..a55413fe248 100644 --- a/designs/huey/package.json +++ b/designs/huey/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/hugo/package.json b/designs/hugo/package.json index 518757872fa..0788782097b 100644 --- a/designs/hugo/package.json +++ b/designs/hugo/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/jaeger/package.json b/designs/jaeger/package.json index 71ce674c944..0d85d1465f8 100644 --- a/designs/jaeger/package.json +++ b/designs/jaeger/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/legend/package.json b/designs/legend/package.json index caea0603827..ec44ab52feb 100644 --- a/designs/legend/package.json +++ b/designs/legend/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/lucy/package.json b/designs/lucy/package.json index 430a3af6af8..9426672c94a 100644 --- a/designs/lucy/package.json +++ b/designs/lucy/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/lunetius/package.json b/designs/lunetius/package.json index 09421fdedf2..4c194e0b321 100644 --- a/designs/lunetius/package.json +++ b/designs/lunetius/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/magde/package.json b/designs/magde/package.json index 12e16016c04..be14dc14d46 100644 --- a/designs/magde/package.json +++ b/designs/magde/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/noble/package.json b/designs/noble/package.json index bd53702dc77..15d3012e589 100644 --- a/designs/noble/package.json +++ b/designs/noble/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/octoplushy/package.json b/designs/octoplushy/package.json index 8cd74e444b6..c1ac7679d8d 100644 --- a/designs/octoplushy/package.json +++ b/designs/octoplushy/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/paco/package.json b/designs/paco/package.json index aa638486573..13754bec37f 100644 --- a/designs/paco/package.json +++ b/designs/paco/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/penelope/package.json b/designs/penelope/package.json index 9ea6a41c0c1..dd7c48922f6 100644 --- a/designs/penelope/package.json +++ b/designs/penelope/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/plugintest/package.json b/designs/plugintest/package.json index c9dbac60e8a..16da3875771 100644 --- a/designs/plugintest/package.json +++ b/designs/plugintest/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/rendertest/package.json b/designs/rendertest/package.json index 487b51f4ead..58e9edc81ed 100644 --- a/designs/rendertest/package.json +++ b/designs/rendertest/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/sandy/package.json b/designs/sandy/package.json index c441dcf892b..e231c7988bf 100644 --- a/designs/sandy/package.json +++ b/designs/sandy/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/shin/package.json b/designs/shin/package.json index 396c4b3db1a..f5b2b006a46 100644 --- a/designs/shin/package.json +++ b/designs/shin/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/simon/package.json b/designs/simon/package.json index a9004c157d5..cdc76aad454 100644 --- a/designs/simon/package.json +++ b/designs/simon/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/simone/package.json b/designs/simone/package.json index afea33933a9..d90691a155b 100644 --- a/designs/simone/package.json +++ b/designs/simone/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/sven/package.json b/designs/sven/package.json index 657dbee93f9..06869824b5d 100644 --- a/designs/sven/package.json +++ b/designs/sven/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/tamiko/package.json b/designs/tamiko/package.json index bf425bb9ede..26ee80a89bf 100644 --- a/designs/tamiko/package.json +++ b/designs/tamiko/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/teagan/package.json b/designs/teagan/package.json index e5486fb29f3..24adbcebe79 100644 --- a/designs/teagan/package.json +++ b/designs/teagan/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/tiberius/package.json b/designs/tiberius/package.json index 0c6221b6567..9af09c435a6 100644 --- a/designs/tiberius/package.json +++ b/designs/tiberius/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/titan/package.json b/designs/titan/package.json index 5ca56d07f76..3aea6b76bb6 100644 --- a/designs/titan/package.json +++ b/designs/titan/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/trayvon/package.json b/designs/trayvon/package.json index 9d511f6b20e..84255d6518f 100644 --- a/designs/trayvon/package.json +++ b/designs/trayvon/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/tutorial/package.json b/designs/tutorial/package.json index f053016bd7a..3200ecb7c82 100644 --- a/designs/tutorial/package.json +++ b/designs/tutorial/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/unice/package.json b/designs/unice/package.json index cd68329b8fb..6dc549e47b0 100644 --- a/designs/unice/package.json +++ b/designs/unice/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/ursula/package.json b/designs/ursula/package.json index cfd7a743554..6bcd3658055 100644 --- a/designs/ursula/package.json +++ b/designs/ursula/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/wahid/package.json b/designs/wahid/package.json index e09b7691031..48b466fa298 100644 --- a/designs/wahid/package.json +++ b/designs/wahid/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/walburga/package.json b/designs/walburga/package.json index af28bce8db5..376a482b6d1 100644 --- a/designs/walburga/package.json +++ b/designs/walburga/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/waralee/package.json b/designs/waralee/package.json index d17e97c11f8..e0f9260efc5 100644 --- a/designs/waralee/package.json +++ b/designs/waralee/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/designs/yuri/package.json b/designs/yuri/package.json index 491dca12b8c..5842caa179b 100644 --- a/designs/yuri/package.json +++ b/designs/yuri/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/nx.json b/nx.json index cbddad0d3c6..3c0327da12c 100644 --- a/nx.json +++ b/nx.json @@ -15,12 +15,6 @@ "wbuild": { "dependsOn": ["^wbuild", "prewbuild"] }, - "testci": { - "dependsOn": ["^build"] - }, - "lint": { - "dependsOn": [] - }, "e2e": { "dependsOn": ["prebuild"] } diff --git a/packages/core/package.json b/packages/core/package.json index aea10d07888..04d43a827d5 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -28,7 +28,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", diff --git a/packages/models/package.json b/packages/models/package.json index 242a79b8de3..66debb6e9fd 100644 --- a/packages/models/package.json +++ b/packages/models/package.json @@ -24,7 +24,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", diff --git a/packages/new-design/i18n/de.json b/packages/new-design/i18n/de.json index b3cc426ecd0..8f5bf95e34d 100644 --- a/packages/new-design/i18n/de.json +++ b/packages/new-design/i18n/de.json @@ -2,26 +2,26 @@ "author": "Autor", "githubRepo": "GitHub-Repository", "packageManager": "Paket-Manager", - "patternName": "Schnittmuster-Name", - "patternType": "Schnittmuster-Art", - "patternCreated": "Dein Schnittmusterskelett wurde erstellt in", + "designName": "Design name", + "designType": "Design type", + "designCreated": "Your design skeleton has been created at", "runTheseCommands": "Um loszulegen, führe diesen Befehl aus", "startRollup": "In einem Terminal startest du den Rollup-Bundler im Beobachtungsmodus", "startWebpack": "Dadurch wird der 'example'-Ordner betreten und die Entwicklungsumgebung gestartet.", "devDocsAvailableAt": "Entwicklerdokumentation ist verfügbar auf", "talkToUs": "Für Fragen, Feedback oder Anregungen trete unserem Discord-Server bei", - "draftYourPattern": "Zeichne dein Schnittmuster", - "testYourPattern": "Teste dein Schnittmuster", + "draftYourDesign": "Draft your design", + "testYourDesign": "Test your design", "draftThing": "{thing} erstellen", "testThing": "{thing} testen", - "renderInBrowser": "Klicke unten, um dein Schnittmuster im Browser zu rendern.", + "renderInBrowser": "Click below to render your design in the browser.", "weWillReRender": "Wenn du Änderungen vornimmst, werden wir es erneut für dich rendern.", "youCan": "Du kannst", "enterMeasurements": "Maße von Hand eingeben", "preloadMeasurements": "Einen bestehenden Satz an Maßen einlesen", "size": "Größe", - "noRequiredMeasurements": "Dieses Schnittmuster hat keine benötigten Maße", - "howtoAddMeasurements": "Um Maße als Anforderung zu definieren, füge sie der Sektion measurements in der Konfigurationsdatei des Schnittmusters hinzu.", + "noRequiredMeasurements": "This design has no required measurements", + "howtoAddMeasurements": "To require measurements, add them to the measurements section of the design's configuration file.", "seeDocsAt": "Dokumentation zu diesem Thema ist verfügbar unter", "clearDesignMode": "Designmodus leeren", "designMode": "Designmodus", @@ -30,5 +30,5 @@ "thingIsDisabled": "{thing} ist deaktiviert", "turnOn": "Aktivieren", "turnOff": "Deaktivieren", - "validNameWarning": "Bitte wähle einen anderen Namen, da dieser Name Probleme verursachen würde.\nWir (wieder-)verwenden den Namen des Schnittmusters als NPM-Paketname.\nPaketnamen müssen in Kleinbuchstaben geschrieben sein und dürfen keine Sonderzeichen enthalten.\nBitte benenne dein Muster also entsprechend, wie in etwa:" + "validNameWarning": "Please pick a different name as this name would cause problems.\nWe (re-)use the design name as the NPM package name.\nPackage names must be lowercase and cannot contain special characters.\nSo please name your design accordingly, like:" } diff --git a/packages/new-design/i18n/es.json b/packages/new-design/i18n/es.json index a21baa3bf1f..b6bfd7db39c 100644 --- a/packages/new-design/i18n/es.json +++ b/packages/new-design/i18n/es.json @@ -2,26 +2,26 @@ "author": "Autor", "githubRepo": "Repositorio GitHub", "packageManager": "Gestor de paquetes", - "patternName": "Nombre del patrón", - "patternType": "Tipo de patrón", - "patternCreated": "Tu esqueleto de patrón ha sido creado en", + "designName": "Design name", + "designType": "Design type", + "designCreated": "Your design skeleton has been created at", "runTheseCommands": "Para empezar, ejecuta este comando", "startRollup": "En una terminal, inicia el paquete de rollup en modo reloj", "startWebpack": "Entrará en la carpeta \"ejemplo\" e iniciará el entorno de desarrollo.", "devDocsAvailableAt": "Documentación para desarrolladores está disponible en", "talkToUs": "Para preguntas, comentarios o sugerencias, únete a nuestro servidor de Discord", - "draftYourPattern": "Traza tu patrón", - "testYourPattern": "Prueba tu patrón", + "draftYourDesign": "Draft your design", + "testYourDesign": "Test your design", "draftThing": "Trazar {thing} ", "testThing": "Prueba {thing}", - "renderInBrowser": "Haz clic abajo para mostrar el patrón en el navegador.", + "renderInBrowser": "Click below to render your design in the browser.", "weWillReRender": "Cuando realices cambios, lo volveremos a trazar para ti.", "youCan": "Puedes", "enterMeasurements": "Introducir medidas a mano", "preloadMeasurements": "Precarga un conjunto de medidas", "size": "Tamaño", - "noRequiredMeasurements": "Este patrón no requiere tiene medidas", - "howtoAddMeasurements": "Para requerir mediciones, agrégalas a la sección de mediciones del archivo de configuración del patrón.", + "noRequiredMeasurements": "This design has no required measurements", + "howtoAddMeasurements": "To require measurements, add them to the measurements section of the design's configuration file.", "seeDocsAt": "La documentación sobre este tema está disponible en", "clearDesignMode": "Borrar modo de diseño", "designMode": "Modo de diseño", @@ -30,5 +30,5 @@ "thingIsDisabled": "{thing} está deshabilitado", "turnOn": "Encender", "turnOff": "Apagar", - "validNameWarning": "Por favor, elija un nombre diferente ya que este nombre podría causar problemas.\nNosotros (re)usamos el nombre del patrón como el nombre del paquete NPM.\nLos nombres de los paquetes deben ser minúsculas y no pueden contener caracteres especiales.\nAsí que por favor nombre su patrón en consecuencia, como:" + "validNameWarning": "Please pick a different name as this name would cause problems.\nWe (re-)use the design name as the NPM package name.\nPackage names must be lowercase and cannot contain special characters.\nSo please name your design accordingly, like:" } diff --git a/packages/new-design/i18n/fr.json b/packages/new-design/i18n/fr.json index 308beb87692..1b8d274d2e2 100644 --- a/packages/new-design/i18n/fr.json +++ b/packages/new-design/i18n/fr.json @@ -2,26 +2,26 @@ "author": "Auteur", "githubRepo": "Répertoire GitHub", "packageManager": "Gestionnaire de package", - "patternName": "Nom de patron", - "patternType": "Type de patron", - "patternCreated": "Le squelette de votre patron a été créé sur", + "designName": "Design name", + "designType": "Design type", + "designCreated": "Your design skeleton has been created at", "runTheseCommands": "Pour commencer, exécutez cette commande", "startRollup": "Dans un terminal, démarrez le bundler rollup en mode watch", "startWebpack": "Il entrera dans le dossier 'exemple' et démarrera l'environnement de développement.", "devDocsAvailableAt": "La documentation pour développeur est disponible sur", "talkToUs": "Pour des questions, commentaires ou suggestions, rejoignez notre serveur Discord", - "draftYourPattern": "Dessiner votre patron", - "testYourPattern": "Tester votre patron", + "draftYourDesign": "Draft your design", + "testYourDesign": "Test your design", "draftThing": "Ébauche de {thing}", "testThing": "Tester {thing}", - "renderInBrowser": "Cliquer ci-dessous pour afficher votre patron dans votre navigateur.", + "renderInBrowser": "Click below to render your design in the browser.", "weWillReRender": "Lorsque vous effectuez des modifications, nous mettons à jour le rendu pour vous.", "youCan": "Vous pouvez", "enterMeasurements": "Entrer des mesures manuellement", "preloadMeasurements": "Pré-charger un set de mesures", "size": "Taille", - "noRequiredMeasurements": "Ce patron n'a pas de mesure requise", - "howtoAddMeasurements": "Pour rendre des mesures nécessaires, ajoutez-les à la section measurements du fichier de configuration du patron.", + "noRequiredMeasurements": "This design has no required measurements", + "howtoAddMeasurements": "To require measurements, add them to the measurements section of the design's configuration file.", "seeDocsAt": "La documentation à ce sujet est disponible sur", "clearDesignMode": "Vider le mode design", "designMode": "Mode design", @@ -30,5 +30,5 @@ "thingIsDisabled": "{thing} est désactivé", "turnOn": "Activer", "turnOff": "Désactiver", - "validNameWarning": "Veuillez choisir un nom différent car ce nom causerait des problèmes.\nNous (ré-)utilisons le nom du modèle comme nom de paquet NPM.\nLes noms de paquets doivent être en minuscule et ne peuvent pas contenir de caractères spéciaux.\nVeuillez donc nommer votre patron en conséquence, comme :" + "validNameWarning": "Please pick a different name as this name would cause problems.\nWe (re-)use the design name as the NPM package name.\nPackage names must be lowercase and cannot contain special characters.\nSo please name your design accordingly, like:" } diff --git a/packages/new-design/i18n/nl.json b/packages/new-design/i18n/nl.json index 977634c2c3f..351c9aeb5a8 100644 --- a/packages/new-design/i18n/nl.json +++ b/packages/new-design/i18n/nl.json @@ -2,16 +2,16 @@ "author": "Auteur", "githubRepo": "GitHub repository", "packageManager": "Pakketbeheerder", - "patternName": "Patroon naam", - "patternType": "Patroon type", - "patternCreated": "Het skelet van je patroon is aangemaakt in", + "designName": "Design name", + "designType": "Design type", + "designCreated": "Your design skeleton has been created at", "runTheseCommands": "Voer dit commando uit om aan de slag te gaan", "startRollup": "In één terminal, start de rollup bundler in de volgmodus", "startWebpack": "Het zal de map 'voorbeeld' invoeren en de ontwikkelingsomgeving starten.", "devDocsAvailableAt": "Documentatie voor ontwikkelaars is beschikbaar op", "talkToUs": "Voor vragen, feedback of suggesties, neem deel aan onze Discord server", - "draftYourPattern": "Teken je patroon", - "testYourPattern": "Test je patroon", + "draftYourDesign": "Draft your design", + "testYourDesign": "Test your design", "draftThing": "Teken {thing}", "testThing": "Test {thing}", "renderInBrowser": "Klik hieronder om je patroon in de browser te tonen.", diff --git a/packages/new-design/i18n/uk.json b/packages/new-design/i18n/uk.json index f9fa216d684..c7fdd6f7752 100644 --- a/packages/new-design/i18n/uk.json +++ b/packages/new-design/i18n/uk.json @@ -2,26 +2,26 @@ "author": "Автор", "githubRepo": "Репозиторій GitHub", "packageManager": "Менеджер пакунків", - "patternName": "Назва викрійки", - "patternType": "Тип викрійки", - "patternCreated": "Ваш каркас викрійки створено у", + "designName": "Design name", + "designType": "Design type", + "designCreated": "Your design skeleton has been created at", "runTheseCommands": "Щоб розпочати, запустіть цю команду", "startRollup": "У одному терміналі запустіть ролап у режимі перегляду", "startWebpack": "Це відкриє папку \"приклад\" та запустить девелопмент.", "devDocsAvailableAt": "Документація для розробників доступна за адресою", "talkToUs": "Для запитань, відгуків чи пропозицій, приєднуйтесь до нашого серверу в Discord", - "draftYourPattern": "Створіть Вашу викрійку", - "testYourPattern": "Протестувати Вашу викрійку", + "draftYourDesign": "Draft your design", + "testYourDesign": "Test your design", "draftThing": "Створити {thing}", "testThing": "Протестувати {thing}", - "renderInBrowser": "Натисніть нижче, щоб відобразити Вашу викрійку у браузері.", + "renderInBrowser": "Click below to render your design in the browser.", "weWillReRender": "Коли Ви виконаєте зміни, ми перезавантажимо зображення для Вас.", "youCan": "Ви можете", "enterMeasurements": "Ввести вимірювання вручну", "preloadMeasurements": "Завантажити набір мірок", "size": "Розмір", - "noRequiredMeasurements": "Ця викрійка не потребує замірів", - "howtoAddMeasurements": "Щоб додати бажані мірки, додайте їх у секцію заміри у файлі конфігурації викрійки.", + "noRequiredMeasurements": "This design has no required measurements", + "howtoAddMeasurements": "To require measurements, add them to the measurements section of the design's configuration file.", "seeDocsAt": "Документація по цій темі доступна за адресою", "clearDesignMode": "Очистити режим дизайну", "designMode": "Режим дизайну", @@ -30,5 +30,5 @@ "thingIsDisabled": "{thing} вимкнено", "turnOn": "Увімкнути", "turnOff": "Вимкнути", - "validNameWarning": "Будь ласка, оберіть іншу назву, бо дана назва може призвести до проблем.\nМи (повторно) використовуємо назву викрійки як NPM назву пакету.\nІмена пакунків повинні бути в нижньому регістрі та не можуть містити спеціальних символів.\nБудь ласка, назвіть викрійку згідно правил, наприклад:" + "validNameWarning": "Please pick a different name as this name would cause problems.\nWe (re-)use the design name as the NPM package name.\nPackage names must be lowercase and cannot contain special characters.\nSo please name your design accordingly, like:" } diff --git a/packages/new-design/package.json b/packages/new-design/package.json index 11f5f1870b9..2a9a5eb32c1 100644 --- a/packages/new-design/package.json +++ b/packages/new-design/package.json @@ -26,10 +26,10 @@ "lab": "cd ../../sites/lab && yarn start", "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'lib/*.mjs'", - "i18n-only": "SITE=\"new-design/shared\" node ../../sites/shared/prebuild/i18n-only.mjs", - "prebuild": "node ./prebuild.mjs", + "i18n-only": "SITE=\"new-design/shared\" node --conditions=internal ../../sites/shared/prebuild/i18n-only.mjs", + "prebuild": "node --conditions=internal ./prebuild.mjs", "wbuild": "node build.mjs", - "prewbuild": "node ./prebuild.mjs", + "prewbuild": "node --conditions=internal ./prebuild.mjs", "wbuild:all": "yarn wbuild", "prebuild:all": "yarn prebuild", "prewbuild:all": "yarn prewbuild" diff --git a/packages/react-components/package.json b/packages/react-components/package.json index ea8f18c12ea..6bd4bab2916 100644 --- a/packages/react-components/package.json +++ b/packages/react-components/package.json @@ -20,7 +20,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", diff --git a/packages/rehype-highlight-lines/package.json b/packages/rehype-highlight-lines/package.json index 7aa041a84d9..a8c3558a48a 100644 --- a/packages/rehype-highlight-lines/package.json +++ b/packages/rehype-highlight-lines/package.json @@ -20,7 +20,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "clean": "rimraf dist", diff --git a/packages/rehype-jargon/package.json b/packages/rehype-jargon/package.json index 64544612fe5..7510b6b3f20 100644 --- a/packages/rehype-jargon/package.json +++ b/packages/rehype-jargon/package.json @@ -20,7 +20,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", diff --git a/packages/snapseries/package.json b/packages/snapseries/package.json index c4fcff3b1d7..dd01b061166 100644 --- a/packages/snapseries/package.json +++ b/packages/snapseries/package.json @@ -20,7 +20,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", diff --git a/plugins/plugin-annotations/package.json b/plugins/plugin-annotations/package.json index 23823952a54..ed58782eef3 100644 --- a/plugins/plugin-annotations/package.json +++ b/plugins/plugin-annotations/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/plugins/plugin-bundle/package.json b/plugins/plugin-bundle/package.json index a3554f6b0a8..c525ca55a35 100644 --- a/plugins/plugin-bundle/package.json +++ b/plugins/plugin-bundle/package.json @@ -28,7 +28,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -42,7 +45,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/plugins/plugin-bust/package.json b/plugins/plugin-bust/package.json index 107311a4df6..7bfd067970f 100644 --- a/plugins/plugin-bust/package.json +++ b/plugins/plugin-bust/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/plugins/plugin-flip/package.json b/plugins/plugin-flip/package.json index 909c0733d38..220cc795249 100644 --- a/plugins/plugin-flip/package.json +++ b/plugins/plugin-flip/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/plugins/plugin-gore/package.json b/plugins/plugin-gore/package.json index b67764c51c2..23468d6ab44 100644 --- a/plugins/plugin-gore/package.json +++ b/plugins/plugin-gore/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/plugins/plugin-i18n/package.json b/plugins/plugin-i18n/package.json index 04095bdb187..12b06336883 100644 --- a/plugins/plugin-i18n/package.json +++ b/plugins/plugin-i18n/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/plugins/plugin-measurements/package.json b/plugins/plugin-measurements/package.json index 87eb450ce8e..ebed9f51916 100644 --- a/plugins/plugin-measurements/package.json +++ b/plugins/plugin-measurements/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/plugins/plugin-mirror/package.json b/plugins/plugin-mirror/package.json index 84e59644d8f..29a2e05b60e 100644 --- a/plugins/plugin-mirror/package.json +++ b/plugins/plugin-mirror/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/plugins/plugin-round/package.json b/plugins/plugin-round/package.json index 8ab8b58c55e..dbe94a0c300 100644 --- a/plugins/plugin-round/package.json +++ b/plugins/plugin-round/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/plugins/plugin-sprinkle/package.json b/plugins/plugin-sprinkle/package.json index b0e14ec9341..bdc63b9e54a 100644 --- a/plugins/plugin-sprinkle/package.json +++ b/plugins/plugin-sprinkle/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/plugins/plugin-svgattr/package.json b/plugins/plugin-svgattr/package.json index 98cdf79ce60..3c89dad5d4e 100644 --- a/plugins/plugin-svgattr/package.json +++ b/plugins/plugin-svgattr/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/plugins/plugin-theme/package.json b/plugins/plugin-theme/package.json index cab6f3b1bc9..1edac4f5c90 100644 --- a/plugins/plugin-theme/package.json +++ b/plugins/plugin-theme/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/plugins/plugin-timing/package.json b/plugins/plugin-timing/package.json index 5d907f89817..5351e012b8b 100644 --- a/plugins/plugin-timing/package.json +++ b/plugins/plugin-timing/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/plugins/plugin-versionfree-svg/package.json b/plugins/plugin-versionfree-svg/package.json index 0df7061d73a..aa060b58efb 100644 --- a/plugins/plugin-versionfree-svg/package.json +++ b/plugins/plugin-versionfree-svg/package.json @@ -27,7 +27,10 @@ "type": "module", "module": "dist/index.mjs", "exports": { - ".": "./dist/index.mjs" + ".": { + "internal": "./src/index.mjs", + "default": "./dist/index.mjs" + } }, "scripts": { "build": "node build.mjs", @@ -41,7 +44,7 @@ "tips": "node ../../scripts/help.mjs", "lint": "npx eslint 'src/**' 'tests/*.mjs'", "prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'", - "testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", + "testci": "NODE_OPTIONS=\"--conditions=internal\" npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js", "wbuild": "node build.mjs", "wbuild:all": "yarn wbuild" }, diff --git a/scripts/reconfigure.mjs b/scripts/reconfigure.mjs index 26e45bfba6c..b7be290b747 100644 --- a/scripts/reconfigure.mjs +++ b/scripts/reconfigure.mjs @@ -274,14 +274,7 @@ function packageJson(pkg) { } pkgConf.keywords = pkgConf.keywords.concat(keywords(pkg)) pkgConf.scripts = scripts(pkg) - /* - * If we building a site simply override the module entry so that we don't have - * to build any dependencies, but instead can just load them from source - */ - if (SITEBUILD) { - pkgConf.module = 'src/index.mjs' - pkgConf.exports = { '.': './src/index.mjs' } - } + if (repo.exceptions.skipTests.indexOf(pkg.name) !== -1) { pkgConf.scripts.test = `echo "skipping tests for ${pkg.name}"` pkgConf.scripts.testci = `echo "skipping tests for ${pkg.name}"` diff --git a/sites/dev/package.json b/sites/dev/package.json index d3953ad7379..121da6fa5dd 100644 --- a/sites/dev/package.json +++ b/sites/dev/package.json @@ -19,14 +19,13 @@ "clean": "rimraf prebuild/* && rimraf public/locales/*/* && rimraf public/feeds/* && rimraf ../shared/prebuild/data/*", "dev": "next dev -p 8000", "develop": "next dev -p 8000", - "i18n": "SITE=dev node ../shared/prebuild/i18n-only.mjs", + "i18n": "SITE=dev node --conditions=internal ../shared/prebuild/i18n-only.mjs", "lint": "next lint", - "prebuild": "cd ../../ && yarn sitebuildconfigure && cd - && node --experimental-json-modules ./prebuild.mjs", - "predev": "node --experimental-json-modules ./prebuild.mjs", + "prebuild": "node --conditions=internal --experimental-json-modules ./prebuild.mjs", "serve": "pm2 start npm --name 'dev' -- run start", "start": "yarn prebuild && yarn dev", "wbuild": "next build", - "prewbuild": "cd ../../ && yarn sitebuildconfigure && cd - && node --experimental-json-modules ./prebuild.mjs" + "prewbuild": "node --conditions=internal --experimental-json-modules ./prebuild.mjs" }, "peerDependencies": {}, "dependencies": { diff --git a/sites/lab/package.json b/sites/lab/package.json index a85014b9054..6a4f5d61512 100644 --- a/sites/lab/package.json +++ b/sites/lab/package.json @@ -18,14 +18,13 @@ "cibuild": "yarn build", "dev": "next dev -p 8000", "develop": "next dev -p 8000", - "i18n": "SITE=lab node ../shared/prebuild/i18n-only.mjs", + "i18n": "SITE=lab node --conditions=internal ../shared/prebuild/i18n-only.mjs", "e2e": "yarn playwright test", "lint": "next lint", - "prebuild": "cd ../../ && yarn sitebuildconfigure && cd - && node --experimental-json-modules ./prebuild.mjs", - "predev": "node --experimental-json-modules ./prebuild.mjs", + "prebuild": "node --conditions=internal --experimental-json-modules ./prebuild.mjs", "start": "yarn prebuild && yarn dev", "wbuild": "next build", - "prewbuild": "cd ../../ && yarn sitebuildconfigure && cd - && node --experimental-json-modules ./prebuild.mjs" + "prewbuild": "node --conditions=internal --experimental-json-modules ./prebuild.mjs" }, "peerDependencies": {}, "dependencies": { diff --git a/sites/org/package.json b/sites/org/package.json index 7e0d868d652..0c747275ffc 100644 --- a/sites/org/package.json +++ b/sites/org/package.json @@ -19,13 +19,12 @@ "clean": "rimraf prebuild/* && rimraf public/locales/*/* && rimraf public/feeds/* && rimraf ../shared/prebuild/data/*", "dev": "next dev -p 8000", "develop": "next dev -p 8000", - "i18n": "SITE=org node ../shared/prebuild/i18n-only.mjs", + "i18n": "SITE=org node --conditions=internal ../shared/prebuild/i18n-only.mjs", "lint": "next lint", - "prebuild": "cd ../../ && yarn sitebuildconfigure && cd - && node --experimental-json-modules ./prebuild.mjs", - "predev": "node --experimental-json-modules ./prebuild.mjs", + "prebuild": "node --conditions=internal --experimental-json-modules ./prebuild.mjs", "start": "yarn prebuild && yarn dev", "wbuild": "next build", - "prewbuild": "cd ../../ && yarn sitebuildconfigure && cd - && node --experimental-json-modules ./prebuild.mjs" + "prewbuild": "node --conditions=internal --experimental-json-modules ./prebuild.mjs" }, "peerDependencies": {}, "dependencies": { diff --git a/sites/shared/components/sets/measie-input.mjs b/sites/shared/components/sets/measie-input.mjs index 3a23db0ccee..dfc832c3a7d 100644 --- a/sites/shared/components/sets/measie-input.mjs +++ b/sites/shared/components/sets/measie-input.mjs @@ -1,8 +1,9 @@ import { isDegreeMeasurement } from 'config/measurements.mjs' -import { measurementAsMm, formatMm } from 'shared/utils.mjs' +import { measurementAsMm, formatMm, measurementAsUnits } from 'shared/utils.mjs' import { Collapse } from 'shared/components/collapse.mjs' import { PlusIcon, EditIcon } from 'shared/components/icons.mjs' -import { useState } from 'react' +import { NumberInput } from 'shared/components/workbench/menus/shared/inputs.mjs' +import { useState, useCallback } from 'react' export const ns = ['account'] const Mval = ({ m, val = false, imperial = false, className = '' }) => @@ -100,35 +101,35 @@ export const MeasieInput = ({ stopLoading = () => null, }) => { const isDegree = isDegreeMeasurement(m) - const factor = isDegree ? 1 : mset.imperial ? 25.4 : 10 + const units = mset.imperial ? 'imperial' : 'metric' + const [val, setVal] = useState(() => { + const measie = mset.measies?.[m] + if (!measie) return '' + if (isDegree) return measie + return measurementAsUnits(measie, units) + }) - const isValValid = (val) => - typeof val === 'undefined' || val === '' ? null : val != false && !isNaN(val) - const isValid = (newVal) => (typeof newVal === 'undefined' ? isValValid(val) : isValValid(newVal)) - - const [val, setVal] = useState(mset.measies?.[m] / factor || '') - const [valid, setValid] = useState(isValid(mset.measies?.[m] / factor || '')) + const [valid, setValid] = useState(null) // Update onChange - const update = (evt) => { - setVal(evt.target.value) + const update = useCallback( + (validVal, rawVal) => { + setValid(validVal) + setVal(validVal || rawVal) - const useVal = isDegree - ? evt.target.value - : measurementAsMm(evt.target.value, mset.imperial ? 'imperial' : 'metric') - const validUpdate = isValid(useVal) - setValid(validUpdate) - - if (validUpdate && typeof onUpdate === 'function') { - onUpdate(m, useVal) - } - } + if (validVal && typeof onUpdate === 'function') { + const useVal = isDegree ? validVal : measurementAsMm(validVal, units) + onUpdate(m, useVal) + } + }, + [isDegree, setValid, setVal, onUpdate, units, m] + ) const save = async () => { // FIXME startLoading() const measies = {} - measies[m] = val * factor + measies[m] = isDegree ? val : measurementAsMm(val, units) const result = await backend.updateSet(mset.id, { measies }) if (result.success) { refresh() @@ -137,7 +138,7 @@ export const MeasieInput = ({ stopLoading() } - const fraction = (i, base) => update({ target: { value: Math.floor(val) + i / base } }) + const fraction = (i, base) => update(Math.floor(('' + val).split(/[\s.]/)[0]) + i / base) if (!m) return null @@ -147,48 +148,41 @@ export const MeasieInput = ({