Merge pull request #57 from stephank/fix/workspaces
Upgrades, fix workspaces
This commit is contained in:
@@ -20,7 +20,7 @@ jobs:
|
|||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v3.6.0
|
uses: actions/setup-node@v3.6.0
|
||||||
with:
|
with:
|
||||||
node-version: 16.x
|
node-version: 18.x
|
||||||
|
|
||||||
- name: Yarn cache
|
- name: Yarn cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
@@ -55,7 +55,9 @@ jobs:
|
|||||||
run: yarn
|
run: yarn
|
||||||
|
|
||||||
- name: Install Nix
|
- name: Install Nix
|
||||||
uses: nixbuild/nix-quick-install-action@v21
|
uses: cachix/install-nix-action@v18
|
||||||
|
with:
|
||||||
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
|
|
||||||
- name: Setup Cachix
|
- name: Setup Cachix
|
||||||
if: github.event_name == 'push' && github.repository_owner == 'stephank'
|
if: github.event_name == 'push' && github.repository_owner == 'stephank'
|
||||||
|
|||||||
+310
-288
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
|||||||
yarnPath: .yarn/releases/yarn-3.2.4.cjs
|
yarnPath: .yarn/releases/yarn-3.3.1.cjs
|
||||||
|
|||||||
+1
-1
@@ -8,7 +8,7 @@
|
|||||||
"build-dev": "./build.js",
|
"build-dev": "./build.js",
|
||||||
"fmt": "prettier --write src"
|
"fmt": "prettier --write src"
|
||||||
},
|
},
|
||||||
"packageManager": "yarn@3.2.4",
|
"packageManager": "yarn@3.3.1",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.11.4",
|
"@babel/core": "^7.11.4",
|
||||||
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
||||||
|
|||||||
@@ -154,21 +154,27 @@ let
|
|||||||
mkdir -p "$out/libexec/$name" "$out/bin"
|
mkdir -p "$out/libexec/$name" "$out/bin"
|
||||||
|
|
||||||
# Move the package contents to the output directory.
|
# Move the package contents to the output directory.
|
||||||
# - If the package.json has a `files` field, only files matching those patterns are copied
|
if grep -q '"workspaces"' package.json; then
|
||||||
# - Otherwise all files are copied
|
# We can't use `yarn pack` in a workspace setup, because it only
|
||||||
yarn pack --out package.tgz
|
# packages the outer workspace.
|
||||||
tar xzvf package.tgz --directory "$out/libexec/$name" --strip-components=1
|
mv $PWD "$out/libexec/$name"
|
||||||
|
|
||||||
cp .yarnrc* '@@LOCKFILE@@' "$out/libexec/$name"
|
|
||||||
cp --recursive .yarn "$out/libexec/$name"
|
|
||||||
|
|
||||||
# If the project uses the node-modules linker, then
|
|
||||||
# include the node_modules folder in the package.
|
|
||||||
if [ -d node_modules ]; then
|
|
||||||
cp --recursive node_modules "$out/libexec/$name"
|
|
||||||
else
|
else
|
||||||
# Otherwise, assume PnP. Copy the loader into the package.
|
# - If the package.json has a `files` field, only files matching those patterns are copied
|
||||||
cp .pnp.* "$out/libexec/$name"
|
# - Otherwise all files are copied.
|
||||||
|
yarn pack --out package.tgz
|
||||||
|
tar xzvf package.tgz --directory "$out/libexec/$name" --strip-components=1
|
||||||
|
|
||||||
|
cp .yarnrc* '@@LOCKFILE@@' "$out/libexec/$name"
|
||||||
|
cp --recursive .yarn "$out/libexec/$name"
|
||||||
|
|
||||||
|
# If the project uses the node-modules linker, then
|
||||||
|
# include the node_modules folder in the package.
|
||||||
|
if [ -d node_modules ]; then
|
||||||
|
cp --recursive node_modules "$out/libexec/$name"
|
||||||
|
else
|
||||||
|
# Otherwise, assume PnP. Copy the loader into the package.
|
||||||
|
cp .pnp.* "$out/libexec/$name"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "$out/libexec/$name"
|
cd "$out/libexec/$name"
|
||||||
|
|||||||
@@ -3216,7 +3216,7 @@ __metadata:
|
|||||||
|
|
||||||
"typescript@patch:typescript@4.5.4#~builtin<compat/typescript>":
|
"typescript@patch:typescript@4.5.4#~builtin<compat/typescript>":
|
||||||
version: 4.5.4
|
version: 4.5.4
|
||||||
resolution: "typescript@patch:typescript@npm%3A4.5.4#~builtin<compat/typescript>::version=4.5.4&hash=701156"
|
resolution: "typescript@patch:typescript@npm%3A4.5.4#~builtin<compat/typescript>::version=4.5.4&hash=bcec9a"
|
||||||
bin:
|
bin:
|
||||||
tsc: bin/tsc
|
tsc: bin/tsc
|
||||||
tsserver: bin/tsserver
|
tsserver: bin/tsserver
|
||||||
|
|||||||
Reference in New Issue
Block a user