Skip to content

Commit

Permalink
Merge branch 'main' of github.com:ajvincent/ts-morph-structures
Browse files Browse the repository at this point in the history
  • Loading branch information
ajvincent committed Mar 23, 2024
2 parents 407e585 + 26c2a73 commit e7a23e4
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* SUPPORTED TOKENS: <lookup>
* DEFAULT VALUE: "<lookup>"
*/
"projectFolder": "../typings-snapshot",
"projectFolder": "../../typings-snapshot",

/**
* (REQUIRED) Specifies the .d.ts file to be used as the starting point for analysis. API Extractor
Expand All @@ -45,7 +45,7 @@
*
* SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>
*/
"mainEntryPointFilePath": "../typings-snapshot/source/exports.d.ts",
"mainEntryPointFilePath": "<projectFolder>/source/exports.d.ts",

/**
* A list of NPM package names whose exports should be treated as part of this package.
Expand Down Expand Up @@ -161,7 +161,7 @@
* SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>
* DEFAULT VALUE: "<projectFolder>/temp/"
*/
"reportFolder": "../typings-snapshot/extracted/",
"reportFolder": "<projectFolder>/extracted/",

/**
* Specifies the folder where the temporary report file is written. The file name portion is determined by
Expand Down Expand Up @@ -206,7 +206,7 @@
* SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>
* DEFAULT VALUE: "<projectFolder>/temp/<unscopedPackageName>.api.json"
*/
"apiJsonFilePath": "../typings-snapshot/extracted/docModel.api.json",
"apiJsonFilePath": "<projectFolder>/extracted/docModel.api.json",

/**
* Whether "forgotten exports" should be included in the doc model file. Forgotten exports are declarations
Expand Down Expand Up @@ -255,7 +255,7 @@
* SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>
* DEFAULT VALUE: "<projectFolder>/dist/<unscopedPackageName>.d.ts"
*/
"untrimmedFilePath": "../typings-snapshot/dist/exports.d.ts"
"untrimmedFilePath": "<projectFolder>/dist/exports.d.ts"

/**
* Specifies the output path for a .d.ts rollup file to be generated with trimming for an "alpha" release.
Expand Down Expand Up @@ -328,7 +328,7 @@
* SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>
* DEFAULT VALUE: "<lookup>"
*/
"tsdocMetadataFilePath": "../typings-snapshot/model/tsdoc-metadata.json"
"tsdocMetadataFilePath": "<projectFolder>/model/tsdoc-metadata.json"
},

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {

import {
typingsSnapshotDir
} from './constants.js';
} from '../constants.js';

import {
ImportDeclarationImpl,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {

import {
stageDir,
} from "./constants.js";
} from "../constants.js";

export default
async function runAPIDocumenter(): Promise<void>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {

import {
typingsSnapshotDir,
} from "./constants.js";
} from "../constants.js";

export default
async function runAPIExtractor(): Promise<void>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import readDirsDeep from "#utilities/source/readDirsDeep.js";
import {
snapshotDir,
typingsSnapshotDir
} from "./constants.js";
} from "../constants.js";

export default
async function compileTypeDefinitions(): Promise<void>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
import {
snapshotDir,
stageDir
} from "./constants.js";
} from "../constants.js";

export default async function doBundles(): Promise<void>
{
Expand All @@ -27,7 +27,7 @@ async function doRollup(): Promise<void>
{
const d = new Deferred<void>;
const rollupLocation = path.join(projectDir, "node_modules/rollup/dist/bin/rollup");
const pathToConfig = pathToModule(stageDir, "build/rollup.config.js");
const pathToConfig = pathToModule(stageDir, "build/rollup/rollup.config.js");
const child = spawn(
"node",
[
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pkg from 'typescript';
// eslint-disable-next-line import/no-named-as-default-member
const { ModuleKind, ModuleResolutionKind, ScriptTarget } = pkg;

import ts_plugin from "@rollup/plugin-typescript";
Expand Down
10 changes: 5 additions & 5 deletions stage_2_integration/buildStage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import {

import copySnapshot from "./build/copySnapshot.js";
import structureToSyntax from "./build/structureToSyntax.js";
import compileTypeDefinitions from "./build/typedefs.js";
import doBundles from "./build/bundle.js";
import runAPIExtractor from "./build/runAPIExtractor.js";
import applyDecoratorsForDocModel from "./build/decoratorsInDocModel.js";
import runAPIDocumenter from "./build/runAPIDocumenter.js";
import compileTypeDefinitions from "./build/docs/typedefs.js";
import doBundles from "./build/rollup/bundle.js";
import runAPIExtractor from "./build/docs/runAPIExtractor.js";
import applyDecoratorsForDocModel from "./build/docs/decoratorsInDocModel.js";
import runAPIDocumenter from "./build/docs/runAPIDocumenter.js";

const BPSet = new BuildPromiseSet;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ import {
import {
snapshotDir,
stageDir
} from "./constants.js";
} from "../constants.js";

export default async function doBundles(): Promise<void>
{
const d = new Deferred<void>;
const rollupLocation = path.join(projectDir, "node_modules/rollup/dist/bin/rollup");
const pathToConfig = pathToModule(stageDir, "build/rollup.config.js");
const pathToConfig = pathToModule(stageDir, "build/rollup/rollup.config.js");
const child = spawn(
"node",
[
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion stage_3_integration/buildStage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {

import copySnapshot from "./build/copySnapshot.js";
import structureToSyntax from "./build/structureToSyntax.js";
import doBundles from "./build/bundle.js";
import doBundles from "./build/rollup/bundle.js";

const BPSet = new BuildPromiseSet;

Expand Down

0 comments on commit e7a23e4

Please sign in to comment.