@mikarinneoracle/oci-cdk 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of @mikarinneoracle/oci-cdk might be problematic. Click here for more details.
- package/bin/build-if-needed.js +8 -2
- package/package.json +2 -2
package/bin/build-if-needed.js
CHANGED
|
@@ -8,8 +8,14 @@ const path = require('path');
|
|
|
8
8
|
const { execSync } = require('child_process');
|
|
9
9
|
|
|
10
10
|
const pkgRoot = path.join(__dirname, '..');
|
|
11
|
-
|
|
11
|
+
// tsc with rootDir "." compiles lib/oci-stack.ts → lib/lib/oci-stack.js
|
|
12
|
+
const prebuilt = path.join(pkgRoot, 'lib', 'lib', 'oci-stack.js');
|
|
12
13
|
if (fs.existsSync(prebuilt)) {
|
|
13
14
|
process.exit(0);
|
|
14
15
|
}
|
|
15
|
-
|
|
16
|
+
console.error(
|
|
17
|
+
'[@mikarinneoracle/oci-cdk] Missing pre-built lib/. Reinstall the package so you get a version that includes it:\n' +
|
|
18
|
+
' npm install @mikarinneoracle/oci-cdk@latest\n' +
|
|
19
|
+
'If the problem persists, the published package may be incomplete; check https://www.npmjs.com/package/@mikarinneoracle/oci-cdk'
|
|
20
|
+
);
|
|
21
|
+
process.exit(1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikarinneoracle/oci-cdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "OCI CDK stack for OCI Functions, API Gateway, and related infrastructure",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"get": "cdktf get",
|
|
20
20
|
"synth": "cdktf synth",
|
|
21
21
|
"list": "cdktf list",
|
|
22
|
-
"prepublishOnly": "npm run get && npm run build && node -e \"var fs=require('fs'),path=require('path'),s='lib/config',d='config'; if(fs.existsSync(s)){if(!fs.existsSync(d))fs.mkdirSync(d,{recursive:true});fs.readdirSync(s).forEach(function(f){fs.copyFileSync(path.join(s,f),path.join(d,f));});}\""
|
|
22
|
+
"prepublishOnly": "npm run get && npm run compile && npm run build && node -e \"var fs=require('fs'),path=require('path'),s='lib/config',d='config'; if(fs.existsSync(s)){if(!fs.existsSync(d))fs.mkdirSync(d,{recursive:true});fs.readdirSync(s).forEach(function(f){fs.copyFileSync(path.join(s,f),path.join(d,f));});}\""
|
|
23
23
|
},
|
|
24
24
|
"keywords": [
|
|
25
25
|
"oci",
|