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

feat/vanilla-extract-migration #556

Merged
merged 192 commits into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from 186 commits
Commits
Show all changes
192 commits
Select commit Hold shift + click to select a range
d356336
chore: update yarn bundle
Amiditin Aug 6, 2024
1b22c38
chore: added vscode to gitignore
Amiditin Aug 6, 2024
9df12ed
chore: updated tsconfig
Amiditin Aug 6, 2024
4a62da5
chore: updated main dependencies and yarn install
Amiditin Aug 6, 2024
53f77aa
feat: updated @atls-utils/use-hover
Amiditin Aug 6, 2024
9e5f2c9
feat: updated @atls-ui-parts/autocomplete
Amiditin Aug 6, 2024
bf694d2
feat: updated @atls-ui-parts/avatar
Amiditin Aug 6, 2024
ba0555a
feat: updated @atls-ui-parts/button
Amiditin Aug 6, 2024
c605a4a
feat: updated @atls-ui-parts/card
Amiditin Aug 6, 2024
0c91e4a
feat: updated @atls-ui-parts/carousel
Amiditin Aug 6, 2024
594bfbb
feat: updated @atls-ui-parts/checkbox
Amiditin Aug 6, 2024
b4f8ad2
feat: updated @atls-ui-parts/condition
Amiditin Aug 6, 2024
02a1906
feat: updated @atls-ui-parts/condition-render
Amiditin Aug 6, 2024
987baa8
feat: updated @atls-ui-parts/datepicker
Amiditin Aug 6, 2024
ccdfc43
feat: updated @atls-ui-parts/design
Amiditin Aug 6, 2024
c52bd77
feat: updated @atls-ui-parts/dom
Amiditin Aug 6, 2024
505efad
feat: updated @atls-ui-parts/event-state
Amiditin Aug 6, 2024
b180892
feat: updated @atls-ui-parts/image
Amiditin Aug 6, 2024
bdea012
feat: updated @atls-ui-parts/input
Amiditin Aug 6, 2024
5bb15b6
feat: updated @atls-ui-parts/layout
Amiditin Aug 6, 2024
afe4283
feat: updated @atls-ui-parts/text-transform
Amiditin Aug 6, 2024
244b145
feat: added @atls-ui-parts/theme
Amiditin Aug 6, 2024
0874632
feat: updated @atls-ui-parts/upload
Amiditin Aug 6, 2024
16ab7d8
revert: removed @atls-ui-parts/hidden-input, already created in @atls…
Amiditin Aug 7, 2024
8b5b02c
refactor: added index file to @atls-ui-parts/checkbox
Amiditin Aug 7, 2024
b77854b
feat: updated @atls-ui-parts/link
Amiditin Aug 7, 2024
79c56fe
fix: typecheck @atls-ui-parts/datepicker
Amiditin Aug 7, 2024
1e62e83
feat: updated @atls-ui-parts/mapbox
Amiditin Aug 7, 2024
445e660
feat: updated @atls-ui-parts/next-image
Amiditin Aug 7, 2024
823e3bc
feat: updated @atls-ui-parts/portal
Amiditin Aug 7, 2024
42b48bf
feat: updated @atls-ui-parts/progress
Amiditin Aug 7, 2024
3a92265
feat: updated @atls-ui-parts/scalable-content
Amiditin Aug 7, 2024
0e50626
feat: added @atls-utils/use-select
Amiditin Aug 7, 2024
ceaabdb
feat: updated @atls-ui-parts/select
Amiditin Aug 7, 2024
1dbe0f4
revert: removed @atls-ui-parts/styles
Amiditin Aug 7, 2024
b729611
fix: use-select import
Amiditin Aug 7, 2024
2d34dbc
feat: updated @atls-ui-parts/switch
Amiditin Aug 7, 2024
44a0b84
feat: updated @atls-ui-parts/sidebar
Amiditin Aug 7, 2024
849cfc2
fix: @atls-ui-parts/switch files
Amiditin Aug 7, 2024
924df81
feat: updated @atls-ui-parts/swiper
Amiditin Aug 7, 2024
72af9ce
feat: updated @atls-ui-parts/text
Amiditin Aug 7, 2024
d824f7a
feat: updated @atls-ui-parts/tooltip
Amiditin Aug 7, 2024
bf1b009
feat: updated @atls-ui-proto/popover
Amiditin Aug 8, 2024
a2faa9c
feat: updated @atls-ui-proto/placeholder
Amiditin Aug 8, 2024
a55e3d3
feat: updated @atls-ui-proto/parallax
Amiditin Aug 8, 2024
31c6fb6
feat: updated @atls-ui-proto/modal
Amiditin Aug 8, 2024
4b9918e
feat: updated @atls-ui-proto/core
Amiditin Aug 8, 2024
e79eabe
feat: updated @atls-ui-proto/design
Amiditin Aug 8, 2024
a83e781
refactor: moved @atls/storybook-google-fonts to @atls-utils/use-googl…
Amiditin Aug 8, 2024
7b3b6a0
feat: updated @atls-utils/use-popover
Amiditin Aug 8, 2024
5c46159
feat: updated @atls-ui/design
Amiditin Aug 8, 2024
ef9b1bd
feat: updated @atls-ui-generators/button
Amiditin Aug 8, 2024
57b5105
feat: updated @atls-ui-generators/input
Amiditin Aug 8, 2024
f3e4608
feat: updated @atls-ui-generators/icons
Amiditin Aug 8, 2024
f991f82
feat: updated @atls-ui-generators/locales
Amiditin Aug 8, 2024
f08b954
fix: linter and typecheck
Amiditin Aug 8, 2024
034e98c
revert: removed atls-ui-proto components
Amiditin Aug 9, 2024
397e91b
refactor: moved atls-ui-proto unique components to atls-ui-parts
Amiditin Aug 9, 2024
8856eb0
feat: updated @atls-ui-admin/design
Amiditin Aug 9, 2024
84a1c5e
feat: updated @atls-ui-admin/theme
Amiditin Aug 9, 2024
3585eaa
feat: updated @atls-ui-admin/icon
Amiditin Aug 9, 2024
c53d0b6
feat: updated @atls-ui-admin/icons
Amiditin Aug 9, 2024
d8e9c68
feat: updated @atls-ui-admin/button
Amiditin Aug 9, 2024
24e624a
chore: updated includes directories in package.json and tsconfig.json
Amiditin Aug 9, 2024
c439e7d
chore: yarn install
Amiditin Aug 9, 2024
ab4b09f
chore: added git lfs
Amiditin Aug 9, 2024
547deee
chore: yarn install
Amiditin Aug 9, 2024
6e5c5f4
feat: updated @atls-ui-admin/upload
Amiditin Aug 12, 2024
7e33aea
fix: removed mocked-provider from @atls-ui-admin/upload
Amiditin Aug 12, 2024
2f6fe2d
revert: removed @atls-ui-parts/core
Amiditin Aug 12, 2024
ace7097
fix: typecheck added fetch-priority to img attributes
Amiditin Aug 12, 2024
31b5c67
fix: datepicker return value
Amiditin Aug 12, 2024
2f0c7f0
chore: added patches
Amiditin Aug 12, 2024
3b1a717
chore: downgrade storybook to 8.1.11 and updated dependencies
Amiditin Aug 12, 2024
0ec6725
fix: linter
Amiditin Aug 12, 2024
7791b1b
chore: update yarn bundle
Amiditin Aug 13, 2024
a8fb689
chore: removed vscode from gitignore
Amiditin Aug 13, 2024
3807823
chore: added enable-global-cache
Amiditin Aug 13, 2024
7ce8b6d
chore: added vscode to gitignore
Amiditin Aug 6, 2024
58e6e2b
chore: updated tsconfig
Amiditin Aug 6, 2024
253fd9a
chore: updated main dependencies and yarn install
Amiditin Aug 6, 2024
bf6c45a
feat: updated @atls-utils/use-hover
Amiditin Aug 6, 2024
6943221
feat: updated @atls-ui-parts/autocomplete
Amiditin Aug 6, 2024
28858e5
feat: updated @atls-ui-parts/avatar
Amiditin Aug 6, 2024
b00996a
feat: updated @atls-ui-parts/button
Amiditin Aug 6, 2024
e35460a
feat: updated @atls-ui-parts/card
Amiditin Aug 6, 2024
587bc52
feat: updated @atls-ui-parts/carousel
Amiditin Aug 6, 2024
2faeb02
feat: updated @atls-ui-parts/checkbox
Amiditin Aug 6, 2024
f49ba12
feat: updated @atls-ui-parts/condition
Amiditin Aug 6, 2024
e29bd36
feat: updated @atls-ui-parts/condition-render
Amiditin Aug 6, 2024
0654926
feat: updated @atls-ui-parts/datepicker
Amiditin Aug 6, 2024
f5f21d3
feat: updated @atls-ui-parts/design
Amiditin Aug 6, 2024
3ff5ca1
feat: updated @atls-ui-parts/dom
Amiditin Aug 6, 2024
08e4905
feat: updated @atls-ui-parts/event-state
Amiditin Aug 6, 2024
e6a9c81
feat: updated @atls-ui-parts/image
Amiditin Aug 6, 2024
0d0c33b
feat: updated @atls-ui-parts/input
Amiditin Aug 6, 2024
fb01505
feat: updated @atls-ui-parts/layout
Amiditin Aug 6, 2024
99ca2d6
feat: updated @atls-ui-parts/text-transform
Amiditin Aug 6, 2024
aa80fa7
feat: added @atls-ui-parts/theme
Amiditin Aug 6, 2024
12f991c
feat: updated @atls-ui-parts/upload
Amiditin Aug 6, 2024
fff6867
revert: removed @atls-ui-parts/hidden-input, already created in @atls…
Amiditin Aug 7, 2024
a5928c8
refactor: added index file to @atls-ui-parts/checkbox
Amiditin Aug 7, 2024
1f28284
feat: updated @atls-ui-parts/link
Amiditin Aug 7, 2024
3d93990
fix: typecheck @atls-ui-parts/datepicker
Amiditin Aug 7, 2024
f4bb308
feat: updated @atls-ui-parts/mapbox
Amiditin Aug 7, 2024
73188c2
feat: updated @atls-ui-parts/next-image
Amiditin Aug 7, 2024
36cd9bc
feat: updated @atls-ui-parts/portal
Amiditin Aug 7, 2024
8e47bc3
feat: updated @atls-ui-parts/progress
Amiditin Aug 7, 2024
bbdbd5b
feat: updated @atls-ui-parts/scalable-content
Amiditin Aug 7, 2024
9f4ceb9
feat: added @atls-utils/use-select
Amiditin Aug 7, 2024
a259668
feat: updated @atls-ui-parts/select
Amiditin Aug 7, 2024
d6d54c1
revert: removed @atls-ui-parts/styles
Amiditin Aug 7, 2024
4955765
fix: use-select import
Amiditin Aug 7, 2024
b28ea8e
feat: updated @atls-ui-parts/switch
Amiditin Aug 7, 2024
01c48ef
feat: updated @atls-ui-parts/sidebar
Amiditin Aug 7, 2024
9652a8b
fix: @atls-ui-parts/switch files
Amiditin Aug 7, 2024
576aa6a
feat: updated @atls-ui-parts/swiper
Amiditin Aug 7, 2024
7fa701b
feat: updated @atls-ui-parts/text
Amiditin Aug 7, 2024
f85dd2a
feat: updated @atls-ui-parts/tooltip
Amiditin Aug 7, 2024
37a2d4a
feat: updated @atls-ui-proto/popover
Amiditin Aug 8, 2024
23ed6ee
feat: updated @atls-ui-proto/placeholder
Amiditin Aug 8, 2024
a8db6d0
feat: updated @atls-ui-proto/parallax
Amiditin Aug 8, 2024
8cec4d5
feat: updated @atls-ui-proto/modal
Amiditin Aug 8, 2024
eddfadd
feat: updated @atls-ui-proto/core
Amiditin Aug 8, 2024
479ff84
feat: updated @atls-ui-proto/design
Amiditin Aug 8, 2024
e5772a7
refactor: moved @atls/storybook-google-fonts to @atls-utils/use-googl…
Amiditin Aug 8, 2024
752af0a
feat: updated @atls-utils/use-popover
Amiditin Aug 8, 2024
cc9ebd3
feat: updated @atls-ui/design
Amiditin Aug 8, 2024
23d6d7a
feat: updated @atls-ui-generators/button
Amiditin Aug 8, 2024
bf37b0a
feat: updated @atls-ui-generators/input
Amiditin Aug 8, 2024
3a4930c
feat: updated @atls-ui-generators/icons
Amiditin Aug 8, 2024
9094291
feat: updated @atls-ui-generators/locales
Amiditin Aug 8, 2024
7c12211
fix: linter and typecheck
Amiditin Aug 8, 2024
a3082ab
revert: removed atls-ui-proto components
Amiditin Aug 9, 2024
27226be
refactor: moved atls-ui-proto unique components to atls-ui-parts
Amiditin Aug 9, 2024
1b479cf
feat: updated @atls-ui-admin/design
Amiditin Aug 9, 2024
5162430
feat: updated @atls-ui-admin/theme
Amiditin Aug 9, 2024
0936e59
feat: updated @atls-ui-admin/icon
Amiditin Aug 9, 2024
883d601
feat: updated @atls-ui-admin/icons
Amiditin Aug 9, 2024
aafaa19
feat: updated @atls-ui-admin/button
Amiditin Aug 9, 2024
8672976
chore: updated includes directories in package.json and tsconfig.json
Amiditin Aug 9, 2024
59b7d9a
chore: yarn install
Amiditin Aug 9, 2024
9844b76
chore: added git lfs
Amiditin Aug 9, 2024
0f8d135
chore: yarn install
Amiditin Aug 9, 2024
b359765
feat: updated @atls-ui-admin/upload
Amiditin Aug 12, 2024
5f0b763
fix: removed mocked-provider from @atls-ui-admin/upload
Amiditin Aug 12, 2024
c14d51b
revert: removed @atls-ui-parts/core
Amiditin Aug 12, 2024
c8a293e
fix: typecheck added fetch-priority to img attributes
Amiditin Aug 12, 2024
c7cd764
fix: datepicker return value
Amiditin Aug 12, 2024
de2621a
chore: added patches
Amiditin Aug 12, 2024
5fdf941
chore: downgrade storybook to 8.1.11 and updated dependencies
Amiditin Aug 12, 2024
7c12301
fix: linter
Amiditin Aug 12, 2024
3622bb3
chore: update yarn bundle
Amiditin Aug 13, 2024
78b1ca5
chore: removed vscode from gitignore
Amiditin Aug 13, 2024
7998edf
chore: added enable-global-cache
Amiditin Aug 13, 2024
263de7a
Merge branch 'feat/vanilla-extract-migration' of github.com:atls/hype…
Amiditin Aug 14, 2024
0c840da
chore: yarn install
Amiditin Aug 14, 2024
bdc3186
fix: typecheck
Amiditin Aug 14, 2024
d51d89b
refactor: removed storybook addon-onboarding and comments from storyb…
Amiditin Aug 15, 2024
5a475d3
refactor: changed refs in storybook config
Amiditin Aug 15, 2024
f08bb06
feat: added intro stories
Amiditin Aug 15, 2024
eaa4e0a
refactor: changed import clsx to esm style
Amiditin Aug 15, 2024
84a8bfa
revert: removed @atls-utils/use-google-fonts
Amiditin Aug 15, 2024
1ac2baa
chore: bump husky and update eslint version
Amiditin Aug 15, 2024
0460a8c
refactor: changed primary font from Inter to Nunito Sans
Amiditin Aug 15, 2024
7baec15
refactor: update admin/upload story styles
Amiditin Aug 15, 2024
1d04f58
refactor: changed stories naming
Amiditin Aug 15, 2024
d952313
refactor: added import react-element from react to use-popover hook
Amiditin Aug 15, 2024
4b36fcb
refactor: changed @atls-ui-parts/image
Amiditin Aug 15, 2024
948f80c
refactor: changed @atls-ui-parts/checkbox structure
Amiditin Aug 15, 2024
014c253
refactor: changed @atls-ui-parts/link structure
Amiditin Aug 15, 2024
e40c8bb
refactor: changed @atls-ui-parts/modal structure
Amiditin Aug 15, 2024
9499571
refactor: changed @atls-ui-parts/select structure
Amiditin Aug 15, 2024
dcc2019
refactor: changed @atls-ui-parts/sidebar structure
Amiditin Aug 15, 2024
a773c4a
refactor: changed @atls-ui-parts/switch structure
Amiditin Aug 15, 2024
945778a
chore: yarn install
Amiditin Aug 15, 2024
ce488a3
refactor: using theme id for create-global-theme atls-ui-parts
Amiditin Aug 21, 2024
835f3a2
feat: added non themed elements to @atls-ui-parts/layout
Amiditin Aug 21, 2024
a4a1548
feat: added non themed text element to @atls-ui-parts/text
Amiditin Aug 21, 2024
934aa7b
feat: added non themed parallax-box element to @atls-ui-parts/parallax
Amiditin Aug 21, 2024
35e1ab8
feat: added @atls-ui-admin/layout
Amiditin Aug 21, 2024
dce0644
feat: added @atls-ui-admin/text
Amiditin Aug 21, 2024
3d72476
chore: yarn install
Amiditin Aug 21, 2024
54dbfd0
chore: yarn install
Amiditin Aug 21, 2024
d6a3cea
Merge branch 'master' into feat/vanilla-extract-migration
Amiditin Aug 22, 2024
e915b3a
chore: yarn install
Amiditin Aug 22, 2024
5126065
fix: type definition for sprinkles-fn
Amiditin Aug 23, 2024
beda23d
refactor: changed exports field to main for package.json file
Amiditin Aug 23, 2024
be56b37
refactor: changed refs urls in atls-ui/design config
Amiditin Aug 23, 2024
99b09a7
chore: added storybook build to allowed build script in bundle
Amiditin Aug 23, 2024
6c3f44a
fix: path to stories in storybook configs
Amiditin Aug 23, 2024
44491da
fix: storybook server.js import express
Amiditin Aug 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.zip filter=lfs diff=lfs merge=lfs -text
32,592 changes: 13,325 additions & 19,267 deletions .pnp.cjs

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"recommendations": [
"arcanis.vscode-zipfs",
"dbaeumer.vscode-eslint"
]
}
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true
},
"eslint.nodePath": ".yarn/sdks",
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
}
10 changes: 10 additions & 0 deletions .yarn/patches/@emotion-css-npm-11.13.0-7fe925d1e6.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
diff --git a/dist/declarations/src/index.d.ts b/dist/declarations/src/index.d.ts
index 66e1d61f0390dd9c5c318378fe55f1b802184fcd..1f43a7740e4c4cbc6c3d573152b0d24cb4f8d863 100644
--- a/dist/declarations/src/index.d.ts
+++ b/dist/declarations/src/index.d.ts
@@ -7,4 +7,4 @@ export declare const flush: () => void, hydrate: (ids: string[]) => void, cx: (.
}, css: {
(template: TemplateStringsArray, ...args: import("./create-instance.js").CSSInterpolation[]): string;
(...args: import("./create-instance.js").CSSInterpolation[]): string;
-}, sheet: import("./create-instance.js").CSSStyleSheet, cache: EmotionCache;
+}, sheet: import("./create-instance.js").CSSStyleSheet, cache: import('@emotion/cache').EmotionCache;
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/package.json b/package.json
index cdf22a7aed76707f9ea47cc1fa4491c3f5d66945..bb6d45a25dc1c1aa38137b86109e36157fea1c4a 100644
--- a/package.json
+++ b/package.json
@@ -3,6 +3,7 @@
"version": "7.1.7",
"description": "Zero-runtime Stylesheets-in-TypeScript",
"main": "dist/vanilla-extract-integration.cjs.js",
+ "type": "module",
"types": "dist/vanilla-extract-integration.cjs.d.ts",
"files": [
"/dist"
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/package.json b/package.json
index 21d9191e211063849fdf6de480939854948f7d13..158f05f407b2351ec9e50e1a1efe44943f0214bd 100644
--- a/package.json
+++ b/package.json
@@ -4,6 +4,7 @@
"description": "Zero-runtime Stylesheets-in-TypeScript",
"main": "dist/vanilla-extract-webpack-plugin.cjs.js",
"module": "dist/vanilla-extract-webpack-plugin.esm.js",
+ "type": "module",
"types": "dist/vanilla-extract-webpack-plugin.cjs.d.ts",
"exports": {
"./package.json": "./package.json",
13 changes: 13 additions & 0 deletions .yarn/patches/react-datepicker-npm-7.3.0-bde3927397.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/dist/calendar.d.ts b/dist/calendar.d.ts
index 62fde6d8974bbf10a5fe76b22a65f22210822c96..b3e91b345520fb0ad1a5108a3b212f7eebbf91c4 100644
--- a/dist/calendar.d.ts
+++ b/dist/calendar.d.ts
@@ -7,7 +7,7 @@ import MonthYearDropdown from "./month_year_dropdown";
import Time from "./time";
import Year from "./year";
import YearDropdown from "./year_dropdown";
-import type { Day } from "date-fns/types";
+import type { Day } from "date-fns";
interface YearDropdownProps extends React.ComponentPropsWithoutRef<typeof YearDropdown> {
}
interface MonthDropdownProps extends React.ComponentPropsWithoutRef<typeof MonthDropdown> {
32 changes: 32 additions & 0 deletions .yarn/sdks/eslint/bin/eslint.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env node

const {existsSync} = require(`fs`);
const {createRequire, register} = require(`module`);
const {resolve} = require(`path`);
const {pathToFileURL} = require(`url`);

const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absUserWrapperPath = resolve(__dirname, `./sdk.user.cjs`);
const absRequire = createRequire(absPnpApiPath);

const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
const isPnpLoaderEnabled = existsSync(absPnpLoaderPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require eslint/bin/eslint.js
require(absPnpApiPath).setup();
if (isPnpLoaderEnabled && register) {
register(pathToFileURL(absPnpLoaderPath));
}
}
}

const wrapWithUserWrapper = existsSync(absUserWrapperPath)
? exports => absRequire(absUserWrapperPath)(exports)
: exports => exports;

// Defer to the real eslint/bin/eslint.js your application uses
module.exports = wrapWithUserWrapper(absRequire(`eslint/bin/eslint.js`));
32 changes: 32 additions & 0 deletions .yarn/sdks/eslint/lib/api.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env node

const {existsSync} = require(`fs`);
const {createRequire, register} = require(`module`);
const {resolve} = require(`path`);
const {pathToFileURL} = require(`url`);

const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absUserWrapperPath = resolve(__dirname, `./sdk.user.cjs`);
const absRequire = createRequire(absPnpApiPath);

const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
const isPnpLoaderEnabled = existsSync(absPnpLoaderPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require eslint
require(absPnpApiPath).setup();
if (isPnpLoaderEnabled && register) {
register(pathToFileURL(absPnpLoaderPath));
}
}
}

const wrapWithUserWrapper = existsSync(absUserWrapperPath)
? exports => absRequire(absUserWrapperPath)(exports)
: exports => exports;

// Defer to the real eslint your application uses
module.exports = wrapWithUserWrapper(absRequire(`eslint`));
32 changes: 32 additions & 0 deletions .yarn/sdks/eslint/lib/unsupported-api.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env node

const {existsSync} = require(`fs`);
const {createRequire, register} = require(`module`);
const {resolve} = require(`path`);
const {pathToFileURL} = require(`url`);

const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absUserWrapperPath = resolve(__dirname, `./sdk.user.cjs`);
const absRequire = createRequire(absPnpApiPath);

const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
const isPnpLoaderEnabled = existsSync(absPnpLoaderPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require eslint/use-at-your-own-risk
require(absPnpApiPath).setup();
if (isPnpLoaderEnabled && register) {
register(pathToFileURL(absPnpLoaderPath));
}
}
}

const wrapWithUserWrapper = existsSync(absUserWrapperPath)
? exports => absRequire(absUserWrapperPath)(exports)
: exports => exports;

// Defer to the real eslint/use-at-your-own-risk your application uses
module.exports = wrapWithUserWrapper(absRequire(`eslint/use-at-your-own-risk`));
14 changes: 14 additions & 0 deletions .yarn/sdks/eslint/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "eslint",
"version": "8.48.0-sdk",
"main": "./lib/api.js",
"type": "commonjs",
"bin": {
"eslint": "./bin/eslint.js"
},
"exports": {
"./package.json": "./package.json",
".": "./lib/api.js",
"./use-at-your-own-risk": "./lib/unsupported-api.js"
}
}
5 changes: 5 additions & 0 deletions .yarn/sdks/integrations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This file is automatically generated by @yarnpkg/sdks.
# Manual changes might be lost!

integrations:
- vscode
32 changes: 32 additions & 0 deletions .yarn/sdks/typescript/bin/tsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env node

const {existsSync} = require(`fs`);
const {createRequire, register} = require(`module`);
const {resolve} = require(`path`);
const {pathToFileURL} = require(`url`);

const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absUserWrapperPath = resolve(__dirname, `./sdk.user.cjs`);
const absRequire = createRequire(absPnpApiPath);

const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
const isPnpLoaderEnabled = existsSync(absPnpLoaderPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/bin/tsc
require(absPnpApiPath).setup();
if (isPnpLoaderEnabled && register) {
register(pathToFileURL(absPnpLoaderPath));
}
}
}

const wrapWithUserWrapper = existsSync(absUserWrapperPath)
? exports => absRequire(absUserWrapperPath)(exports)
: exports => exports;

// Defer to the real typescript/bin/tsc your application uses
module.exports = wrapWithUserWrapper(absRequire(`typescript/bin/tsc`));
32 changes: 32 additions & 0 deletions .yarn/sdks/typescript/bin/tsserver
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env node

const {existsSync} = require(`fs`);
const {createRequire, register} = require(`module`);
const {resolve} = require(`path`);
const {pathToFileURL} = require(`url`);

const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absUserWrapperPath = resolve(__dirname, `./sdk.user.cjs`);
const absRequire = createRequire(absPnpApiPath);

const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
const isPnpLoaderEnabled = existsSync(absPnpLoaderPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/bin/tsserver
require(absPnpApiPath).setup();
if (isPnpLoaderEnabled && register) {
register(pathToFileURL(absPnpLoaderPath));
}
}
}

const wrapWithUserWrapper = existsSync(absUserWrapperPath)
? exports => absRequire(absUserWrapperPath)(exports)
: exports => exports;

// Defer to the real typescript/bin/tsserver your application uses
module.exports = wrapWithUserWrapper(absRequire(`typescript/bin/tsserver`));
32 changes: 32 additions & 0 deletions .yarn/sdks/typescript/lib/tsc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env node

const {existsSync} = require(`fs`);
const {createRequire, register} = require(`module`);
const {resolve} = require(`path`);
const {pathToFileURL} = require(`url`);

const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absUserWrapperPath = resolve(__dirname, `./sdk.user.cjs`);
const absRequire = createRequire(absPnpApiPath);

const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
const isPnpLoaderEnabled = existsSync(absPnpLoaderPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/lib/tsc.js
require(absPnpApiPath).setup();
if (isPnpLoaderEnabled && register) {
register(pathToFileURL(absPnpLoaderPath));
}
}
}

const wrapWithUserWrapper = existsSync(absUserWrapperPath)
? exports => absRequire(absUserWrapperPath)(exports)
: exports => exports;

// Defer to the real typescript/lib/tsc.js your application uses
module.exports = wrapWithUserWrapper(absRequire(`typescript/lib/tsc.js`));
Loading