1
0
Fork 0

use node conditional exports instead of reconfiguring exports for different use cases

This commit is contained in:
Enoch Riese 2023-07-27 18:52:58 -06:00
parent 1ce504b182
commit 7ff2bded15
79 changed files with 313 additions and 107 deletions

View file

@ -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:

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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"

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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}"`

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {