chore: upgrade to yarn modern (#1796)

* chore: upgrade to yarn modern

* chore: disable hardened mode

* chore: update gitignore

* chore: update versions

* chore: use touch instead of echo

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Tobias Åström
2025-09-05 12:57:10 +02:00
committed by GitHub
parent 8d9e537179
commit af9bedbec1
11 changed files with 22663 additions and 16600 deletions

View File

@@ -1,8 +1,7 @@
{
"buildCommand": "build:codesandbox",
"installCommand": "install:codesandbox",
"packages": ["apis/stardust"],
"sandboxes": ["/.codesandbox/mekko"],
"silent": true,
"node": "16"
"node": "18"
}

View File

@@ -1,4 +1,4 @@
{
"hardReloadOnChange": true,
"node": "16"
"node": "18"
}

16
.github/scripts/nebula_create.sh vendored Normal file → Executable file
View File

@@ -15,19 +15,15 @@ else
echo "Create project based on Picasso template"
./commands/cli/lib/index.js create "$PROJECT_NAME" --picasso "$PICASSO_TEMPLATE" --install "$INSTALL" --pkgm yarn
fi
touch "$PROJECT_NAME"/yarn.lock
echo "Yarn"
yarn
YARN_ENABLE_HARDENED_MODE=0 yarn
echo "Linking packages"
(cd apis/stardust && yarn link)
(cd commands/cli && yarn link)
(cd commands/build && yarn link)
(cd commands/serve && yarn link)
cd "$PROJECT_NAME"
yarn link "@nebula.js/stardust"
yarn link "@nebula.js/cli"
yarn link "@nebula.js/cli-build"
yarn link "@nebula.js/cli-serve"
yarn link ../../apis/stardust
yarn link ../../commands/cli
yarn link ../../commands/build
yarn link ../../commands/serve
echo "Log node_modules/@nebula.js"
ls -la node_modules/@nebula.js
if [ "$BUILD" = "true" ]; then

View File

@@ -14,12 +14,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Enable Corepack
run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 24.7.0
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Build
run: yarn run build
- name: Upload workspace
@@ -34,13 +36,15 @@ jobs:
needs: build
steps:
- uses: actions/checkout@v5
- name: Enable Corepack
run: corepack enable
- name: Download workspace
uses: actions/download-artifact@v5
with:
name: workspace
path: .
- name: Install dependencies
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Locale verify
run: yarn run locale:verify
- name: Lint
@@ -64,13 +68,15 @@ jobs:
needs: build
steps:
- uses: actions/checkout@v5
- name: Enable Corepack
run: corepack enable
- name: Download workspace
uses: actions/download-artifact@v5
with:
name: workspace
path: .
- name: Install dependencies
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Test component
@@ -99,13 +105,15 @@ jobs:
needs: build
steps:
- uses: actions/checkout@v5
- name: Enable Corepack
run: corepack enable
- name: Download workspace
uses: actions/download-artifact@v5
with:
name: workspace
path: .
- name: Install dependencies
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Install Playwright Chromium
run: npx playwright install --with-deps chromium
- run: chmod +x .github/scripts/nebula_create.sh
@@ -114,7 +122,7 @@ jobs:
- name: Create Nebula visualization project (Barchart)
run: .github/scripts/nebula_create.sh generated/barchart barchart false false true true
- name: Create Nebula mashup project
run: .github/scripts/nebula_create.sh hello-mashup none true true true false
run: .github/scripts/nebula_create.sh generated/hello-mashup none true true true false
- name: Store barchart screenshots
if: always()
uses: actions/upload-artifact@v4
@@ -136,7 +144,10 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Enable Corepack
run: corepack enable
- name: Set up Node.js
uses: actions/setup-node@v4
with:
@@ -144,7 +155,7 @@ jobs:
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Create version.txt
id: version
@@ -153,7 +164,7 @@ jobs:
if [ "${GITHUB_REF_TYPE}" = "tag" ]; then
version=${GITHUB_REF_NAME#v}
else
yarn workspace "@nebula.js/stardust" version --prepatch --no-git-tag-version
yarn workspace "@nebula.js/stardust" version prepatch
version=$(node -p "require('./apis/stardust/api-spec/spec.json').info.version")
fi
echo "$version" > ./version.txt

9
.gitignore vendored
View File

@@ -10,6 +10,14 @@
.npmrc
*.pem
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
node_modules/
coverage/
dist/
@@ -20,6 +28,7 @@ test/**/__artifacts__/temp
apis/*/core/**/*.js
apis/*/core/**/*.js.map
apis/locale/all.json
generated/
Search/

2
.yarnrc.yml Normal file
View File

@@ -0,0 +1,2 @@
nodeLinker: node-modules
enableHardenedMode: false

View File

@@ -28,7 +28,7 @@
"@nebula.js/cli-serve": "<%= nebulaVersion %>",
"@nebula.js/cli-sense": "<%= nebulaVersion %>",
"@playwright/test": "^1.28.1",
"@qlik/sdk": "^0.12.0",
"@qlik/sdk": "^0.28.0",
"eslint": "7.27.0",
"eslint-config-airbnb-base": "14.2.1",
"eslint-plugin-import": "2.23.4",

View File

@@ -32,7 +32,7 @@
"eslint-config-airbnb-base": "14.2.1",
"eslint-plugin-import": "2.23.4",
"eslint-plugin-mocha": "9.0.0",
"@qlik/sdk": "^0.12.0",
"@qlik/sdk": "^0.28.0",
"picasso.js": "2.1.1",
"picasso-plugin-q": "2.1.1"
},

View File

@@ -6,7 +6,6 @@
"build": "yarn run locale:generate && cross-env NODE_ENV=production FORCE_COLOR=1 lerna run build --stream",
"build:dev": "yarn run locale:generate && cross-env NODE_ENV=development FORCE_COLOR=1 lerna run build --stream",
"build:codesandbox": "yarn run locale:generate && cross-env NODE_ENV=production CODESANDBOX=1 FORCE_COLOR=1 lerna run build --stream --scope \"@nebula.js/{stardust,theme,locale,conversion,enigma-mocker}\"",
"install:codesandbox": "yarn --ignore-engines",
"build:watch": "FORCE_COLOR=1 lerna run build:watch --stream --concurrency 99 --no-sort",
"format": "prettier --write '**/**/*' --ignore-unknown",
"locale:verify": "node tools/verify-translations.cjs",
@@ -93,18 +92,17 @@
"yargs": "17.7.2"
},
"resolutions": {
"**/caniuse-lite": "1.0.30001739",
"**/react": "18.3.1",
"**/react-dom": "18.3.1",
"**/react-is": "18.3.1",
"caniuse-lite": "1.0.30001739",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-is": "18.3.1",
"@playwright/test": "1.55.0"
},
"workspaces": [
"generated/*",
"packages/*",
"commands/*",
"apis/*",
"test/component/*"
],
"packageManager": "yarn@1.22.22"
"packageManager": "yarn@4.9.4"
}

View File

@@ -6,7 +6,6 @@
"license": "MIT",
"author": "QlikTech International AB",
"keywords": [],
"scripts": {},
"peerDependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.1",

39187
yarn.lock

File diff suppressed because it is too large Load Diff