Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebase upstream and update some dependencies #2

Open
wants to merge 74 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
42069d1
Update babel deps
emmatown Mar 6, 2023
57576f9
Fix TS error
emmatown Mar 6, 2023
d363c88
Preserve `"use client"` module boundaries (#516)
emmatown Mar 24, 2023
f2990ea
Version Packages (#526)
github-actions[bot] Mar 24, 2023
457b707
Fix non-entrypoint TS files "use client"
emmatown Mar 27, 2023
00aabe7
Version Packages (#528)
github-actions[bot] Mar 27, 2023
2a3722c
Generate declaration maps for the `.d.ts` files that only re-export t…
emmatown Mar 29, 2023
82ed2ae
Version Packages (#531)
github-actions[bot] Mar 29, 2023
7f6618a
Remove a comment
emmatown Mar 29, 2023
6a33c0b
Update snapshots
emmatown Mar 29, 2023
6e8fb03
Add shield.io README badges and sponsorship (#529)
dcousens Mar 30, 2023
3c4eb95
Version Packages (#533)
github-actions[bot] Mar 30, 2023
51d1ffa
Fix indentation
emmatown Apr 3, 2023
cf8144a
Version Packages (#534)
github-actions[bot] Apr 3, 2023
1f83965
Fix `preconstruct dev` throwing a syntax error when an entrypoint has…
emmatown Apr 4, 2023
60bce6e
Fix things
emmatown Apr 4, 2023
c74f19c
Unused import
emmatown Apr 4, 2023
421041e
Version Packages (#535)
github-actions[bot] Apr 4, 2023
3645eed
Upgrade dependency `terser` (#536)
jordanoverbye Apr 5, 2023
98e89e6
Update CI setup (#539)
emmatown Apr 10, 2023
261140b
Allow self-referencing a package with its name (#540)
emmatown Apr 10, 2023
d2cd411
Update rollup and magic-string (#538)
emmatown Apr 10, 2023
2fd4ed2
Fix issues with `'use client'` directive module preservation (#541)
emmatown Apr 10, 2023
bb10c5d
Version Packages (#537)
github-actions[bot] Apr 10, 2023
93106e3
Fixed the default export shape in strict ESM environments (#543)
Andarist May 1, 2023
4e72d99
Fix `'use client'` directives with comments preceding them not being …
emmatown May 1, 2023
233ee25
Preserve top-level `'use server'` directives like `'use client'` dire…
emmatown May 1, 2023
9f747b5
Change use server thing to a minor
emmatown May 1, 2023
958130b
Version Packages (#544)
github-actions[bot] May 1, 2023
5380890
Disable `importConditionDefaultExport` for now
emmatown May 2, 2023
826cdf8
Version Packages (#545)
github-actions[bot] May 2, 2023
e854fe2
Update typescript
emmatown May 2, 2023
c28b10a
Fix `importConditionDefaultExport` (#546)
emmatown May 2, 2023
17021e5
Version Packages (#547)
github-actions[bot] May 2, 2023
db69133
Load Babel lazily in the main thread to speed up init time (#548)
Andarist May 10, 2023
41a8a4f
Add experimental flag for only generating declarations that are actua…
emmatown May 10, 2023
ff61fbf
Imports conditions (#551)
emmatown May 15, 2023
0116c79
Update flat-kings-visit.md
emmatown May 15, 2023
ebd7a55
Version Packages (#549)
github-actions[bot] May 15, 2023
e78203b
Fix `.d.ts` files under `importsConditions` experimental flag incorre…
emmatown May 15, 2023
720c537
Remove logs in tests
emmatown May 15, 2023
b9143b9
Version Packages (#552)
github-actions[bot] May 15, 2023
6896664
Fix `preconstruct fix` leaving blank package.jsons if a package fails…
emmatown May 15, 2023
1147fee
Unify how module specifiers are visited by different declaration tran…
Andarist May 17, 2023
00c80bb
Gitignore `.vscode/settings.json` (#557)
Andarist May 18, 2023
6860429
Avoid empty reexport statements in `.cjs.mjs` files (#558)
Andarist May 18, 2023
908c43e
Replace TS extensions in generated declaration files (#556)
Andarist May 19, 2023
0a4853c
Version Packages (#555)
github-actions[bot] May 19, 2023
a58f021
Normalise imports in manually written declaration files (#559)
emmatown May 19, 2023
58df49f
Fix require hook skipping compiling files when just an entrypoint is …
emmatown Jul 2, 2023
484c6a7
Use `package.json#exports` (#565)
Andarist Jul 3, 2023
9d4f0dc
Enable `onlyEmitUsedTypeScriptDeclarations` behaviour by default (#566)
emmatown Jul 3, 2023
a096eaa
Version Packages (#560)
github-actions[bot] Jul 3, 2023
d4006c8
Fixed `.mjs` proxies generation in conditions builds (#567)
Andarist Jul 3, 2023
9132a5d
Version Packages (#568)
github-actions[bot] Jul 3, 2023
b7b883d
Add extra runtime checking tests for import conditions (#569)
Andarist Jul 5, 2023
edb4320
Replace the dependency `is-ci` with `ci-info` (#570)
Andarist Jul 5, 2023
f902547
Update Preconstruct used by build (#571)
Andarist Jul 5, 2023
d79abf2
Fix `.d.cts`/`.d.mts` files breaking declaration generation (#584)
emmatown Dec 7, 2023
2dd112b
Version Packages (#572)
github-actions[bot] Dec 7, 2023
31539f7
Use narrowed down variable within if's body (#585)
Andarist Jan 10, 2024
4213d9b
Add snapshot release workflow (#587)
emmatown Jan 14, 2024
0da0eb9
Fix snapshot release workflow
emmatown Jan 14, 2024
3e636d4
Add creating .npmrc step
emmatown Jan 14, 2024
1a2ee56
Use inline source maps for declaration file redirects (#588)
emmatown Jan 15, 2024
d8e9cea
Add `typeModule` experimental flag (#586)
emmatown Jan 15, 2024
9f44a11
Version Packages (#589)
github-actions[bot] Jan 15, 2024
73b66d2
added svg to EXTENSIONS
alecdwm Jan 31, 2023
affd2b1
chore: conflicts
chidg Feb 14, 2024
015f619
added svgr rollup plugin
alecdwm Jan 31, 2023
d1349b7
added svgr config: { exportType: "named", dimensions: false }
alecdwm Jan 31, 2023
c76d309
chore: update yarn.lock
chidg Feb 14, 2024
b096509
chore: update svgr and babel/preset-env dependencies, for resolution …
chidg Feb 15, 2024
fdaf0cc
fix: ensure package name is correct for talisman branch
chidg Feb 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/actions/setup-deps/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: "Setup Dependencies"
runs:
using: "composite"
steps:
- name: Setup Node.js LTS
uses: actions/setup-node@v3
with:
node-version: lts/*
cache: yarn

- name: Install Dependencies
run: yarn install
shell: bash
66 changes: 3 additions & 63 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,7 @@ jobs:
with:
fetch-depth: 0

- name: Set Node.js 16.x
uses: actions/setup-node@main
with:
node-version: 16.x

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
id: yarn-cache
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install Dependencies
run: yarn
- uses: ./.github/actions/setup-deps

- name: Run Tests
run: yarn cross-env CI=true yarn jest --coverage --color
Expand All @@ -56,27 +36,7 @@ jobs:
steps:
- uses: actions/checkout@main

- name: Set Node.js 16.x
uses: actions/setup-node@main
with:
node-version: 16.x

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
id: yarn-cache
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install Dependencies
run: yarn
- uses: ./.github/actions/setup-deps

- name: Check Types
run: yarn tsc
Expand All @@ -86,27 +46,7 @@ jobs:
steps:
- uses: actions/checkout@main

- name: Set Node.js 16.x
uses: actions/setup-node@main
with:
node-version: 16.x

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
id: yarn-cache
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install Dependencies
run: yarn
- uses: ./.github/actions/setup-deps

- name: Run ESLint
run: yarn lint
49 changes: 49 additions & 0 deletions .github/workflows/publish_snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Publish (Snapshot)

on:
workflow_dispatch:
inputs:
tag:
description: "The npm tag to publish to"
required: true

jobs:
publish_snapshot:
name: Publish (Snapshot)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
with:
persist-credentials: true # needed for git push

- uses: ./.github/actions/setup-deps

- name: version packages
run: yarn changeset version --snapshot ${{ inputs.tag }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: git commit
run: |
git config --global user.name 'Thinkmill Release Bot'
git config --global user.email '[email protected]'
git commit -a -m 'rc'

- run: yarn build

- name: Creating .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: npm publish, git tag
run: yarn changeset publish --tag ${{ inputs.tag }}

# reset, then push the dangling commit
- name: git push
run: |
git reset HEAD~1 --hard
git push origin --tags
22 changes: 1 addition & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,7 @@ jobs:
with:
fetch-depth: 0

- name: Setup Node.js 16.x
uses: actions/setup-node@main
with:
node-version: 16.x

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
id: yarn-cache
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install Dependencies
run: yarn
- uses: ./.github/actions/setup-deps

- name: "Create Pull Request or Publish to npm"
uses: changesets/action@v1
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ coverage/
.cache/
public/
dist/
*.log
*.log
.vscode/settings.json
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.16
20
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

> Dev and build your code painlessly in monorepos

<p>
<a title="View on npm" href="https://www.npmjs.com/package/@preconstruct/cli">
<img alt="npm version" src="https://img.shields.io/npm/v/@preconstruct/cli.svg?style=for-the-badge&labelColor=0869B8">
</a>
<a title="View the project license" href="LICENSE">
<img alt="License SDPX identifer" src="https://img.shields.io/npm/l/@preconstruct/cli.svg?style=for-the-badge&labelColor=579805">
</a>
<a title="Visit Thinkmill" href="https://www.thinkmill.com.au/open-source?utm_campaign=github-preconstruct">
<img alt="Sponsored by Thinkmill" src="https://img.shields.io/badge/Sponsored%20BY%20Thinkmill-ed0000.svg?style=for-the-badge&logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTg2IiBoZWlnaHQ9IjU4NiIgdmlld0JveD0iMCAwIDU4NiA1ODYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xOTk2XzQwNikiPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTU4NiAyOTNDNTg2IDQ1NC44MTkgNDU0LjgxOSA1ODYgMjkzIDU4NkMxMzEuMTgxIDU4NiAwIDQ1NC44MTkgMCAyOTNDMCAxMzEuMTgxIDEzMS4xODEgMCAyOTMgMEM0NTQuODE5IDAgNTg2IDEzMS4xODEgNTg2IDI5M1pNMjA1Ljc3NiAzNTguOTQ0QzE5MS4zNzYgMzU4Ljk0NCAxODUuOTA0IDM1Mi4zMiAxODUuOTA0IDMzNS45MDRWMjYyLjc1MkgyMTQuNDE2VjIzNy42OTZIMTg1LjkwNFYyMDEuMTJIMTUzLjA3MlYyMzcuNjk2SDEyOC41OTJWMjYyLjc1MkgxNTMuMDcyVjM0MC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
</p>

---

## Key Features

- In dev mode, your code behaves the same as it will in production, including locally linked in monorepos
Expand Down
2 changes: 1 addition & 1 deletion build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"main": "index.js",
"license": "MIT",
"dependencies": {
"@preconstruct/cli": "^1.1.11"
"@preconstruct/cli": "^2.8.1"
},
"resolutions": {
"**/@babel/parser": "^7.7.7"
Expand Down
Loading