Skip to content

Commit af9bedb

Browse files
CaeleCopilot
andauthored
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 <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
1 parent 8d9e537 commit af9bedb

File tree

11 files changed

+22663
-16600
lines changed

11 files changed

+22663
-16600
lines changed

.codesandbox/ci.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"buildCommand": "build:codesandbox",
3-
"installCommand": "install:codesandbox",
43
"packages": ["apis/stardust"],
54
"sandboxes": ["/.codesandbox/mekko"],
65
"silent": true,
7-
"node": "16"
6+
"node": "18"
87
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"hardReloadOnChange": true,
3-
"node": "16"
3+
"node": "18"
44
}

.github/scripts/nebula_create.sh

100644100755
Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,15 @@ else
1515
echo "Create project based on Picasso template"
1616
./commands/cli/lib/index.js create "$PROJECT_NAME" --picasso "$PICASSO_TEMPLATE" --install "$INSTALL" --pkgm yarn
1717
fi
18-
18+
touch "$PROJECT_NAME"/yarn.lock
1919
echo "Yarn"
20-
yarn
20+
YARN_ENABLE_HARDENED_MODE=0 yarn
2121
echo "Linking packages"
22-
(cd apis/stardust && yarn link)
23-
(cd commands/cli && yarn link)
24-
(cd commands/build && yarn link)
25-
(cd commands/serve && yarn link)
2622
cd "$PROJECT_NAME"
27-
yarn link "@nebula.js/stardust"
28-
yarn link "@nebula.js/cli"
29-
yarn link "@nebula.js/cli-build"
30-
yarn link "@nebula.js/cli-serve"
23+
yarn link ../../apis/stardust
24+
yarn link ../../commands/cli
25+
yarn link ../../commands/build
26+
yarn link ../../commands/serve
3127
echo "Log node_modules/@nebula.js"
3228
ls -la node_modules/@nebula.js
3329
if [ "$BUILD" = "true" ]; then

.github/workflows/ci.yml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v5
17+
- name: Enable Corepack
18+
run: corepack enable
1719
- uses: actions/setup-node@v4
1820
with:
1921
node-version: 24.7.0
2022
cache: 'yarn'
2123
- name: Install dependencies
22-
run: yarn install --frozen-lockfile
24+
run: yarn install --immutable
2325
- name: Build
2426
run: yarn run build
2527
- name: Upload workspace
@@ -34,13 +36,15 @@ jobs:
3436
needs: build
3537
steps:
3638
- uses: actions/checkout@v5
39+
- name: Enable Corepack
40+
run: corepack enable
3741
- name: Download workspace
3842
uses: actions/download-artifact@v5
3943
with:
4044
name: workspace
4145
path: .
4246
- name: Install dependencies
43-
run: yarn install --frozen-lockfile
47+
run: yarn install --immutable
4448
- name: Locale verify
4549
run: yarn run locale:verify
4650
- name: Lint
@@ -64,13 +68,15 @@ jobs:
6468
needs: build
6569
steps:
6670
- uses: actions/checkout@v5
71+
- name: Enable Corepack
72+
run: corepack enable
6773
- name: Download workspace
6874
uses: actions/download-artifact@v5
6975
with:
7076
name: workspace
7177
path: .
7278
- name: Install dependencies
73-
run: yarn install --frozen-lockfile
79+
run: yarn install --immutable
7480
- name: Install Playwright Browsers
7581
run: npx playwright install --with-deps
7682
- name: Test component
@@ -99,13 +105,15 @@ jobs:
99105
needs: build
100106
steps:
101107
- uses: actions/checkout@v5
108+
- name: Enable Corepack
109+
run: corepack enable
102110
- name: Download workspace
103111
uses: actions/download-artifact@v5
104112
with:
105113
name: workspace
106114
path: .
107115
- name: Install dependencies
108-
run: yarn install --frozen-lockfile
116+
run: yarn install --immutable
109117
- name: Install Playwright Chromium
110118
run: npx playwright install --with-deps chromium
111119
- run: chmod +x .github/scripts/nebula_create.sh
@@ -114,7 +122,7 @@ jobs:
114122
- name: Create Nebula visualization project (Barchart)
115123
run: .github/scripts/nebula_create.sh generated/barchart barchart false false true true
116124
- name: Create Nebula mashup project
117-
run: .github/scripts/nebula_create.sh hello-mashup none true true true false
125+
run: .github/scripts/nebula_create.sh generated/hello-mashup none true true true false
118126
- name: Store barchart screenshots
119127
if: always()
120128
uses: actions/upload-artifact@v4
@@ -136,15 +144,18 @@ jobs:
136144
steps:
137145
- name: Checkout repository
138146
uses: actions/checkout@v5
139-
147+
with:
148+
fetch-depth: 0
149+
- name: Enable Corepack
150+
run: corepack enable
140151
- name: Set up Node.js
141152
uses: actions/setup-node@v4
142153
with:
143154
node-version: 22.19.0
144155
cache: 'yarn'
145156

146157
- name: Install dependencies
147-
run: yarn install --frozen-lockfile
158+
run: yarn install --immutable
148159

149160
- name: Create version.txt
150161
id: version
@@ -153,7 +164,7 @@ jobs:
153164
if [ "${GITHUB_REF_TYPE}" = "tag" ]; then
154165
version=${GITHUB_REF_NAME#v}
155166
else
156-
yarn workspace "@nebula.js/stardust" version --prepatch --no-git-tag-version
167+
yarn workspace "@nebula.js/stardust" version prepatch
157168
version=$(node -p "require('./apis/stardust/api-spec/spec.json').info.version")
158169
fi
159170
echo "$version" > ./version.txt

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@
1010
.npmrc
1111
*.pem
1212

13+
.pnp.*
14+
.yarn/*
15+
!.yarn/patches
16+
!.yarn/plugins
17+
!.yarn/releases
18+
!.yarn/sdks
19+
!.yarn/versions
20+
1321
node_modules/
1422
coverage/
1523
dist/
@@ -20,6 +28,7 @@ test/**/__artifacts__/temp
2028
apis/*/core/**/*.js
2129
apis/*/core/**/*.js.map
2230
apis/locale/all.json
31+
generated/
2332

2433
Search/
2534

.yarnrc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
nodeLinker: node-modules
2+
enableHardenedMode: false

commands/create/templates/sn/none/_package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@nebula.js/cli-serve": "<%= nebulaVersion %>",
2929
"@nebula.js/cli-sense": "<%= nebulaVersion %>",
3030
"@playwright/test": "^1.28.1",
31-
"@qlik/sdk": "^0.12.0",
31+
"@qlik/sdk": "^0.28.0",
3232
"eslint": "7.27.0",
3333
"eslint-config-airbnb-base": "14.2.1",
3434
"eslint-plugin-import": "2.23.4",

commands/create/templates/sn/picasso/common/_package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"eslint-config-airbnb-base": "14.2.1",
3333
"eslint-plugin-import": "2.23.4",
3434
"eslint-plugin-mocha": "9.0.0",
35-
"@qlik/sdk": "^0.12.0",
35+
"@qlik/sdk": "^0.28.0",
3636
"picasso.js": "2.1.1",
3737
"picasso-plugin-q": "2.1.1"
3838
},

package.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"build": "yarn run locale:generate && cross-env NODE_ENV=production FORCE_COLOR=1 lerna run build --stream",
77
"build:dev": "yarn run locale:generate && cross-env NODE_ENV=development FORCE_COLOR=1 lerna run build --stream",
88
"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}\"",
9-
"install:codesandbox": "yarn --ignore-engines",
109
"build:watch": "FORCE_COLOR=1 lerna run build:watch --stream --concurrency 99 --no-sort",
1110
"format": "prettier --write '**/**/*' --ignore-unknown",
1211
"locale:verify": "node tools/verify-translations.cjs",
@@ -93,18 +92,17 @@
9392
"yargs": "17.7.2"
9493
},
9594
"resolutions": {
96-
"**/caniuse-lite": "1.0.30001739",
97-
"**/react": "18.3.1",
98-
"**/react-dom": "18.3.1",
99-
"**/react-is": "18.3.1",
95+
"caniuse-lite": "1.0.30001739",
96+
"react": "18.3.1",
97+
"react-dom": "18.3.1",
98+
"react-is": "18.3.1",
10099
"@playwright/test": "1.55.0"
101100
},
102101
"workspaces": [
103-
"generated/*",
104102
"packages/*",
105103
"commands/*",
106104
"apis/*",
107105
"test/component/*"
108106
],
109-
"packageManager": "yarn@1.22.22"
107+
"packageManager": "yarn@4.9.4"
110108
}

packages/ui/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"license": "MIT",
77
"author": "QlikTech International AB",
88
"keywords": [],
9-
"scripts": {},
109
"peerDependencies": {
1110
"@emotion/react": "^11.14.0",
1211
"@emotion/styled": "^11.14.1",

0 commit comments

Comments
 (0)