Skip to content

Commit d814ac0

Browse files
committed
Deduping source files in rush-stack-compiler-*
1 parent e650978 commit d814ac0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+165
-1518
lines changed

common/config/rush/nonbrowser-approved-packages.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@
9090
"name": "@microsoft/rush-stack-compiler-3.1",
9191
"allowedCategories": [ "tests" ]
9292
},
93+
{
94+
"name": "@microsoft/rush-stack-compiler-shared",
95+
"allowedCategories": [ "libraries" ]
96+
},
9397
{
9498
"name": "@microsoft/set-webpack-public-path-plugin",
9599
"allowedCategories": [ "libraries" ]

rush.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,11 @@
558558
"@microsoft/rush-stack-compiler"
559559
]
560560
},
561+
{
562+
"packageName": "@microsoft/rush-stack-compiler-shared",
563+
"projectFolder": "stack/rush-stack-compiler-shared",
564+
"reviewCategory": "libraries"
565+
},
561566

562567
// "webpack" folder (alphabetical order)
563568
{
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/bin
2+
/src/shared
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "launch",
10+
"name": "Launch Program",
11+
"program": "${workspaceFolder}/node_modules/gulp/bin/gulp.js",
12+
"sourceMaps": false
13+
}
14+
]
15+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
'use strict';
22

33
const build = require('@microsoft/node-library-build');
4+
const path = require('path');
5+
6+
build.preCopy.setConfig({
7+
copyTo: {
8+
[path.join(__dirname, 'src', 'shared')]: [
9+
path.join(__dirname, 'node_modules', '@microsoft', 'rush-stack-compiler-shared', 'src', 'shared', '**', '*')
10+
],
11+
[path.join(__dirname, 'bin')]: [
12+
path.join(__dirname, 'node_modules', '@microsoft', 'rush-stack-compiler-shared', 'bin', '**', '*')
13+
]
14+
}
15+
})
416

517
build.initialize(require('gulp'));

stack/rush-stack-compiler-2.4/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"devDependencies": {
2929
"@microsoft/node-library-build": "6.0.12",
3030
"@microsoft/rush-stack-compiler": "0.5.4",
31+
"@microsoft/rush-stack-compiler-shared": "0.0.0",
3132
"gulp": "~3.9.1"
3233
}
3334
}

stack/rush-stack-compiler-2.4/src/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// See LICENSE in the project root for license information.
33

44
/**
5-
* This package is an NPM peer dependency that is used with
5+
* This package is used with
66
* [\@microsoft/rush-stack](https://www.npmjs.com/package/\@microsoft/rush-stack)
77
* to select a TypeScript compiler version.
88
*
@@ -14,8 +14,8 @@
1414
* @packagedocumentation
1515
*/
1616

17-
export * from './RushStackCompilerBase';
18-
export * from './ApiExtractorRunner';
19-
export * from './TypescriptCompiler';
20-
export * from './TslintRunner';
21-
export * from './ToolPaths';
17+
export * from './shared/RushStackCompilerBase';
18+
export * from './shared/ApiExtractorRunner';
19+
export * from './shared/TypescriptCompiler';
20+
export * from './shared/TslintRunner';
21+
export * from './shared/ToolPaths';
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/bin
2+
/src/shared

stack/rush-stack-compiler-2.7/bin/rush-api-extractor

Lines changed: 0 additions & 2 deletions
This file was deleted.

stack/rush-stack-compiler-2.7/bin/rush-tsc

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)