@haxtheweb/create 0.0.5 → 0.1.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.
@@ -120,7 +120,7 @@ async function main() {
120
120
  let s = p.spinner();
121
121
  s.start('Copying files');
122
122
  await (0, _promises.setTimeout)(250);
123
- await exec(`cp -R ${path.resolve(path.dirname(''))}/src/templates/${project.type}/${project.typeOption}/ ${project.path}`);
123
+ await exec(`cp -R ${process.mainModule.path}/templates/${project.type}/${project.typeOption}/ ${project.path}`);
124
124
  // rename paths that are of the element name in question
125
125
  await exec(`mv ${project.path}/src/webcomponent.js ${project.path}/src/${project.name}.js`);
126
126
  await exec(`mv ${project.path}/lib/webcomponent.haxProperties.json ${project.path}/lib/${project.name}.haxProperties.json`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haxtheweb/create",
3
- "version": "0.0.5",
3
+ "version": "0.1.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -20,10 +20,10 @@
20
20
  "homepage": "https://hax.psu.edu/",
21
21
  "scripts": {
22
22
  "build": "rm -rf dist && babel src --out-dir dist --copy-files --include-dotfiles",
23
- "start": "npm run build && node ./dist/index.js"
23
+ "start": "npm run build && node ./dist/create.js"
24
24
  },
25
25
  "bin": {
26
- "create-haxtheweb": "./dist/index.js"
26
+ "create-haxtheweb": "./dist/create.js"
27
27
  },
28
28
  "files": [
29
29
  "dist"