Skip to content

Commit 8a9f45c

Browse files
committed
Release 18.1.0
1 parent c57e75a commit 8a9f45c

File tree

6 files changed

+11
-9
lines changed

6 files changed

+11
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# @oracle/oraclejet-tooling 18.0.0
1+
# @oracle/oraclejet-tooling 18.1.0
22

33
## About the tooling API
44
This tooling API contains methods to build and serve Oracle JET web apps. It is intended to be used with task running tools such as grunt or gulp. The APIs can also be invoked directly.
55

66
This is an open source project maintained by Oracle Corp.
77

88
## Installation
9-
This module will be automatically installed when you scaffold a web app following the [Oracle JET Developers Guide](http://www.oracle.com/pls/topic/lookup?ctx=jet1800&id=homepage).
9+
This module will be automatically installed when you scaffold a web app following the [Oracle JET Developers Guide](http://www.oracle.com/pls/topic/lookup?ctx=jet1810&id=homepage).
1010

1111
## Contributing
1212
This project is not accepting external contributions at this time. For bugs or enhancement requests, please file a GitHub issue unless it’s security related. When filing a bug remember that the better written the bug is, the more likely it is to be fixed. If you think you’ve found a security vulnerability, do not raise a GitHub issue and follow the instructions in our [security policy](./SECURITY.md).

RELEASENOTES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Release Notes for oraclejet-tooling ##
22

3-
### 18.0.0
3+
### 18.1.0
44
* Switch to chokidar from gaze
55

66
### 11.0.0

lib/buildCommon/compileTypescript.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,10 +347,12 @@ function _generateStubFile({ context }) {
347347
});
348348
const updatedContent = fileContent.replace(
349349
exportRegex,
350-
(match, defaultExport, namedExports, originalPath) => {
351-
const newPath = `${componentName}/${vComponent}/${originalPath}`;
350+
(match, defaultExport, typeExports, namedExports, originalPath) => {
351+
const newPath = `${componentName}/${vComponent}/${path.relative('.', originalPath)}`;
352352
if (defaultExport) {
353353
return `export default ${defaultExport} from "${newPath}"`;
354+
} else if (typeExports) {
355+
return `export type { ${typeExports} } from "${newPath}"`;
354356
}
355357
return `export { ${namedExports} } from "${newPath}"`;
356358
}
@@ -360,7 +362,7 @@ function _generateStubFile({ context }) {
360362

361363
const indexFile = path.join(pathToComponentsInWeb, 'index.ts');
362364
const loaderFile = path.join(pathToComponentsInWeb, 'loader.ts');
363-
const exportRegex = /export\s+(?:default\s+([^;]+)\s*|{\s*([^}]+)\s*}\s*)from\s*["']([^"']+)["']/g;
365+
const exportRegex = /export\s+(?:default\s+([^;]+)\s*|type\s+\{([^}]+)\}\s*|(?:\w+\s+)*\{([^}]+)\})\s*from\s+["']([^"']+)["']/g;
364366

365367
if (!fs.existsSync(pathToStubFile)) {
366368
if (fs.existsSync(indexFile)) {

lib/templates/pack/component.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@pack@",
33
"version": "1.0.0",
4-
"jetVersion": "18.0.0",
4+
"jetVersion": "18.1.0",
55
"type": "pack",
66
"displayName": "A user friendly, translatable name of the pack.",
77
"description": "A translatable high-level description for the pack.",

lib/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ util.convertJsonToObject = (string) => {
5353
return obj;
5454
};
5555

56-
util.validateSassInstall = function () { validate.sassInstall(); };
56+
util.validateSassInstall = () => validate.sassInstall();
5757

5858
util.hasJsdocInstalled = function () {
5959
const hasJsdocPackageJson = util.getModulePath(

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@oracle/oraclejet-tooling",
3-
"version": "18.0.0",
3+
"version": "18.1.0",
44
"license": "UPL-1.0",
55
"description": "Programmatic API to build and serve Oracle JET web and mobile applications",
66
"keywords": [

0 commit comments

Comments
 (0)