@konomi-app/kintone-utilities 1.8.0 → 1.9.0
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.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -1
- package/scripts/generate-appid-functions.mjs +30 -0
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@konomi-app/kintone-utilities",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"types": "dist/index.d.ts",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"repository": "https://github.com/local-bias/kintone-utilities.git",
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
"prepare": "yarn run build",
|
|
12
12
|
"play": "cd playground && yarn run dev"
|
|
13
13
|
},
|
|
14
|
+
"engines": {
|
|
15
|
+
"node": ">=18.0.0"
|
|
16
|
+
},
|
|
14
17
|
"dependencies": {
|
|
15
18
|
"@emotion/css": "^11.10.6",
|
|
16
19
|
"@kintone/rest-api-client": "^3.3.4"
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// //@ts-check
|
|
2
|
+
// import { writeFileSync } from 'fs';
|
|
3
|
+
// import { join } from 'path';
|
|
4
|
+
// import { cwd } from 'process';
|
|
5
|
+
// import config from '../kintone.config.mjs';
|
|
6
|
+
|
|
7
|
+
// const fileContent = `
|
|
8
|
+
// /** このファイルは設定情報を基に自動生成されました */
|
|
9
|
+
|
|
10
|
+
// type KintoneAppName = ${config.apps.map((app) => `'${app.name}'`).join(' | ')};
|
|
11
|
+
|
|
12
|
+
// const apps = ${JSON.stringify(config.apps, null, 2)};
|
|
13
|
+
|
|
14
|
+
// export const getKintoneAppId = (appName: KintoneAppName) => {
|
|
15
|
+
// const env = process.env.NODE_ENV === 'production' ? 'prod' : 'dev';
|
|
16
|
+
// const app = apps.find((app) => app.name === appName);
|
|
17
|
+
// if (!app) {
|
|
18
|
+
// throw new Error(\`アプリ名が不正です: \${appName}\`);
|
|
19
|
+
// }
|
|
20
|
+
// return app[env];
|
|
21
|
+
// };
|
|
22
|
+
// `;
|
|
23
|
+
|
|
24
|
+
// const folder = join(cwd(), 'src', 'lib');
|
|
25
|
+
|
|
26
|
+
// const filePath = join(folder, 'kintone-app-id.ts');
|
|
27
|
+
|
|
28
|
+
// writeFileSync(filePath, fileContent);
|
|
29
|
+
|
|
30
|
+
// console.log(`🐸 kintoneのアプリID取得関数を生成しました`, filePath);
|