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

Fixes prettier #136

Merged
merged 2 commits into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1,046 changes: 523 additions & 523 deletions .pnp.cjs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);

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

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require prettier/bin/prettier.cjs
// Setup the environment to be able to require prettier/bin-prettier.js
require(absPnpApiPath).setup();
}
}

// Defer to the real prettier/bin/prettier.cjs your application uses
module.exports = absRequire(`prettier/bin/prettier.cjs`);
// Defer to the real prettier/bin-prettier.js your application uses
module.exports = absRequire(`prettier/bin-prettier.js`);
File renamed without changes.
6 changes: 3 additions & 3 deletions .yarn/sdks/prettier/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "prettier",
"version": "3.1.0-sdk",
"main": "./index.cjs",
"version": "2.8.8-sdk",
"main": "./index.js",
"type": "commonjs",
"bin": "./bin/prettier.cjs"
"bin": "./bin-prettier.js"
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Transcend Inc.",
"name": "@transcend-io/privacy-types",
"description": "Core enums and types that can be useful when interacting with Transcend's public APIs.",
"version": "4.59.0",
"version": "4.59.1",
"homepage": "https://github.com/transcend-io/privacy-types",
"repository": {
"type": "git",
Expand Down Expand Up @@ -44,7 +44,7 @@
"eslint-plugin-import": "2.29.0",
"eslint-plugin-jsdoc": "^46.9.0",
"mocha": "^10.2.0",
"prettier": "^3.1.0",
"prettier": "^2.7.1",
"ts-node": "^10.9.1",
"typescript": "^5.3.2"
},
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ __metadata:
fp-ts: "npm:^2.16.1"
io-ts: "npm:^2.2.21"
mocha: "npm:^10.2.0"
prettier: "npm:^3.1.0"
prettier: "npm:^2.7.1"
ts-node: "npm:^10.9.1"
typescript: "npm:^5.3.2"
languageName: unknown
Expand Down Expand Up @@ -3819,12 +3819,12 @@ __metadata:
languageName: node
linkType: hard

"prettier@npm:^3.1.0":
version: 3.1.0
resolution: "prettier@npm:3.1.0"
"prettier@npm:^2.7.1":
version: 2.8.8
resolution: "prettier@npm:2.8.8"
bin:
prettier: bin/prettier.cjs
checksum: a45ea70aa97fde162ea4c4aba3dfc7859aa6a732a1db34458d9535dc3c2c16d3bc3fb5689e6cd76aa835562555303b02d9449fd2e15af3b73c8053557e25c5b6
prettier: bin-prettier.js
checksum: 463ea8f9a0946cd5b828d8cf27bd8b567345cf02f56562d5ecde198b91f47a76b7ac9eae0facd247ace70e927143af6135e8cf411986b8cb8478784a4d6d724a
languageName: node
linkType: hard

Expand Down