Skip to content

Commit 0c2fa49

Browse files
committed
Fixing build and metadata for RSC packages.
1 parent 4a268bb commit 0c2fa49

10 files changed

Lines changed: 34 additions & 16 deletions

File tree

‎stack/rush-stack-compiler-2.4/gulpfile.js‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33
const build = require('@microsoft/node-library-build');
44
const path = require('path');
55

6+
const sharedDir = path.join(__dirname, 'src', 'shared');
67
build.preCopy.setConfig({
78
copyTo: {
8-
[path.join(__dirname, 'src', 'shared')]: [
9+
[sharedDir]: [
910
path.join(__dirname, 'node_modules', '@microsoft', 'rush-stack-compiler-shared', 'src', 'shared', '**', '*')
1011
]
1112
}
12-
})
13+
});
14+
15+
build.preCopy.cleanMatch = [sharedDir];
1316

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

‎stack/rush-stack-compiler-2.7/gulpfile.js‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33
const build = require('@microsoft/node-library-build');
44
const path = require('path');
55

6+
const sharedDir = path.join(__dirname, 'src', 'shared');
67
build.preCopy.setConfig({
78
copyTo: {
8-
[path.join(__dirname, 'src', 'shared')]: [
9+
[sharedDir]: [
910
path.join(__dirname, 'node_modules', '@microsoft', 'rush-stack-compiler-shared', 'src', 'shared', '**', '*')
1011
]
1112
}
12-
})
13+
});
14+
15+
build.preCopy.cleanMatch = [sharedDir];
1316

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

‎stack/rush-stack-compiler-2.7/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@microsoft/rush-stack-compiler-2.7",
33
"version": "0.1.1",
4-
"description": "A plug-in for selecting the compiler used with the @microsoft/rush-stack toolchain. This version selects TypeScript 2.4.",
4+
"description": "A plug-in for selecting the compiler used with the @microsoft/rush-stack toolchain. This version selects TypeScript 2.7.",
55
"license": "MIT",
66
"repository": {
77
"type": "git",

‎stack/rush-stack-compiler-2.9/gulpfile.js‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33
const build = require('@microsoft/node-library-build');
44
const path = require('path');
55

6+
const sharedDir = path.join(__dirname, 'src', 'shared');
67
build.preCopy.setConfig({
78
copyTo: {
8-
[path.join(__dirname, 'src', 'shared')]: [
9+
[sharedDir]: [
910
path.join(__dirname, 'node_modules', '@microsoft', 'rush-stack-compiler-shared', 'src', 'shared', '**', '*')
1011
]
1112
}
12-
})
13+
});
14+
15+
build.preCopy.cleanMatch = [sharedDir];
1316

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

‎stack/rush-stack-compiler-2.9/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@microsoft/rush-stack-compiler-2.9",
33
"version": "0.2.1",
4-
"description": "A plug-in for selecting the compiler used with the @microsoft/rush-stack toolchain. This version selects TypeScript 2.4.",
4+
"description": "A plug-in for selecting the compiler used with the @microsoft/rush-stack toolchain. This version selects TypeScript 2.9.",
55
"license": "MIT",
66
"repository": {
77
"type": "git",

‎stack/rush-stack-compiler-3.0/gulpfile.js‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33
const build = require('@microsoft/node-library-build');
44
const path = require('path');
55

6+
const sharedDir = path.join(__dirname, 'src', 'shared');
67
build.preCopy.setConfig({
78
copyTo: {
8-
[path.join(__dirname, 'src', 'shared')]: [
9+
[sharedDir]: [
910
path.join(__dirname, 'node_modules', '@microsoft', 'rush-stack-compiler-shared', 'src', 'shared', '**', '*')
1011
]
1112
}
12-
})
13+
});
14+
15+
build.preCopy.cleanMatch = [sharedDir];
1316

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

‎stack/rush-stack-compiler-3.0/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@microsoft/rush-stack-compiler-3.0",
33
"version": "0.1.1",
4-
"description": "A plug-in for selecting the compiler used with the @microsoft/rush-stack toolchain. This version selects TypeScript 2.4.",
4+
"description": "A plug-in for selecting the compiler used with the @microsoft/rush-stack toolchain. This version selects TypeScript 3.0.",
55
"license": "MIT",
66
"repository": {
77
"type": "git",

‎stack/rush-stack-compiler-3.1/gulpfile.js‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33
const build = require('@microsoft/node-library-build');
44
const path = require('path');
55

6+
const sharedDir = path.join(__dirname, 'src', 'shared');
67
build.preCopy.setConfig({
78
copyTo: {
8-
[path.join(__dirname, 'src', 'shared')]: [
9+
[sharedDir]: [
910
path.join(__dirname, 'node_modules', '@microsoft', 'rush-stack-compiler-shared', 'src', 'shared', '**', '*')
1011
]
1112
}
12-
})
13+
});
14+
15+
build.preCopy.cleanMatch = [sharedDir];
1316

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

‎stack/rush-stack-compiler-3.1/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@microsoft/rush-stack-compiler-3.1",
33
"version": "0.1.1",
4-
"description": "A plug-in for selecting the compiler used with the @microsoft/rush-stack toolchain. This version selects TypeScript 2.4.",
4+
"description": "A plug-in for selecting the compiler used with the @microsoft/rush-stack toolchain. This version selects TypeScript 3.1.",
55
"license": "MIT",
66
"repository": {
77
"type": "git",

‎stack/rush-stack-compiler-3.2/gulpfile.js‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33
const build = require('@microsoft/node-library-build');
44
const path = require('path');
55

6+
const sharedDir = path.join(__dirname, 'src', 'shared');
67
build.preCopy.setConfig({
78
copyTo: {
8-
[path.join(__dirname, 'src', 'shared')]: [
9+
[sharedDir]: [
910
path.join(__dirname, 'node_modules', '@microsoft', 'rush-stack-compiler-shared', 'src', 'shared', '**', '*')
1011
]
1112
}
12-
})
13+
});
14+
15+
build.preCopy.cleanMatch = [sharedDir];
1316

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

0 commit comments

Comments
 (0)