@graphitation/supermassive
Advanced tools
Comparing version 1.1.6 to 1.1.7
# Change Log - @graphitation/supermassive | ||
This log was last generated on Tue, 25 Oct 2022 10:26:10 GMT and should not be manually modified. | ||
This log was last generated on Thu, 27 Oct 2022 12:54:01 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## 1.1.7 | ||
Thu, 27 Oct 2022 12:54:01 GMT | ||
### Patches | ||
- contextPath relative to CWD and resolvers return readonly array (jakubvejr@microsoft.com) | ||
## 1.1.6 | ||
Tue, 25 Oct 2022 10:26:10 GMT | ||
Tue, 25 Oct 2022 10:26:19 GMT | ||
@@ -11,0 +19,0 @@ ### Patches |
@@ -55,5 +55,5 @@ var __create = Object.create; | ||
var glob = __toESM(require("fast-glob")); | ||
const PREPEND_TO_INTERFACES = `/* eslint-disable */ \r | ||
// @ts-nocheck \r | ||
// This file was automatically generated (by @graphitaiton/supermassive) and should not be edited.\r | ||
const PREPEND_TO_INTERFACES = `/* eslint-disable */ | ||
// @ts-nocheck | ||
// This file was automatically generated (by @graphitaiton/supermassive) and should not be edited. | ||
`; | ||
@@ -80,7 +80,7 @@ function supermassive() { | ||
} | ||
function getContextPath(outputDir, inputPath, contextImport) { | ||
function getContextPath(outputDir, contextImport) { | ||
if (!contextImport) { | ||
return; | ||
} | ||
const contextDir = import_path.default.join(import_path.default.dirname(inputPath), contextImport); | ||
const contextDir = import_path.default.join(process.cwd(), contextImport); | ||
return import_path.default.relative(outputDir, contextDir); | ||
@@ -104,3 +104,3 @@ } | ||
const outputDir = import_path.default.join(import_path.default.dirname(fullPath), options.outputDir ? options.outputDir : "__generated__"); | ||
let result = (0, import__.generateTS)(document, getContextPath(outputDir, fullPath, options.contextImport), options.contextName); | ||
let result = (0, import__.generateTS)(document, getContextPath(outputDir, options.contextImport), options.contextName); | ||
yield import_promises.default.mkdir(outputDir, { recursive: true }); | ||
@@ -107,0 +107,0 @@ const printer = import_typescript.default.createPrinter(); |
@@ -103,3 +103,3 @@ var __create = Object.create; | ||
leave({ type }) { | ||
return (0, import_utilities.createNullableType)(import_typescript.factory.createArrayTypeNode(type)); | ||
return (0, import_utilities.createNullableType)(import_typescript.factory.createTypeReferenceNode(import_typescript.factory.createIdentifier("ReadonlyArray"), [type])); | ||
} | ||
@@ -106,0 +106,0 @@ }, |
{ | ||
"name": "@graphitation/supermassive", | ||
"license": "MIT", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"bin": { | ||
@@ -6,0 +6,0 @@ "supermassive": "./bin/supermassive.js" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
477823