create-a-npm 0.0.1 → 0.0.2
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/bin/index.js +0 -0
- package/mjs/src/package/package.mjs +4 -2
- package/mjs/src/test/index.mjs +1 -3
- package/package.json +1 -1
package/bin/index.js
CHANGED
|
File without changes
|
|
@@ -16,12 +16,14 @@ const initData = () => ({
|
|
|
16
16
|
typings: 'types/index.d.ts',
|
|
17
17
|
author: '___ <___@___.___> (https://___.___)',
|
|
18
18
|
description: 'here is the project description, please change the content with double underline',
|
|
19
|
-
|
|
19
|
+
scripts: {
|
|
20
20
|
b: 'rollup --config rollup.config.js && tsc -p tsconfig.types.json',
|
|
21
21
|
build: 'ixxx rm dist run b',
|
|
22
22
|
diff: 'ixxx pkg diff',
|
|
23
|
+
eslint: 'ixxx cls && eslint src',
|
|
24
|
+
beautify: 'npm run prettier',
|
|
23
25
|
prettier: 'ixxx cls && prettier . --write',
|
|
24
|
-
test: 'rollup --config rollup.config.test.js',
|
|
26
|
+
test: 'ixxx cls && rollup --config rollup.config.test.js && node test/out/test/index.mjs',
|
|
25
27
|
},
|
|
26
28
|
files: ['mjs', 'cjs', 'types'],
|
|
27
29
|
exports: {
|
package/mjs/src/test/index.mjs
CHANGED
|
@@ -12,9 +12,7 @@ import data from '../data.mjs';
|
|
|
12
12
|
function testFile() {
|
|
13
13
|
const testCwd = pathJoin(data.cwd, 'test');
|
|
14
14
|
mkdirSync(testCwd);
|
|
15
|
-
writeFileSync(pathJoin(testCwd, 'index.ts'), `import
|
|
16
|
-
// print 'hello world' on the terminal
|
|
17
|
-
_p('hello world');`);
|
|
15
|
+
writeFileSync(pathJoin(testCwd, 'index.ts'), `import '../index'';`);
|
|
18
16
|
}
|
|
19
17
|
|
|
20
18
|
export { testFile };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-a-npm",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.2",
|
|
5
5
|
"author": "lmssee <lmssee@outlook.com> (https://lmssee.com)",
|
|
6
6
|
"description": "a cli for create a node package module(一个一键生成一个符合特定规则 <就是一个简单的代码模板库> 的 npm 包",
|
|
7
7
|
"scripts": {
|