Skip to content

Commit

Permalink
Release v0.10.0 (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
aomarks authored Jul 1, 2021
1 parent 5d263d1 commit 0756433
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 10 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
<!-- ### Fixed -->
<!-- ### Removed -->

## Unreleased
<!-- ## Unreleased -->

## [0.10.0] - 2021-07-01

### Added

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "playground-elements",
"version": "0.9.4",
"version": "0.10.0",
"description": "A multi-file code editor component with live preview",
"homepage": "https://github.com/PolymerLabs/playground-elements#readme",
"repository": "github:PolymerLabs/playground-elements",
Expand Down
16 changes: 11 additions & 5 deletions scripts/update-version-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import {dirname, join} from 'path';
import {fileURLToPath} from 'url';

// This script is automatically run before pack/publish to ensure that the
// src/lib/version.ts module contains the current package version number. We use
// this version number at runtime to ensure that the default unpkg.com sandbox
// base URL matches the version number of the components.
// src/internal/version.ts module contains the current package version number.
// We use this version number at runtime to ensure that the default unpkg.com
// sandbox base URL matches the version number of the components.

(async function main() {
const thisDir = dirname(fileURLToPath(import.meta.url));
Expand All @@ -34,11 +34,17 @@ import {fileURLToPath} from 'url';
export const version = '${version}';
`;

const versionModulePath = join(thisDir, '..', 'src', 'lib', 'version.ts');
const versionModulePath = join(
thisDir,
'..',
'src',
'internal',
'version.ts'
);
const oldVersionModuleCode = await fs.readFile(versionModulePath, 'utf8');
if (oldVersionModuleCode !== newVersionModuleCode) {
await fs.writeFile(versionModulePath, newVersionModuleCode, 'utf8');
console.log('Updated src/lib/version.ts, please commit this change.');
console.log('Updated src/internal/version.ts, please commit this change.');
// Fail to help the publisher remember to commit.
process.exit(1);
}
Expand Down
2 changes: 1 addition & 1 deletion src/internal/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

// This file is automatically generated by scripts/update-version-module.js
// before publishing.
export const version = '0.9.4';
export const version = '0.10.0';

0 comments on commit 0756433

Please sign in to comment.