Skip to content

Commit 897087c

Browse files
committed
move createRelease script to root, update packaging ignore.
1 parent ed75c6f commit 897087c

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"testInteg": "npm run testInteg -w packages/",
3131
"package": "npm run package -w packages/",
3232
"newChange": "ts-node ./scripts/newChange.ts",
33-
"createRelease": "npm run createRelease -w packages/",
33+
"createRelease": "ts-node ./scripts/createRelease.ts",
3434
"format": "prettier --check plugins && npm run format -w packages/",
3535
"formatfix": "prettier --write plugins && npm run formatfix -w packages/",
3636
"lint": "npm run lint -w packages/ && npm run format",

packages/toolkit/.vscodeignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
# Ignore outside dirs up to the root package.json, otherwise those will be collected as well
66
# (until vsce officially supports workspaces: https://github.com/microsoft/vscode-vsce/issues/580)
7+
../*
78
../../*
89
../../*/**
910

packages/toolkit/scripts/build/package.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ function main() {
116116
// Create backup files so we can restore the originals later.
117117
fs.copyFileSync(packageJsonFile, `${packageJsonFile}.bk`)
118118
fs.copyFileSync(webpackConfigJsFile, `${webpackConfigJsFile}.bk`)
119+
fs.copyFileSync('../../CHANGELOG.md', 'CHANGELOG.md')
119120

120121
const packageJson: typeof PackageJson = JSON.parse(fs.readFileSync(packageJsonFile, { encoding: 'utf-8' }))
121122
const versionSuffix = getVersionSuffix(args.feature, args.debug)

packages/toolkit/scripts/build/createRelease.ts renamed to scripts/createRelease.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
import * as child_process from 'child_process'
1111
import * as fs from 'fs-extra'
1212
import * as path from 'path'
13-
import { version } from '../../package.json'
13+
import { version } from '../packages/toolkit/package.json'
1414

1515
const cwd = process.cwd()
16-
const changesDirectory = path.join(cwd, '../../.changes')
16+
const changesDirectory = path.join(cwd, '.changes')
1717
const nextReleaseDirectory = path.join(changesDirectory, 'next-release')
1818
const changesFile = path.join(changesDirectory, `${version}.json`)
1919

0 commit comments

Comments
 (0)