Skip to content

Commit

Permalink
fix builds
Browse files Browse the repository at this point in the history
  • Loading branch information
SorsOps committed Oct 13, 2023
1 parent f75eb43 commit 2196dc1
Show file tree
Hide file tree
Showing 8 changed files with 78 additions and 97,864 deletions.
29 changes: 8 additions & 21 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@ jobs:
name: beta
runs-on: ubuntu-22.04
steps:
# 1: Setup node
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
# Checkout repository
- name: Checkout repository
uses: actions/checkout@v3
# Pull secrets from vault
- name: Import Secrets
id: secrets
Expand All @@ -41,21 +33,16 @@ jobs:
${{ vars.VAULT_PATH }} STORYBLOK_ACCESS_TOKEN | STORYBLOK_ACCESS_TOKEN;
${{ vars.VAULT_PATH }} SUPABASE_ANON_KEY | SUPABASE_ANON_KEY;
${{ vars.VAULT_PATH }} SENTRY_AUTH_TOKEN | SENTRY_AUTH_TOKEN;
- name: Cache node modules
id: cache-nodemodules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
# caching node_modules
path: '**/node_modules'
key: ${{ runner.os }}-node-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ env.cache-name }}-
# Install dependencies
node-version: '16.x'
cache: yarn
cache-dependency-path: '**/yarn.lock'
- name: Install dependencies
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
run: npm ci --workspaces
run: yarn --frozen-lockfile --immutable
# Generate the expected env file
- name: Make envfile
uses: SpicyPizza/[email protected]
Expand Down
29 changes: 8 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,6 @@ jobs:
name: ${{ inputs.environment }}
runs-on: ubuntu-22.04
steps:
# 1: Setup node
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
# Checkout repository
- name: Checkout repository
uses: actions/checkout@v3
# Pull secrets from vault
- name: Import Secrets
id: secrets
Expand All @@ -54,21 +46,16 @@ jobs:
${{ vars.VAULT_PATH }} STORYBLOK_ACCESS_TOKEN | STORYBLOK_ACCESS_TOKEN;
${{ vars.VAULT_PATH }} SUPABASE_ANON_KEY | SUPABASE_ANON_KEY;
${{ vars.VAULT_PATH }} SENTRY_AUTH_TOKEN | SENTRY_AUTH_TOKEN;
- name: Cache node modules
id: cache-nodemodules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
# caching node_modules
path: '**/node_modules'
key: ${{ runner.os }}-node-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ env.cache-name }}-
# Install dependencies
node-version: '16.x'
cache: yarn
cache-dependency-path: '**/yarn.lock'
- name: Install dependencies
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
run: npm ci --workspaces
run: yarn --frozen-lockfile --immutable
# Generate the expected env file
- name: Make envfile
uses: SpicyPizza/[email protected]
Expand Down
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
progress=false
strict-peer-deps=false
legacy-peer-deps=true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Whenever you apply a token to a layer, the plugin will store hidden information
Most information can be found in the [docs](https://docs.tokens.studio) or [our website](https://tokens.studio).

# Contribute
* Run `npm ci` to install dependencies.
* Run `yarn --frozen-lockfile --immutable` to install dependencies.
* Run `npm run start` to start webpack in watch mode or `npm run build` to build once.
* Open `Figma` -> `Plugins` -> `Development` -> `New Plugin...` and choose `manifest.json` file from this repo.
* Create a Pull request for your branch
Expand Down
108 changes: 54 additions & 54 deletions packages/tokens-studio-for-figma/.turbo/turbo-build.log
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ $ cross-env NODE_ENV=production webpack --mode=production
> Adding source map references
All files deleted.
> Bundled 4 files for upload
> Bundle ID: 307dd30d-1af1-5cc8-afce-2c5d26432002
> Bundle ID: eaa891e6-c22f-51a9-8943-e51466341841
> Uploaded files to Sentry
> File upload complete (processing pending on server)
> Organization: figma-tokens
Expand All @@ -17,17 +17,17 @@ All files deleted.

Source Map Upload Report
Minified Scripts
~/27efb4ae-96a2-4e35-9f8b-60ac3878b9f7-1.js (sourcemap at ui.js.map, debug id 27efb4ae-96a2-4e35-9f8b-60ac3878b9f7)
~/e2d96da0-e4ac-4e65-9090-6cdb6ec69b1f-0.js (sourcemap at code.js.map, debug id e2d96da0-e4ac-4e65-9090-6cdb6ec69b1f)
~/5028f413-0fc0-476e-9d86-305bca2a73fd-1.js (sourcemap at ui.js.map, debug id 5028f413-0fc0-476e-9d86-305bca2a73fd)
~/79abf095-cdf3-48e9-bf98-e88ee0433155-0.js (sourcemap at code.js.map, debug id 79abf095-cdf3-48e9-bf98-e88ee0433155)
Source Maps
~/27efb4ae-96a2-4e35-9f8b-60ac3878b9f7-1.js.map (debug id 27efb4ae-96a2-4e35-9f8b-60ac3878b9f7)
~/e2d96da0-e4ac-4e65-9090-6cdb6ec69b1f-0.js.map (debug id e2d96da0-e4ac-4e65-9090-6cdb6ec69b1f)
~/5028f413-0fc0-476e-9d86-305bca2a73fd-1.js.map (debug id 5028f413-0fc0-476e-9d86-305bca2a73fd)
~/79abf095-cdf3-48e9-bf98-e88ee0433155-0.js.map (debug id 79abf095-cdf3-48e9-bf98-e88ee0433155)
[sentry-webpack-plugin] Info: Successfully uploaded source maps to Sentry
[sentry-webpack-plugin] Debug: Deleting asset after upload: D:\Figma-Studio\plugin\figma-tokens\packages\tokens-studio-for-figma\dist\ui.js.map
[sentry-webpack-plugin] Debug: Deleting asset after upload: D:\Figma-Studio\plugin\figma-tokens\packages\tokens-studio-for-figma\dist\code.js.map
asset index.html 4 MiB [emitted] [big]
asset ui.js 4 MiB [emitted] [minimized] [big] (name: ui) 2 related assets
asset code.js 755 KiB [emitted] [minimized] [big] (name: code) 2 related assets
asset index.html 4 MiB [emitted] [compared for emit] [big]
asset ui.js 4 MiB [emitted] [compared for emit] [minimized] [big] (name: ui) 2 related assets
asset code.js 755 KiB [emitted] [compared for emit] [minimized] [big] (name: code) 2 related assets
orphan modules 9.22 MiB [orphan] 2080 modules
runtime modules 3.72 KiB 14 modules
cacheable modules 13.4 MiB 980 modules
Expand Down Expand Up @@ -69,88 +69,88 @@ Should not import the named export 'version' (imported as 'pjs') from default-ex
@ ./src/app/store/models/tokenState.tsx 143:0-58 733:45-62
@ ./src/app/store/models/index.tsx 3:0-42 10:16-26
@ ./src/app/store.ts 2:0-40 5:12-18
@ ./src/app/asyncMessageHandlers/getThemeInfo.ts 125:0-36 131:20-34
@ ./src/app/asyncMessageHandlers/index.ts 1:0-31 1:0-31
@ ./src/app/asyncMessageHandlers/startup.tsx 131:0-33 145:27-32
@ ./src/app/asyncMessageHandlers/index.ts 2:0-26 2:0-26
@ ./src/app/index.tsx 6:0-56 14:75-101 15:68-89

WARNING in ./src/app/store/providers/generic/versionedStorage.ts 224:37-48
Should not import the named export 'version' (imported as 'pjs') from default-exporting module (only default export is available soon)
@ ./src/app/store/updateSources.tsx 129:0-84 219:24-52
@ ./src/app/store/models/tokenState.tsx 148:0-53 708:24-45
@ ./src/app/store/models/index.tsx 3:0-42 10:16-26
@ ./src/app/store.ts 2:0-40 5:12-18
@ ./src/app/asyncMessageHandlers/getThemeInfo.ts 125:0-36 131:20-34
@ ./src/app/asyncMessageHandlers/index.ts 1:0-31 1:0-31
@ ./src/app/store/remoteTokens.tsx 170:0-82 187:38-64
@ ./src/app/components/Initiator.tsx 157:0-52 169:27-42
@ ./src/app/components/AppContainer/AppContainer.tsx 201:0-41 296:88-97
@ ./src/app/components/AppContainer/index.ts 1:0-31 1:0-31
@ ./src/app/asyncMessageHandlers/startup.tsx 132:0-58 146:53-65
@ ./src/app/asyncMessageHandlers/index.ts 2:0-26 2:0-26
@ ./src/app/index.tsx 6:0-56 14:75-101 15:68-89

WARNING in ./src/app/store/providers/jsonbin.tsx 218:37-48
Should not import the named export 'version' (imported as 'pjs') from default-exporting module (only default export is available soon)
@ ./src/app/store/updateSources.tsx 128:0-58 196:24-43
@ ./src/app/store/models/tokenState.tsx 148:0-53 708:24-45
@ ./src/app/store/models/index.tsx 3:0-42 10:16-26
@ ./src/app/store.ts 2:0-40 5:12-18
@ ./src/app/asyncMessageHandlers/getThemeInfo.ts 125:0-36 131:20-34
@ ./src/app/asyncMessageHandlers/index.ts 1:0-31 1:0-31
@ ./src/app/store/remoteTokens.tsx 156:0-49 186:22-32
@ ./src/app/components/Initiator.tsx 157:0-52 169:27-42
@ ./src/app/components/AppContainer/AppContainer.tsx 201:0-41 296:88-97
@ ./src/app/components/AppContainer/index.ts 1:0-31 1:0-31
@ ./src/app/asyncMessageHandlers/startup.tsx 132:0-58 146:53-65
@ ./src/app/asyncMessageHandlers/index.ts 2:0-26 2:0-26
@ ./src/app/index.tsx 6:0-56 14:75-101 15:68-89

WARNING in ./src/storage/GenericVersionedStorage.ts 470:45-56
Should not import the named export 'version' (imported as 'pjs') from default-exporting module (only default export is available soon)
@ ./src/storage/index.ts 2:0-42 2:0-42
@ ./src/app/store/providers/jsonbin.tsx 184:0-48 211:34-53 356:28-54 451:38-57
@ ./src/app/store/updateSources.tsx 128:0-58 196:24-43
@ ./src/app/store/models/tokenState.tsx 148:0-53 708:24-45
@ ./src/app/store/models/index.tsx 3:0-42 10:16-26
@ ./src/app/store.ts 2:0-40 5:12-18
@ ./src/app/asyncMessageHandlers/getThemeInfo.ts 125:0-36 131:20-34
@ ./src/app/asyncMessageHandlers/index.ts 1:0-31 1:0-31
@ ./src/app/store/remoteTokens.tsx 156:0-49 186:22-32
@ ./src/app/components/Initiator.tsx 157:0-52 169:27-42
@ ./src/app/components/AppContainer/AppContainer.tsx 201:0-41 296:88-97
@ ./src/app/components/AppContainer/index.ts 1:0-31 1:0-31
@ ./src/app/asyncMessageHandlers/startup.tsx 132:0-58 146:53-65
@ ./src/app/asyncMessageHandlers/index.ts 2:0-26 2:0-26
@ ./src/app/index.tsx 6:0-56 14:75-101 15:68-89

WARNING in ./src/storage/GenericVersionedStorage.ts 526:45-56
Should not import the named export 'version' (imported as 'pjs') from default-exporting module (only default export is available soon)
@ ./src/storage/index.ts 2:0-42 2:0-42
@ ./src/app/store/providers/jsonbin.tsx 184:0-48 211:34-53 356:28-54 451:38-57
@ ./src/app/store/updateSources.tsx 128:0-58 196:24-43
@ ./src/app/store/models/tokenState.tsx 148:0-53 708:24-45
@ ./src/app/store/models/index.tsx 3:0-42 10:16-26
@ ./src/app/store.ts 2:0-40 5:12-18
@ ./src/app/asyncMessageHandlers/getThemeInfo.ts 125:0-36 131:20-34
@ ./src/app/asyncMessageHandlers/index.ts 1:0-31 1:0-31
@ ./src/app/store/remoteTokens.tsx 156:0-49 186:22-32
@ ./src/app/components/Initiator.tsx 157:0-52 169:27-42
@ ./src/app/components/AppContainer/AppContainer.tsx 201:0-41 296:88-97
@ ./src/app/components/AppContainer/index.ts 1:0-31 1:0-31
@ ./src/app/asyncMessageHandlers/startup.tsx 132:0-58 146:53-65
@ ./src/app/asyncMessageHandlers/index.ts 2:0-26 2:0-26
@ ./src/app/index.tsx 6:0-56 14:75-101 15:68-89

WARNING in ./src/storage/JSONBinTokenStorage.ts 366:308-319
Should not import the named export 'version' (imported as 'pjs') from default-exporting module (only default export is available soon)
@ ./src/storage/index.ts 1:0-38 1:0-38
@ ./src/app/store/providers/jsonbin.tsx 184:0-48 211:34-53 356:28-54 451:38-57
@ ./src/app/store/updateSources.tsx 128:0-58 196:24-43
@ ./src/app/store/models/tokenState.tsx 148:0-53 708:24-45
@ ./src/app/store/models/index.tsx 3:0-42 10:16-26
@ ./src/app/store.ts 2:0-40 5:12-18
@ ./src/app/asyncMessageHandlers/getThemeInfo.ts 125:0-36 131:20-34
@ ./src/app/asyncMessageHandlers/index.ts 1:0-31 1:0-31
@ ./src/app/store/remoteTokens.tsx 156:0-49 186:22-32
@ ./src/app/components/Initiator.tsx 157:0-52 169:27-42
@ ./src/app/components/AppContainer/AppContainer.tsx 201:0-41 296:88-97
@ ./src/app/components/AppContainer/index.ts 1:0-31 1:0-31
@ ./src/app/asyncMessageHandlers/startup.tsx 132:0-58 146:53-65
@ ./src/app/asyncMessageHandlers/index.ts 2:0-26 2:0-26
@ ./src/app/index.tsx 6:0-56 14:75-101 15:68-89

WARNING in ./src/storage/JSONBinTokenStorage.ts 465:49-60
Should not import the named export 'version' (imported as 'pjs') from default-exporting module (only default export is available soon)
@ ./src/storage/index.ts 1:0-38 1:0-38
@ ./src/app/store/providers/jsonbin.tsx 184:0-48 211:34-53 356:28-54 451:38-57
@ ./src/app/store/updateSources.tsx 128:0-58 196:24-43
@ ./src/app/store/models/tokenState.tsx 148:0-53 708:24-45
@ ./src/app/store/models/index.tsx 3:0-42 10:16-26
@ ./src/app/store.ts 2:0-40 5:12-18
@ ./src/app/asyncMessageHandlers/getThemeInfo.ts 125:0-36 131:20-34
@ ./src/app/asyncMessageHandlers/index.ts 1:0-31 1:0-31
@ ./src/app/store/remoteTokens.tsx 156:0-49 186:22-32
@ ./src/app/components/Initiator.tsx 157:0-52 169:27-42
@ ./src/app/components/AppContainer/AppContainer.tsx 201:0-41 296:88-97
@ ./src/app/components/AppContainer/index.ts 1:0-31 1:0-31
@ ./src/app/asyncMessageHandlers/startup.tsx 132:0-58 146:53-65
@ ./src/app/asyncMessageHandlers/index.ts 2:0-26 2:0-26
@ ./src/app/index.tsx 6:0-56 14:75-101 15:68-89

WARNING in ./src/storage/JSONBinTokenStorage.ts 533:57-68
Should not import the named export 'version' (imported as 'pjs') from default-exporting module (only default export is available soon)
@ ./src/storage/index.ts 1:0-38 1:0-38
@ ./src/app/store/providers/jsonbin.tsx 184:0-48 211:34-53 356:28-54 451:38-57
@ ./src/app/store/updateSources.tsx 128:0-58 196:24-43
@ ./src/app/store/models/tokenState.tsx 148:0-53 708:24-45
@ ./src/app/store/models/index.tsx 3:0-42 10:16-26
@ ./src/app/store.ts 2:0-40 5:12-18
@ ./src/app/asyncMessageHandlers/getThemeInfo.ts 125:0-36 131:20-34
@ ./src/app/asyncMessageHandlers/index.ts 1:0-31 1:0-31
@ ./src/app/store/remoteTokens.tsx 156:0-49 186:22-32
@ ./src/app/components/Initiator.tsx 157:0-52 169:27-42
@ ./src/app/components/AppContainer/AppContainer.tsx 201:0-41 296:88-97
@ ./src/app/components/AppContainer/index.ts 1:0-31 1:0-31
@ ./src/app/asyncMessageHandlers/startup.tsx 132:0-58 146:53-65
@ ./src/app/asyncMessageHandlers/index.ts 2:0-26 2:0-26
@ ./src/app/index.tsx 6:0-56 14:75-101 15:68-89

WARNING in ./src/utils/analytics.tsx 17:21-32
Expand Down Expand Up @@ -182,5 +182,5 @@ WARNING in webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/

webpack 5.88.2 compiled with 17 warnings in 61036 ms
Done in 64.95s.
webpack 5.88.2 compiled with 17 warnings in 52982 ms
Done in 54.91s.
Loading

0 comments on commit 2196dc1

Please sign in to comment.